{"id":29142085,"url":"https://github.com/abicky/akv","last_synced_at":"2026-02-12T22:33:46.856Z","repository":{"id":270838410,"uuid":"911610559","full_name":"abicky/akv","owner":"abicky","description":"A CLI tool for injecting Azure Key Vault secrets","archived":false,"fork":false,"pushed_at":"2025-01-05T16:06:54.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T21:32:30.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abicky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-03T12:27:43.000Z","updated_at":"2025-01-07T16:31:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1bc05ee-deb9-4d3a-8f1f-decf380d601f","html_url":"https://github.com/abicky/akv","commit_stats":null,"previous_names":["abicky/akv"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/abicky/akv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2Fakv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2Fakv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2Fakv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2Fakv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abicky","download_url":"https://codeload.github.com/abicky/akv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2Fakv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29383980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-30T19:08:48.985Z","updated_at":"2026-02-12T22:33:46.831Z","avatar_url":"https://github.com/abicky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# akv\n\n[![main](https://github.com/abicky/akv/actions/workflows/main.yaml/badge.svg)](https://github.com/abicky/akv/actions/workflows/main.yaml)\n\n`akv` is a CLI tool for injecting Azure Key Vault secrets.\nFor example, `inject` subcommand injects secrets into input data as follows:\n\n```console\n$ az keyvault secret set --vault-name example --name password --value 'C@6LWQnuKDjQYHNE'\n$ echo 'password: akv://example/password' | akv inject\npassword: C@6LWQnuKDjQYHNE\n```\n\nAs you can see, `akv://example/password` in the input, which is the secret reference in the format `akv://\u003cvault-name\u003e/\u003csecret-name\u003e`, has been replaced with the secret.\n\n## Installation\n\n### Install pre-compiled binary\n\nDownload the binary archive from the [releases page](https://github.com/abicky/akv/releases), unpack it, and move the executable \"akv\" to a directory in your path (e.g. `/usr/local/bin`).\n\nFor example, you can install the latest binary on a Mac with Apple silicon by running the following commands:\n\n```sh\ncurl -LO https://github.com/abicky/akv/releases/latest/download/akv_darwin_arm64.tar.gz\ntar xvf akv_darwin_arm64.tar.gz\nmv akv_darwin_arm64/akv /usr/local/bin/\n```\n\nIf you download the archive via a browser on macOS Catalina or later, you may receive the message \"“akv” cannot be opened because the developer cannot be verified.\"\nIn such a case, you need to delete the attribute \"com.apple.quarantine\" as follows:\n\n```sh\nxattr -d com.apple.quarantine /path/to/akv\n```\n\n### Install using Homebrew (macOS or Linux)\n\n```sh\nbrew install abicky/tools/akv\n```\n\n### Install from source\n\n```sh\ngo install github.com/abicky/akv@latest\n```\n\nor\n\n```sh\ngit clone https://github.com/abicky/akv\ncd akv\nmake install\n```\n\n### Enable completions\n\nThe `completion` subcommand generates an autocompletion script. For example, you can generate the autocompletion script for zsh as follows:\n\n```sh\nakv completion zsh \u003e /usr/local/share/zsh/site-functions/_akv\n```\n\nIf you install using Homebrew, Homebrew will generate autocompletion scripts.\n\n\n## Usage\n\n### Authentication\n\nakv uses the [DefaultAzureCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#DefaultAzureCredential) for authorization, so see its document for more details.\n\n### inject subcommand\n\n```console\n$ akv inject --help\nThis command injects Azure Key Vault secrets into input data\nwith secret references in the format \"akv://\u003cvault-name\u003e/\u003csecret-name\u003e\"\n\nUsage:\n  akv inject [flags]\n\nExamples:\n  $ az keyvault secret set --vault-name example --name password --value 'C@6LWQnuKDjQYHNE'\n  $ echo 'password: akv://example/password' | akv inject\n  password: C@6LWQnuKDjQYHNE\n  $ az keyvault secret set --vault-name example --name multiline-secret --file \u003c(echo -n \"Hello\\nworld\")\n  $ echo 'secret: akv://example/multiline-secret' | akv inject --quote\n  secret: \"Hello\\nworld\"\n  $ echo '{\"secret\": \"akv://example/multiline-secret\"}' | akv inject --escape\n  {\"secret\": \"Hello\\nworld\"}\n  $ cat secret.yaml\n  apiVersion: v1\n  kind: Secret\n  metadata:\n    name: password\n  stringData:\n    password: akv://example/password\n    secret: akv://example/multiline-secret\n  $ akv inject --quote \u003c secret.yaml\n  apiVersion: v1\n  kind: Secret\n  metadata:\n    name: password\n  stringData:\n    password: \"C@6LWQnuKDjQYHNE\"\n    secret: \"Hello\\u000aworld\"\n\nFlags:\n      --escape   Escape special characters in secrets\n  -h, --help     help for inject\n      --quote    Escape and enclose each secret in double quotes\n```\n\n### exec subcommand\n\n```console\n$ akv exec --help\nThis command executes a command with Azure Key Vault secrets injected into environment\nvariables whose value is a secret reference in the format \"akv://\u003cvault-name\u003e/\u003csecret-name\u003e\"\n\nUsage:\n  akv exec [flags] -- COMMAND [args...]\n\nExamples:\n  $ az keyvault secret set --vault-name example --name password --value 'C@6LWQnuKDjQYHNE'\n  $ env PASSWORD=akv://example/password akv exec -- printenv PASSWORD\n  C@6LWQnuKDjQYHNE\n\nFlags:\n  -h, --help   help for exec\n```\n\n## Author\n\nTakeshi Arabiki ([@abicky](https://github.com/abicky))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabicky%2Fakv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabicky%2Fakv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabicky%2Fakv/lists"}