Interview Prep/DevSecOps/Secrets Management Architecture

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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets Management Architecture