azure-keyvault-example-golang

command module
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2019 License: MIT Imports: 10 Imported by: 0

README

Keyvault in GoLang

Install dependencies

$ dep ensure

Build

$ go build -o keyvault-get-secret main.go

Run

export AZURE_TENANT_ID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
export AZURE_CLIENT_ID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 export AZURE_CLIENT_SECRET="YOUR-CLIENT-SECRET-ID"
export VAULT_BASE_URL="https://example.vault.azure.net/"
export SECRET_NAME="supersecret"

./keyvault-get-secret

2019/05/05 13:36:01 Authorization: 		Bearer ey(....)xA

2019/05/05 13:36:02 Secret value is:        I feel the need - the need for speed!

Release

The release script uses gox for fast parralel cross compiling of the binaries. Install gox if it itn't available on your system yet.

$ go get -u github.com/mitchellh/gox
./release.sh

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL