Reduce attack surface of CI build environment itself.
AdvancedScenarioCI/CD and production rollouts
Answer
Situation read → Builders have registry credentials.
What I'd do → Ephemeral runners, short-lived OIDC credentials to the registry (no static keys), least-privilege push scopes per repo, no socket sharing, network egress allow-lists, and signed provenance for builds.
Why → A compromised builder can push poisoned images.
Interview tip → OIDC federation removes stored registry passwords.
More on CI/CD and production rollouts
Design a GitHub Actions workflow that builds, scans and pushes an image.IntermediateZero-downtime deploy on a single Docker host.AdvancedDeploy via GitOps with image digests.IntermediateCanary a new image on a Swarm service.AdvancedDocker build is flaky in CI due to network errors on package installs.IntermediateRun database migrations in the deploy flow of containerized apps.Intermediate