Seal or unseal Vault

Seal Vault by hand, or unseal it with one share of the unseal key

vault operator seal vault operator unseal $UNSEAL_KEY

tool
vault31 commands
tags
vaultsecurity

More vault commands

  • vault kv patch -mount=secret app api_key=<id>

    Update one field without rewriting the whole secret; kv patch works only with KV v2

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

    Pass a secret as a single-use wrapping token; if unwrap fails, someone has already read it

  • vault token capabilities database/creds/readonly

    Show what the current token can do on a path; a quick way to debug policies

  • vault lease revoke -prefix database/creds/readonly

    Revoke all leases under a prefix to kill leaked dynamic DB credentials right away

  • vault login <token>

    Log in to Vault with a token

all 31 vault commands