DevSecOps & supply-chain security
Shift-left scanning (SAST/DAST/deps), image signing, SBOMs, pipeline hardening, least-privilege CI. Security as a pipeline stage, not a gate at the end.
The mental model
Think about how food safety works. A restaurant does not cook everything and then, at the door, have one inspector taste every dish. That inspector would be a bottleneck, would miss most problems, and would be hated by the kitchen. Instead: suppliers are vetted, ingredients arrive with labels and expiry dates, the fridge has a thermometer that alarms, staff wash hands at defined points, and every batch is traceable back to its supplier. Safety is distributed through the process.
DevSecOps is that shift. The old model was a security review at the end — a gate, a queue, a two-week wait, and a report full of findings nobody has time to fix. The new model puts small, fast checks at every step where they are cheapest to fix: in the editor, in the pull request, at build, at admission to the cluster, and at runtime.
The specific thing modern security worries about is the software supply chain — not your code, but everything your code eats. A typical Node service has 5 direct dependencies and 900 transitive ones. You did not write 99% of what you ship. So:
- An SBOM (Software Bill of Materials) is the ingredient label: every component and version in the artifact.
- Signing (cosign) is the tamper-evident seal: proof this image came from your pipeline and not someone else's laptop.
- Provenance / SLSA is the receipt from the kitchen: what source commit, what builder, what steps produced this artifact.
Together they answer the question every company had to answer within hours of Log4Shell: "Do we run this, and where?"
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision