The user is looking for advice, likely needing an overview and practical steps. I should provide concise guidance on components, tools, and their applications, like Syft, Grype, Trivy, cosign, and others.
I'll outline a workflow: from source to build, generating a Software Bill of Materials (SBOM), to signing and verifying it through different controllers. Mentioning key management, scanning, policy enforcement, and standards like SPDX will also be important.
I'll aim to organize the response into clear sections while ensuring it remains concise enough for the user’s needs.Generating a secure SBOM workflow
I want to create a workflow that includes generating a Software Bill of Materials (SBOM) at build time and storing it as an OCI artifact linked to the image digest. I need to sign both the image digest and the SBOM and create SLSA provenance using in-toto, storing it in Rekor or a similar log.
To ensure reproducibility, I can set the SOURCE_DATE_EPOCH, utilize deterministic package installs, and avoid unversioned additions. I should also consider multi-stage builds with a minimal base image pinned by digest.
It seems the user is looking for an informative blueprint without asking specific questions, so I’ll focus on key points.
Below is a practical blueprint to harden container supply chains using SBOMs, SLSA provenance attestations, reproducible builds, and image signing, plus enforcement patterns that make it “real” in CI/CD and clusters.
Kyverno (image verification rules; integrates with cosign)
OPA Gatekeeper (custom rego policies; more work but flexible)
Typical policies
Only allow images that:
Are signed by your identity (cert identity / issuer constraints)
Have SLSA provenance from your repo + workflow
Have an SBOM attestation
Come from approved registries/namespaces
Use digest pinning in manifests (optional but strong)
7) A reference CI/CD flow (what “good” looks like)
Checkout source at immutable commit.
Build with a hardened builder (pinned builder image; isolated runner).
Test.
Create SBOM from the built image.
Create SLSA provenance referencing the exact build inputs.
Push image by digest.
Sign image digest.
Attach attestations (SBOM + provenance) to that digest in registry.
Verify signatures/attestations in CD and/or admission control.
Monitor: continuous vuln scanning + alerting, but don’t “gate” only on CVEs.
8) Quick “minimum viable hardening” checklist
If you want the 80/20 starting point:
Pin base images by digest
Generate SBOM (SPDX/CycloneDX) at build time and attach to image
Generate SLSA provenance (at least L2) and attach
Sign image digests with cosign (keyless or KMS)
Enforce verification in Kubernetes/CD (policy controller/Kyverno)
Store attestations in registry + (optionally) transparency log
Restrict who can push to registry namespaces; use immutable tags where possible
If you tell me your environment (GitHub Actions vs GitLab vs Tekton/Jenkins, Kubernetes or not, and your registry: ECR/GCR/ACR/Harbor/Artifactory), I can provide a concrete end-to-end example pipeline + matching admission policies for your stack.