Interview Prep/CI/CD/Supply Chain and Pipeline Security

How do you test that your pipeline controls actually work?

AdvancedProductionSupply Chain and Pipeline Security
Answer

Treat security controls like code: add negative tests. Open a PR with a seeded fake secret and confirm push protection or the scan blocks it; push an unsigned image and confirm admission rejects it; try to deploy to production from a feature branch and confirm the OIDC trust policy denies it; attempt a fork PR reading secrets in a test repository. Run these as scheduled "control verification" jobs or periodic red-team exercises and alert when a control fails open.

All CI/CD questions

More on Supply Chain and Pipeline Security