The Incident: The Signature Nobody Could Read

Incident Hook

This one happened on this platform, and nobody noticed until the chapter you are reading was audited.

September. The backend and frontend pipelines sign every image they push - keyless, with the workflow’s identity - and attach an SPDX SBOM and SLSA build provenance. Two Kyverno policies verify the signature and the SBOM at admission, in Audit. Their PolicyReports fill with fail for every image of the platform: missing digest. Git deploys images by tag; the policies were written to verify only images referenced by digest. Every image fails for that reason - none is ever checked for a signature. Nobody looks closer: red is what these reports always show.

September 27. The frontend pipeline starts pushing GitHub’s build provenance to the registry in the newer storage format, next to its signature and SBOM in the older one. Nothing seems to change.

September 28. A routine dependency update bumps the backend’s signing tool to a new major version. Its signatures now use the newer format too. The build is green, the signatures are there - cosign verify says so. The PolicyReports still say fail, as they always did.

October 7. The policies are about to be switched to Enforce. One last check runs the cluster’s own verifier against the real images:

  • the backend - signed, correctly, by its own pipeline - fails: no signatures found. The policy type in use cannot read the new format at all;
  • the frontend in staging and production - signed - fails the SBOM check: with the new format present, the verifier reads only the new format, and the SBOM sits in the old one;
  • the Guardian - never signed at all - fails, like everything else.

Result: had Enforce been switched on, the next restart of the backend and of the production frontend would have been refused - for images that were signed. And for weeks, a genuinely unsigned image would have looked exactly like the signed ones: one more fail in a report nobody read.

Diagram: policy fails every image: 'missing digest'; reports: all red, nobody reads them; signing tool bump: new signature format; verifier cannot read it; Enforce would refuse signed images; an unsigned image looks the same

The lab reproduces each case on your cluster with the same images: the signed backend, the signed frontend whose SBOM the verifier cannot see, and an image from the platform’s registry that was never signed.

Observed Symptoms

  • Every image failed the same way, so the report could not tell a signed image from an unsigned one.
  • The signatures existed - cosign verify passed - while the cluster’s verifier found nothing.
  • One image was signed, had an SBOM, and still failed: evidence in two storage formats.
  • A change to the signing pipeline merged green; nothing tested it against what the cluster would do with it.

Confusion Phase

The team argues about the wrong things:

  • is keyless signing too fragile for production?
  • should the verification policy stay in Audit forever?
  • should the images just be pinned by digest everywhere?

Was the problem signing - or a check that never ran, and a signature nobody verified the way the cluster would?

What AI Would Propose (Brave Junior)

  • “The policy fails everything anyway - switch it off until the next quarter.”
  • “cosign verify passes, so the cluster is wrong: add an exception for our registry.”
  • “Widen the signer to github.com/<org>/* so it matches more.”

Why This Is Dangerous

  • A check that fails everything is no check. It cannot tell good from bad; it trains people to ignore it. The first question about a red report is whether it can ever be green.
  • Evidence that the verifier cannot read is no evidence. A signature is only as good as the tool that checks it at admission. A pipeline change that touches signing must be tested against that tool, with a real image, before it merges.
  • An exception for “our registry” removes the point. The rule is exactly about images from our registry: a laptop with registry access can push there too.
  • A wider signer identity trusts more than you think. github.com/<org>/* admits any workflow in any repository of the organisation - a test repository, a fork’s workflow, a branch nobody reviewed. The identity names the repository, the workflow file and the branches.

Pause and Predict: A pod in develop uses an image from the platform’s registry that nobody signed. With the policy in Enforce, what happens - and what happens to the same pod in a namespace where the policy only audits?