Snippets for yer computer needs

Secrets Management

HashiCorp vault


# get status of the vault setup
vault status
# get list of secrets engines
vault secrets list
# add a secret
vault kv put foo/bar hello=world
# get a secret
vault kv get foo/bar
# specific field
vault kv get -field=hello foo/bar
# Get path help
vault path-help -h

Environment Variables

var desc
VAULT_ADDR vault address


# start a dev server
vault server -dev

# initialize a repo, generate a root token
# NOTE - you should *only* use a root token for initial setup/emergencies
vault operator init -recovery-shares=1 -recovery-threshold=1