Module 11 · Project 11 · Add Security to the Pipeline (DevSecOps) · Lesson 39 of 48
Build it: a secure pipeline
Add the security gates, supply-chain protections and cluster guardrails to your pipeline, then practise interview answers and test yourself.
In this lesson · about 40 minutes
- Build Project 11 in stages
- Prove each gate works with a planted problem
- Explain DevSecOps in interview language
Build it in stages
- Secrets: a Gitleaks pre-commit hook plus a CI job, and GitHub secret scanning with push protection turned on.
- Code and dependencies: a Semgrep (or CodeQL) job and a
trivy fsjob, in parallel with your tests. Dependabot for npm, Docker and GitHub Actions. - Infrastructure: Checkov on the Terraform from Project 06 and the Kubernetes YAML from Project 07.
- Image:
trivy image --exit-code 1after the build, then an SBOM (Syft or Trivy) and a Cosign signature. Push only if everything passed. - Staging: an OWASP ZAP baseline scan after deploying to staging.
- Credentials: replace stored AWS keys with OIDC and a narrow role; set
permissions:on every workflow; pin actions to SHAs. - Cluster: restricted Pod Security on the notes namespace, a Kyverno policy that only allows signed images from your registry, and Falco with alerts to the Project 09 Alertmanager.
- Write it down: a
SECURITY.mdwith the threshold, the ignore-file process and how to report a vulnerability.
Prove it works
For each gate, open a PR with a planted problem (a fake key, a vulnerable package version, a public bucket, a root container) and screenshot the red build. That set of screenshots is excellent portfolio evidence.
Decision scenario
The critical CVE with no fix
You own the notes pipeline. It blocks on critical and high findings.
A critical CVE is published in a library deep in your dependency tree. No fixed version exists yet. Every build is now red, and an important bug fix needs to ship today.
What do you recommend?
0 of 3 options explored. Try the others to see how each would play out.
Guided dialogue
Mock interview: DevSecOps
0 of 3 answered
Three common questions.
How did you add security to your pipeline?
Flashcards
Project 11 flashcards
0 of 8 known
Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.
Practice exam
Project 11 practice test
Eight questions, 10 minutes.
- 8 questions · 10 minutes
- No feedback until you submit. Flag questions to come back to them.
- Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.
Write the 'Security' section for your project.
Consider these questions and write down your thoughts. What you write stays on this device.
Written by Noviq Academy in its own words. The labs are simulations: no real servers are touched. When you build the projects yourself, use a practice virtual machine or a free-tier cloud account you control, watch your cloud spending, and never run cleanup or delete commands on a machine you care about. Tool names belong to their owners; versions and output are shown for learning and may differ slightly from yours. Read-aloud and the whiteboard voice use your device's built-in voices.