Generate dynamic DB credentials
Obtain short-lived Postgres credentials from the database secrets engine
vault read database/creds/readonly-role
- tool
- vault31 commands
More vault commands
-
vault operator seal vault operator unseal $UNSEAL_KEYManually seal or unseal Vault with an unseal key shard
-
vault kv patch -mount=secret app api_key=<id>Update one field without rewriting the whole secret; note: kv patch needs KV-v2
-
T=$(vault kv get -wrap-ttl=60s -field=wrapping_token -mount=secret app); vault unwrap $TPass a secret as a single-use wrapping token; note: any reuse trips a security alarm
-
vault token capabilities database/creds/readonlyShow effective ACL verbs the current token has on a path; fast policy debugging
-
vault lease revoke -prefix database/creds/readonlyRevoke all leases under a prefix to kill leaked dynamic DB creds instantly