Interview Prep/CI/CD/Secrets, Supply Chain and DORA

How would you handle secrets rotation for a database used by 20 pipelines without downtime?

AdvancedScenarioSecrets, Supply Chain and DORA
Answer

Situation read → Safe rotation.

What I'd do →

  1. Use dual-credential rotation (two valid users, alternate) or Vault dynamic credentials.
  2. Pipelines fetch secrets at runtime, so they pick the new value automatically.
  3. Rotate on a schedule and test the process regularly.

Why → Overlap windows avoid breaking in-flight jobs.

Interview tip → Runtime retrieval is what makes rotation painless.

All CI/CD questions

More on Secrets, Supply Chain and DORA