CI/CD · Senior
CI/CD security: the pipeline as an attack surface
CI/CD security questions separate people quickly, because the pipeline is the system most engineers use daily and have never threat-modelled. The chain usually starts somewhere comfortable and moves toward the uncomfortable observation that the build system has more access than the application it builds.
Question 1 of 6
- 01
How would you manage secrets in a CI/CD pipeline?
Answer it in your head first — that is the part that transfers to the room.
Sources
The behaviour this page describes, as documented by the projects themselves.
- GitHub Docs — OpenID Connect (GitHub Actions)
- Docker Docs — Dockerfile reference (ARG warning)
- Pro Git — Git Internals: Git Objects
- Git Docs — git-revert
- GitHub Docs — Removing sensitive data from a repository
- OWASP — CICD-SEC-4: Poisoned Pipeline Execution (PPE)
- GitHub Docs — Events that trigger workflows: workflows in forked repositories
- GitHub Docs — Approving workflow runs from forks
- OWASP — CICD-SEC-5: Insufficient PBAC (Pipeline-Based Access Controls)
- Docker Docs — docker image pull: pull an image by digest
Did this get you to an answer?
No text box on purpose — please do not paste production logs anywhere
Something wrong or out of date? Report it