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

Latest commit

 

History

History
35 lines (25 loc) · 879 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 879 Bytes

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.