Notes
Why sign
Signing applies the digital signatures from Part four to the things you ship. A signature on an artifact proves two things: integrity, that it has not been altered since build, and provenance, that it came from your pipeline and not an attacker. Once you sign, you can do the powerful thing: refuse to run anything not signed by you. This applies to container images, binaries, SBOMs and deployment charts. It is how you make the registry something you can trust rather than just storage.
- integrity: the artifact has not been altered
- provenance: it came from your pipeline, not an attacker
- you can then REFUSE to run anything unsigned
- applies to: container images, binaries, SBOMs, Helm charts
- the Part 4 signatures, applied to your builds
Sigstore and Cosign
For years, the reason teams did not sign was key management: signing needed long-lived private keys stored and rotated safely, enough friction that most people skipped it. Sigstore removed that with keyless signing. You sign using a short-lived identity from an OIDC provider, such as your pipeline's, so there is no long-lived key to protect, and the signature is recorded in a public transparency log called Rekor. Cosign is the command-line tool for container images. Keyless signing made artifact signing mainstream.
- old problem: signing needed long-lived keys, stored safely, so nobody bothered
- Sigstore: sign with a short- lived identity (OIDC), no key to keep
- signature recorded in a public log (Rekor)
- Cosign: the CLI for signing and verifying images
Verify before deploy
Signing achieves nothing unless something verifies it, and the place is at deploy. In Kubernetes, an admission controller checks every image's signature and the signing identity before allowing it to run, using Kyverno, the Sigstore policy controller or Connaisseur. The crucial detail, as with signatures in Part four, is to pin who may sign, your pipeline's identity, not merely that the image is signed by someone. And verification must fail closed: if it cannot verify, it does not deploy.
- verify at deploy: admission controller checks signature and identity
- reject images not signed by your pipeline identity
- tools: Cosign, Kyverno, policy-controller, Connaisseur
- pin WHO may sign, not just "is it signed"
- fail closed on verify failure
Provenance
Signing proves who released an artifact; you often want more: how and where it was built. That is provenance, a signed statement describing the build, recording the source repository and commit, the builder, the build steps and the inputs. With it, you verify that an artifact was built from your code, in your pipeline, without tampering, rather than built on a laptop and uploaded. The standard format is in-toto attestations, and they travel alongside the artifact like the SBOM.
- provenance = a signed statement about HOW the artifact was built
- records: source repo and commit, builder, build steps, inputs
- lets you verify: built from our code, in our pipeline, not tampered
- standard format: in-toto attestations
SLSA
SLSA, supply-chain levels for software artifacts, puts numbers on how trustworthy a build is. It is a ladder. At level one, provenance exists. At level two, the provenance is signed and the build runs on a hosted service, not a laptop. At level three, builds are hardened and isolated so the provenance cannot be forged even by someone tampering with the build. You use SLSA to set a target, say level three for critical services, and to measure where you stand today. It is a shared vocabulary for build integrity.
- Supply-chain Levels for Software Artifacts
- a ladder of build-integrity guarantees
- L1: provenance exists
- L2: signed provenance, hosted build
- L3: hardened, isolated builds; provenance cannot be forged
- use it to set a target and measure your pipeline
The whole chain
Put together, the pieces form an unbroken chain. You build in a hardened pipeline, generate the SBOM and provenance, sign the artifact, the SBOM and the provenance with keyless signing, and push everything to the registry. At deploy, an admission gate verifies the signature, the signing identity and the provenance, and runs only what passes. This chain closes the gap supply-chain attackers exploit, where a clean-looking artifact is quietly replaced between build and run.
- build in a hardened pipeline
- generate SBOM + provenance
- sign artifact, SBOM, provenance (Cosign, keyless)
- push all to the registry
- at deploy: verify signature, identity and provenance
- run only what passes
- this closes the gap attackers exploit
Common mistakes
Mistakes. Signing artifacts but never verifying them at deploy, doing the work and skipping the benefit. Checking only that something is signed, not who signed it, so an attacker's valid signature passes. Verification that fails open on error, silently allowing the deploy. Long-lived signing keys left on build machines, the exact problem keyless signing solves. A signature but no provenance. And signing the image while leaving its SBOM and provenance unsigned, so those can be swapped.
- signing but never verifying
- checking "is it signed", not WHO signed
- verification that fails open
- long-lived signing keys left on build machines
- no provenance, only a signature
- signing the image but not the SBOM and provenance
Say it like this
In the interview: I sign artifacts, their SBOMs and build provenance with Sigstore and Cosign, keyless so there is no long-lived key to leak. I generate provenance as in-toto attestations and target a SLSA level for the service, aiming for hardened, isolated builds on critical ones. At deploy, an admission controller verifies the signature, pins the signing identity to our pipeline, and fails closed. That gives an unbroken chain of trust from source to running workload.
- "Sign artifacts, SBOMs and provenance with Sigstore and Cosign, keyless so there is no key to leak. Generate in-toto
- provenance and target a SLSA
- level. Verify at deploy with an admission controller that pins
- the signing identity and fails
- closed. That gives an unbroken
- chain from source to running."