List secrets at a path

List all keys under a KV v2 prefix

vault kv list secret/myapp/

tool
vault31 commands
tags
vaultsecurity

More vault commands

  • vault token create -policy=read-only -period=24h -display-name=ci-pipeline

    Issue a renewable token for CI with a 24h TTL

  • vault auth enable kubernetes && vault write auth/kubernetes/config kubernetes_host=https://kubernetes.default.svc

    Let pods log in to Vault with their ServiceAccount JWT

  • vault read database/creds/readonly-role

    Get short-lived Postgres credentials from the database secrets engine

  • vault operator seal vault operator unseal $UNSEAL_KEY

    Seal 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

all 31 vault commands