Enable the Kubernetes auth method
Let pods log in to Vault with their ServiceAccount JWT
vault auth enable kubernetes && vault write auth/kubernetes/config kubernetes_host=https://kubernetes.default.svc
- tool
- vault31 commands
More vault commands
-
vault read database/creds/readonly-roleGet short-lived Postgres credentials from the database secrets engine
-
vault operator seal vault operator unseal $UNSEAL_KEYSeal Vault by hand, or unseal it with one share of the unseal key
-
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 $TPass a secret as a single-use wrapping token; if unwrap fails, someone has already read it
-
vault token capabilities database/creds/readonlyShow what the current token can do on a path; a quick way to debug policies