Skip to main content
VerificationPolicy is at v1alpha1 stability level and subject to change.
A VerificationPolicy defines rules for verifying the authenticity and integrity of Tekton resources using cryptographic signatures.

Resource Definition

string
required
tekton.dev/v1alpha1
string
required
VerificationPolicy
ObjectMeta
required
Standard Kubernetes metadata.
VerificationPolicySpec
required
Specification of the verification policy.

VerificationPolicySpec

[]ResourcePattern
required
Patterns defining which resources this policy applies to.
[]Authority
required
List of authorities (public keys) for validating signatures.
string
default:"enforce"
How to handle verification failures.Values:
  • enforce - Fail the TaskRun/PipelineRun if verification fails (default)
  • warn - Log warnings but don’t fail on verification failure

How Verification Works

  1. When a Task or Pipeline is fetched via remote resolution, Tekton checks for matching VerificationPolicies
  2. The resource URL is matched against the resources patterns
  3. If a policy matches, the resource’s signature is verified using the specified authorities
  4. Verification uses the configured hash algorithm and public key
  5. Based on the mode, verification failure either blocks execution or logs a warning

Signature Format

Tekton uses Sigstore/cosign compatible signatures. Resources should be signed using cosign or compatible tools.

Example: Verify GitHub Resources

Example: Verify OCI Bundles

Example: Warn Mode

In warn mode, verification failures are logged but don’t prevent execution, useful for gradual policy rollout.