Use this when deciding who and what can read each secret.
Access Control · Secrets Management
Access control for secrets grants each application or person only the specific secrets they need, using identity-based policies in the vault, with every access logged.
1. Least privilege for secrets: per-app paths and policies.
2. Humans rarely need production secrets.
3. Separate environments.
4. Audit reads.
5. Review regularly.
identity → policy → secret path
Context & applicabilityCommon mistakes · platform/version boundaries
- Developers with read access to production secrets.
- One policy granting all apps access to all secrets.
- Break-glass access without alerting.
- No regular review of who and what can read each secret.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- Review who and what can read each secret (vault policies, Key Vault access policies or RBAC).
- Audit log review for unusual reads.
- Alerts for break-glass use.
- Remove access for decommissioned apps.
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.
- Grant per secret, not per vault.
- Use identity-based policies.
- Log every read.
vault policy read <policy>— who can read whataws secretsmanager get-resource-policy --secret-id <id>— resource policy- Audit logs of secret reads — usage
ReferenceWhy it matters1 section · depth on demand
Access model
- One identity per application/workload; policy grants access only to its own secret paths.
- Humans get access through groups with MFA and approval for production secrets.
- Separate environments (dev/test/prod) with separate stores or policies.
- Audit logs reviewed for unusual reads (one identity reading many secrets).
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Access control for secrets decides which people and workloads can read, create or change each secret. Fine-grained policies ensure a compromised application can only read its own credentials.
# Vault policy
path "secret/data/network/netbox-sync/*" {
capabilities = ["read"]
}
| Principle | Implementation |
|---|---|
| Workload identity | Authenticate apps via Kubernetes SA, cloud IAM, AppRole — not shared passwords |
| Path-based policies | One path per application/environment |
| Separation of duties | Admins who manage the vault do not read application secrets |
| Audit | Log every read; alert on unusual access |
Review policies regularly and remove access for retired applications.
ReferenceConfiguration & state1 section · depth on demand
Example policy (Vault)
path "secret/data/app1/*" {
capabilities = ["read"]
}
path "database/creds/app1-role" {
capabilities = ["read"]
}
Documented example, not captured output. Bind the policy to the app's identity (Kubernetes auth, AppRole, cloud IAM), not to a shared token.
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 → Access Control. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html · confidence 94%