Use this when using a dedicated secrets management service like HashiCorp Vault.
Vault
A vault is a dedicated secrets management service, such as HashiCorp Vault, that encrypts secrets, issues dynamic short-lived credentials, enforces policies and logs every access.
1. HashiCorp Vault: dynamic secrets, PKI, transit encryption, leases.
2. Auto-unseal with KMS/HSM.
3. Least-privilege policies.
4. Audit devices enabled.
5. Protect root tokens (revoke after setup).
client auth method → policy → secret engine → lease
Context & applicabilityCommon mistakes · platform/version boundaries
- Unseal keys or root token kept by one person.
- Root token used for daily work instead of being revoked after setup.
- Long TTLs on tokens and leases.
- No backups of the storage backend (Raft snapshots:
vault operator raft snapshot save).
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Dynamic secrets are created per request.
- Policies control access paths.
- Seal/unseal protects the master key.
vault status— sealed/unsealed, HAvault audit list— audit devicesvault policy list— policies
ReferenceWhy it matters1 section · depth on demand
Vault features
- Encrypted storage with access policies per path.
- Authentication methods: Kubernetes, cloud IAM, AppRole, OIDC.
- Dynamic secrets: database or cloud credentials created on request and revoked after a lease.
- PKI engine for short-lived certificates; transit engine for encryption as a service.
- Audit log of every request.
Protect unseal keys (Shamir shares or auto-unseal with KMS/HSM) and run it highly available.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
A vault is a centralised secret store with encryption, access policies, audit logging and APIs — HashiCorp Vault/OpenBao, cloud secret managers, or PAM vaults such as CyberArk. Applications and people retrieve secrets at run time instead of storing them locally.
HashiCorp Vault concepts:
| Concept | Purpose |
|---|---|
| Auth methods | How clients authenticate (Kubernetes, AppRole, OIDC, cloud IAM) |
| Policies | Which paths each identity can access |
| Secrets engines | KV, databases (dynamic credentials), PKI, SSH, transit encryption |
| Leases | Automatic expiry and revocation |
| Audit devices | Log every request |
vault kv get secret/network/netbox
vault read database/creds/app-readonly # dynamic credential with lease
Operate the vault as critical infrastructure: HA, backups, sealed-key procedures and strong admin controls.
ReferenceConfiguration & state1 section · depth on demand
Basic commands
vault login -method=oidc
vault kv put secret/app/db password='...'
vault kv get -field=password secret/app/db
vault read database/creds/app-role # dynamic database credentials
Documented example, not captured output. Use policies per path, short TTLs, and audit devices. OpenBao is the open-source fork after HashiCorp's licence change (2023).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Secrets Management → Vault. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html · confidence 94%