Interview Prep/Docker/CI/CD and production rollouts

A new junior pushed an image with a secret. Incident steps.

IntermediateScenarioCI/CD and production rollouts
Answer

Situation read → Secret exposure incident.

What I'd do →

  1. Revoke and rotate the secret immediately.
  2. Identify exposure: pull logs, who pulled the tag.
  3. Delete image tags and untagged manifests, run registry GC.
  4. Add .dockerignore and secret scanning.
  5. Write a blameless postmortem.

Why → Rotation is the only real remediation.

Interview tip → Time-to-rotate matters more than time-to-delete.

All Docker questions Roadmap: Docker & containers

More on CI/CD and production rollouts