head.daveops.net

Snippets for yer computer needs

vault

Client

# 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

Environment Variables

VAULT_ADDR vault address

Server

# start a dev server
vault server -dev