How do you secure the CI/CD system itself as part of the attack surface?
AdvancedScenarioSecrets, Supply Chain and DORA
Answer
Situation read → CI is a high-value target.
What I'd do →
- Least-privilege tokens, short-lived credentials and OIDC.
- Ephemeral isolated runners, restricted egress, pinned actions and images.
- Branch protection, required reviews on pipeline files, and audit logs.
- Separate build and deploy privileges; monitor for anomalous pipeline changes.
Why → Compromising CI often means compromising production.
Interview tip → Reference the OWASP Top 10 CI/CD Security Risks.
More on Secrets, Supply Chain and DORA
A developer committed an AWS key to a public repo. Walk through your response.BeginnerHow do you stop secrets from being committed in the first place?IntermediateThe pipeline needs access to 15 different secrets across environments. How do you manage them?IntermediateExplain SLSA and how you would raise a pipeline's level.AdvancedHow do you verify only signed images run in Kubernetes?AdvancedA popular npm package your build uses is reported as compromised. What do you do?Advanced