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

foryouandyourcustomers/kvset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kvget

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

Installation

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

or download the latest release.

Usage

./kvset -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)
  -a string
        Value of the secret to set (env var: VALUE)

Lets set the value of the secret "myawesomesecret" to "mysupervalue" from the keyvault "fyayctestvault"

# via cli flags
./kvset -s myawesomesecret -v fyayctestvault -a mysupervalue

# via env vars
SECRET=myawesomesecret VAULT=fyayctestvault VALUE=mysupervalue ./kvset

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

Create or update keyvault secrets

Resources

Stars

Watchers

Forks

Packages

No packages published