Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

command line utility to retrieve and print a single secret from an azure keyvault

Notifications You must be signed in to change notification settings

foryouandyourcustomers/kvget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kvget

Command line utility to retrieve a single secret from an Azure keyvault.

Installation

go get github.com/foryouandyourcustomers/kvget/cmd/kvget

or download the latest release.

Usage

./kvget -h
Usage of ./kvget.linux:
  -s string
        Name of the secret to retrieve (env var: SECRET)
  -v string
        Name of the keyvault (env var: VAULT)

Lets retrieve the value of the secret "myawesomesecret" from the keyvault "fyayctestvault"

# via cli flags
./kvget -s myawesomesecret -v fyayctestvault

# via env vars
SECRET=myawesomesecret VAULT=fyayctestvault ./kvget

The utility first tries to use the login from the azure cli. If this fails it will try to retrieve credentials from the runtime environment.

About

command line utility to retrieve and print a single secret from an azure keyvault

Resources

Stars

Watchers

Forks

Packages

No packages published