Prompt
I'm building a microservices app on Kubernetes and need secrets rotation built in. What should I use?
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
For Kubernetes microservices, the usual best practice is:
Use an external secrets manager + short-lived credentials + automated rotation
Recommended pattern
- Store secrets in a dedicated secrets manager, not in plain Kubernetes Secrets alone.
- Fetch them into pods dynamically using an operator or CSI driver.
- Rotate credentials automatically on a schedule or by policy.
- Prefer ephemeral/short-lived credentials over long-lived static passwords.
Good options
Cloud-managed
- AWS Secrets Manager + External Secrets Operator or Secrets Store CSI Driver
- Azure Key Vault + External Secrets Operator or CSI Driver
- Google Secret Manager + External Secrets Operator or CSI Driver
Kubernetes-native-ish / self-managed
- HashiCorp Vault is the most common choice for:
- dynamic database creds
- PKI/cert rotation
- lease-based secret renewal
- fine-grained policy control
What I’d choose
- If you’re on a major cloud: cloud secret manager + External Secrets Operator
- If you need dynamic secrets, PKI, or multi-cloud: HashiCorp Vault
- If you mainly want Kubernetes to mount secrets at runtime: Secrets Store CSI Driver
Important detail
If you just use Kubernetes Secret objects, rotation is possible but usually not ideal as the primary source of truth. Kubernetes Secrets are not a full secrets management system by themselves.
Practical architecture
- App authenticates to secrets system via workload identity / IAM role / service account
- Pod reads secret at startup or mounts it via CSI
- Rotation happens in the secrets backend
- App reloads config or restarts on change if needed
Short answer
Use Vault if you want the strongest built-in rotation story.
Use your cloud’s secret manager if you want the simplest managed solution.
If you want, I can recommend a setup based on your cloud provider and whether you need database password rotation, TLS cert rotation, or API key rotation.