Interview Prep/DevSecOps/Secrets and Identity Management

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 →

  1. Fetch at startup and cache in memory with a TTL; refresh in the background.
  2. Keep serving with the cached value if refresh fails, and alert.
  3. For Kubernetes, sync to native Secrets with ESO so a store outage only blocks updates, not running pods.
  4. Use client-side caching libraries (AWS Secrets Manager caching client, Vault Agent cache).
  5. 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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management