Cloud Security

6 Gates to Verify Artifact Provenance Before Deploy

November 27, 2026 · 8 min read · By CloudAI Security
6 Gates to Verify Artifact Provenance Before Deploy

Artifact provenance attestation is the control that lets a cluster refuse an image unless the build platform can prove, in a signed statement, which source commit and build process produced that exact digest. Six gates turn that statement into an enforceable deploy path: isolated builders that emit SLSA provenance, signatures bound to the image digest, a transparency log entry, an admission policy that checks the attestation, a negative test that proves the policy fails closed, and drift monitoring for unexpected signers. The hardened SLSA build level requires the platform to keep the provenance signing key out of reach of user-defined build steps, so the first gate is a property of the builder you choose rather than a script you write. The remaining gates are configuration and discipline, and each one closes a specific failure that the gates before it leave open.

The trust gap checksums miss

An image digest answers one question: are these bytes the same bytes someone signed? It says nothing about where those bytes came from. A compromised dependency mirror, a build step that pulls an unpinned base image, or a runner holding a stolen publish token can each produce a correctly signed artifact that no source control history contains. The gap is not integrity of the artifact but integrity of the claim about how it was built. That claim is what provenance encodes: the builder identity, the resolved source digest, the build parameters and, at the stricter levels, the dependencies the build resolved.

SLSA labels the levels at which that claim becomes trustworthy. A provenance file that any job can write is trivial to forge; a hosted platform that signs its own provenance closes tampering after the build; and the hardened level, which SLSA calls Build L3, closes tampering during the build by isolating runs and hiding the signing key from the build steps themselves. Verification then compares the attestation on an image to what you expect for the repository and branch being deployed, and rejects the pod when they disagree. A digest check cannot do that, because it never asks who produced the bytes.

Six gates, mapped to failures

The gates are cumulative. Skipping one does not break the others, but each skipped gate reopens the threat it was meant to close. Use the table to find the gate your pipeline currently lacks before writing any policy.

GateControlThreat it closesCost or failure mode
1Isolated builder emits SLSA provenanceTampering during the buildBuilder must support the hardened level; platform migration
2Signature and attestation attached to the digestImage rebuilt or swapped after signingRegistry must store attestations; an identity or key to manage
3Entry recorded in the transparency logSilent replacement or deletion of signaturesDependency on log availability; public metadata
4Admission policy checks attestation fieldsUnsigned or wrong-source image reaching a namespaceRegistry and issuer must be reachable at admission time
5Negative test and controlled bypassPolicy that silently passes everythingMaintaining test images and a break-glass identity
6Drift monitoring for new signersNew identity or issuer added without reviewAlert tuning to avoid noise

Gate 4 is where the chain usually leaks. An admission policy in audit mode records failures without blocking them, so a registry outage or a miswritten condition leaves production accepting everything while the dashboard stays green. Treat audit mode as a measurement period with an end date, then switch to enforcement.

Verify provenance at admission

Deploy-time verification is where provenance stops being metadata and becomes a control. The sequence below assumes images are built on a hosted platform that produces SLSA provenance. If the pipeline still authenticates with static keys, start with the three steps to replace static CI keys with OIDC federation, because the identity that signs the attestation has to be one an attacker cannot borrow from a job definition.

  1. Produce the attestation in the builder. Use a builder that generates provenance in an isolated, ephemeral environment. A provenance file your own script writes is trivially forgeable and belongs at a lower SLSA level.
  2. Attach the attestation to the image digest. Sign it with cosign or let the builder publish it, so the attestation sits beside the image and anyone who can pull the image can also verify it.
  3. Check the log inclusion. Keyless signing relies on a short-lived certificate issued to an OIDC identity. Cosign can attach a signed inclusion promise from the transparency log to a signature, so a verifier can prove the entry was logged without querying the log itself; verify that promise as part of the policy, not only the certificate.
  4. Enforce in the cluster with a verifyImages rule. Kyverno verifyImages rules can check an attestation attached to a matching image: the nested attestors verify its signature, and conditions evaluate its JSON fields, such as the source repository or builder id. Bind the conditions to the values your release process actually produces, and require a digest so the pulled image cannot change between verification and scheduling.
  5. Run the negative test. Push an image signed by a different identity, or with no attestation, into a staging namespace and confirm the pod is rejected. A policy that has never failed anything has not been tested.
  6. Monitor for drift. Alert when a new signer identity, issuer or builder id appears in provenance for a production namespace, and reconcile registry attestations against the log on a fixed schedule.

Fail-open or fail-closed

Enforcement mode rejects the pod when the registry, the identity issuer or the log is unreachable, which is the right default for production namespaces but means an admission-path outage can block rollouts. Plan for it explicitly: a cached trust root for offline verification, a named break-glass identity with a short expiry that alerts on every use, and a runbook that treats a verification outage as a security incident rather than an inconvenience. Kyverno can read registry credentials from a Kubernetes Secret to reach private registries, which pulls the Kubernetes secrets controls from storage to pod into the verification path itself; keep that Secret in the Kyverno namespace and scope it to the registries the policy actually inspects.

Two settings deserve attention. Kyverno caches successful verifications with a default TTL of 60 minutes, so a replaced signature in the registry goes unnoticed until the cache entry expires; shorten the TTL for production namespaces and accept the extra registry calls. The rule also rewrites tag references to digests by default, which prevents a tag from being repointed after verification but changes the pod spec, so controllers that compare the submitted spec with the stored one will see the digest mutation as a diff.

Keyless and key-based signing trade different risks. Keyless binds the certificate to an issuer and identity, so the policy can require a specific issuer and a specific workflow, but it depends on that issuer and the log being reachable at signing time. A key held in a KMS is simpler to verify offline, yet it becomes a long-lived secret whose rotation and scope you now own. A workable split is keyless for builds and a KMS key for break-glass, with the policy accepting both only for the break-glass namespace.

Limits of provenance

Provenance proves who built what from which source; it does not prove the source is safe. SLSA is explicit that its hardened build level ensures a well-intentioned build runs securely and does not stop a producer from running a risky or insecure build. An attested image built from the expected repository can still contain a vulnerable base layer or a malicious commit that passed review, so provenance complements an SBOM, dependency scanning and code review instead of replacing them.

Attestation contents are only as complete as the builder makes them. Before writing conditions against a field, confirm that your builder populates it for every build path, including rebuilds and hotfix branches, or the policy will reject legitimate releases or, worse, pass a condition that no field ever satisfies. The NIST Secure Software Development Framework presents secure development as a core set of high-level practices that can be integrated into each SDLC implementation; a provenance gate is one practice inside that set, and it works only when the release process around it is consistent enough to define what the expected attestation looks like.

Release checklist

  • Builder produces SLSA provenance in an isolated, ephemeral environment for every release path
  • Attestation attached to the digest and signed by the expected identity or key
  • Log inclusion promise verified as part of the admission policy
  • Admission policy in enforce mode checks repository, branch and builder id
  • Negative test image rejected in staging during the current release cycle
  • Break-glass identity documented, time-bound and alerted on use
  • Drift alert fires on any new signer, issuer or builder id in production provenance
  • Cache TTL and failure behavior reviewed for production namespaces

Sources