Response wrapping handoff

Pass a secret as a single-use wrapping token; note: any reuse trips a security alarm

T=$(vault kv get -wrap-ttl=60s -field=wrapping_token -mount=secret app); vault unwrap $T

tool
vault31 commands
tags
vaultsecretssecuritytroubleshooting

More vault commands

  • vault token capabilities database/creds/readonly

    Show effective ACL verbs the current token has on a path; fast policy debugging

  • vault lease revoke -prefix database/creds/readonly

    Revoke all leases under a prefix to kill leaked dynamic DB creds instantly

  • vault login <token>

    Authenticate to Vault using a token

  • vault write auth/approle/login role_id=<role> secret_id=<secret>

    Authenticate via AppRole auth method

  • vault kv get -mount=secret path/to/secret

    Read a KV v2 secret; add -format=json for scripting

all 31 vault commands