Vault usage

Internal vault commands

  • Retrieving the token

Go in the vault container:

docker-compose -f docker-compose.dev.yml exec vault-manager /bin/bash

Then print the token:

cat /srv/vault_secrets/root_token

Use this token in the login:

vault login --address=http://127.0.0.1:8200 <token>

Then use the internal vault commands:

vault status --address=http://127.0.0.1:8200
vault read --address=http://127.0.0.1:8200/ secret/28_passph
vault list --address=http://127.0.0.1:8200/ secret/28_passph
vault secrets list --address=http://127.0.0.1:8200