Secrets & config self-service
External Secrets Operator + a vault, sealed-secrets tradeoffs, per-env config layering. Secrets are the #1 "can I just ask the platform team" ticket to eliminate.
The mental model
A bank does not mail cash to customers, and tellers do not keep bundles of notes in their desk drawers. Valuables live in the vault; a teller fetches them when someone presents verified ID; every access is logged; and the bank can replace a compromised note series without asking every customer to mail their wallets back.
Secrets management on a platform is the same design. The vault (Vault, AWS Secrets Manager, GCP Secret Manager, Azure Key Vault) is the single source of truth. Workloads present verified identity — a Kubernetes service account, not a password — and an operator fetches exactly the secrets that identity is entitled to, delivering them where the workload already looks. Nobody mails cash: no secrets in git plaintext, no credentials pasted into Slack, no .env file passed between laptops.
Why this exists: without it, the platform team becomes the human secret-dispenser. "Can you add the Stripe key to staging?" is, in most orgs, the single largest category of platform ticket — and every manual delivery creates an unrotatable secret with an unknown blast radius, because nobody remembers where copies went. Rotation without self-service means an all-hands scavenger hunt; a leaked credential means the scavenger hunt happens during an incident. The platform's job is to make the safe path — request by manifest, deliver by controller, rotate centrally — also the easiest path, so the ticket category disappears.
Config is the sibling problem: the same service needs different, non-secret values per environment. The trap is treating config like secrets (over-engineering) or secrets like config (a leak). The platform draws the line: config lives in git in layers, secrets live in the vault behind references.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision