View on GitHub

docker-devbox

[DEV] Docker stacks to quickly setup a dev environment and test some tools.

Vault

Container running HashiCorp vault for DEV purpose.

Usage with docker

export VAULT_ADDR=https://vault.dev.localhost

# -- check server status
vault status

# -- login to vault (token)
vault login
# vault login -method=userpass username=mborne

# -- store secret
vault kv put cubbyhole/db-secret username=postgis password=ChangeIt

# -- retrieve secret
vault kv get cubbyhole/db-secret
vault kv get -field=data -format=json cubbyhole/db-secret
vault kv get -field=data -format=yaml cubbyhole/db-secret

# -- delete secret
vault kv delete cubbyhole/db-secret