r/devops • u/CommissionNeat811 • 20d ago
Discussion Trying to understand how security tooling fits into CI/CD, for a uni case study. Would love your take!
Disclosure: grad student at NYU, 8 years in frontend dev before that, now doing a class case study with a software supply-chain startup (which is way outside my frontend comfort zone 😅). Not selling anything, just trying to understand the space and hopefully get an A :)
I’ve been chatting with platform and security folks for a few weeks, and the picture so far is that SBOMs get generated in CI, platform owns the tooling, and security owns acting on it. Would love the DevOps side of the story:
- What’s in your pipeline today for SBOMs or dependency scanning, and why that tool? What made you pick it, or switch last time?
- Who actually asked for it? A customer, an auditor, security, or did your team just decide it was good practice?
- Last time a big CVE dropped, how long did it take to know if you were affected? And where did it get stuck?
- Is the lockfile/scan output ever not enough? E.g., container base images, stuff pulled in at build time, a customer wanting more.
- Is there any other time dependancy tracking has been crucial for you and ended up being painful?
Real stories welcome, including “nobody’s ever asked us for one” 😄. Happy to share a summary of what I learn on DM if anyone is curious!
7
u/No-Signature-918 20d ago
We generate the SBOM in CI right after the image is built, with syft, then scan it with grype and fail the build on criticals that are actually fixable. The SBOM gets attached to the release so when a CVE drops we just grep the old SBOMs instead of rebuilding everything to check. The lockfile alone was never enough for us — base images and stuff pulled in at build time don't show up there, which is exactly why the image SBOM mattered.
3
u/taleodor 19d ago
2
u/Cozy_Cloud_Club 19d ago
The image SBOM flow already described is pretty close to normal practice, not just a regulated-industry thing. Dependency scanning usually runs on the lockfile earlier in the build, the image scan after the build, static analysis on the app code, and a secrets scan on the repo and built artifacts so a key doesn't land in an image layer. Platform owns keeping those jobs green and not flaky; security owns the exceptions and the ugly findings.
On the "who asked" question, it often starts as good practice or a security request, and only gets strict when a customer or auditor wants evidence. The painful part during a big CVE usually isn't generating the inventory, it's deciding what's actually reachable and getting a library bump through review while people are trying to ship something else. That's also why a hard fail on every new finding can wreck a hotfix, which is already a fair point here. A break-glass path with a short expiry has worked better for me than waiting for a clean scan at the worst possible moment.
2
u/SeniorIdiot Platform Engineer 16d ago
Sign all this evidence as SLSA: Provenance, VSA, In-toto: SCAI, Test Results, Vuln, etc. GitHub actions/attest works fine for the signing.
I prefer to have the build (Go, Gradle, etc) to build a CycloneDX of the resolved dependencies at build time. Then scan the image with Syft for content.
Use OPA (Rego) rules to verify before signing VSAs, then use the VSAs in for example k8s, with OPA Gatekeeper, to only accept known good builds.
I also always recommend to read "Investments Unlimited: A Novel About DevOps, Security, Audit Compliance, and Thriving in the Digital Age"; it's a short novel that is a good first "aha" around these things.
https://slsa.dev/provenance/v1https://slsa.dev/verification_summary/v1https://in-toto.io/attestation/scai/attribute-report/v0.2https://in-toto.io/attestation/test-result/v0.1https://in-toto.io/attestation/vulns/v0.1(some tools emitv0.2)https://cyclonedx.org/bom(optionally versioned, e.g./v1.6)--sbomattaches SPDX by default. (Syft and Trivy output both CycloneDX and SPDX).https://spdx.dev/Document(optionally versioned, e.g./v2.3)2
u/smell-that-code DevOps 12d ago
Our CI and CD pipelines scan the projects and flag the CVEs. They show up in red in Azure DevOps and also in Backstage. So we are forced to fix them or ask for a waiver if we want to be able to still deploy our updates. I am working on a product to make this process easier and faster, but it is still in waitlist phase right now.
1
u/deployfan64 19d ago
Did you have syft wired up before a customer or auditor asked or was there something specific that pushed the timing?