How do you structure Vault policies and paths for hundreds of teams?
IntermediateProductionSecrets Management Architecture
Answer
Use a predictable path convention and templated policies so you do not write one policy per app by hand.
# kv-v2 path: secret/data/<team>/<app>/<env>/*
path "secret/data/{{identity.entity.aliases.auth_kubernetes_abc123.metadata.service_account_namespace}}/*" {
capabilities = ["read"]
}
Manage auth roles, policies and mounts with Terraform (the vault provider) through PRs. Enterprise namespaces or separate mounts per business unit give stronger isolation. Never hand out root tokens; revoke the initial root token after setup and generate one only for break-glass with vault operator generate-root.
More on Secrets Management Architecture
How would you design a secrets management architecture for a multi-cloud, multi-cluster company?AdvancedVault vs AWS Secrets Manager: how do you choose in production?IntermediateHow do you run Vault in production for high availability?AdvancedHow do you solve the "secret zero" problem?IntermediateHow do Vault dynamic database credentials work operationally, and what can go wrong?AdvancedHow does AWS Secrets Manager rotation work under the hood?Intermediate