A secret manager outage took down all apps because they fetch secrets on every request. How do you redesign?
AdvancedScenarioSecrets and Identity Management
Answer
Situation read → The secret store became a hard runtime dependency on the hot path.
What I'd do →
- Fetch at startup and cache in memory with a TTL; refresh in the background.
- Keep serving with the cached value if refresh fails, and alert.
- For Kubernetes, sync to native Secrets with ESO so a store outage only blocks updates, not running pods.
- Use client-side caching libraries (AWS Secrets Manager caching client, Vault Agent cache).
- Run Vault in HA with replicas across zones, and test failure in game days.
Why → Secrets change rarely; there is no need to call the store per request.
Interview tip → Balance security (fresh secrets) and availability (cached secrets) out loud.
More on Secrets and Identity Management
A team stores database passwords in a `.env` file committed to a private repo. How do you migrate them out?BeginnerYour CI pipeline uses long-lived AWS access keys stored as repository secrets. How do you replace them?IntermediateAn auditor asks how often you rotate database credentials. You currently never do. What do you build?IntermediatePods need AWS access. A developer mounted an IAM user's keys as a Kubernetes Secret. What do you propose instead?BeginnerShould you use Kubernetes Secrets, Sealed Secrets, External Secrets Operator or the Secrets Store CSI driver?IntermediateA Slack webhook URL and a Stripe live key were posted in a public GitHub issue. What is your response sequence?Beginner