Chapter 17: Supply Chain Security
Learning Objectives
By the end of this chapter, you will be able to:
- Say what a keyless signature proves - which workflow, in which repository, on which branch signed this exact image - and what it does not: how the image was built is the provenance’s claim, what it contains is the SBOM’s
- Verify a signature and an SBOM attestation the way the cluster does, and read the signer’s identity from the result
- Explain why a policy that fails every image protects nothing, and why a signing change must be verified against the verifier the cluster runs
- Find the digest a pod actually runs, and explain how the verified digest reaches the pod while Git deploys by tag
Recall Check
Before continuing, quickly recall:
- How does an image reach production - is it rebuilt, or promoted? (Chapter 10)
- Which checks run before a change can merge - and could an image reach the registry without them? (Chapter 05)
- What is the difference between Audit and Enforce, and what is the evidence for Enforce? (Chapter 16)
If you can’t answer these, revisit the corresponding chapter before proceeding.
Context
Chapter 10 made promotion safe by never rebuilding: the image tested in staging is the image that runs in production, the same digest. Chapter 16 made sure that image comes from a trusted registry and has a tag. Neither answers the question an incident eventually asks: who built this image? A registry accepts whatever someone with write access pushes - from a pipeline, or from a laptop.
The platform’s CI answers it for every image it builds: it signs the image’s digest with a short-lived certificate that names the workflow, the repository and the branch (keyless signing, Sigstore), and attaches an SBOM for each platform it publishes - the components a scanner found inside - signed the same way. An admission policy then refuses, in the application namespaces, every image from the platform’s registry that is not signed, with its SBOM, by the workflow of the repository it is named after. Three kinds of evidence, three questions: the signature - who signed this digest; the SBOM - which components were found in it; the provenance - how it was built. The admission policy checks the first two.
The hard part is not signing. It is that the evidence must be readable by the verifier the cluster runs, every day, after every change to the pipeline. This chapter’s story is this platform’s own: a policy that failed every image for a reason unrelated to signatures, and a signing format that changed without anyone noticing.
Work through each lesson section; the chapter video, once it is published, gives the concept overview.