Verify a container image signature with cosign using identity constraints

domain: docs.sigstore.dev · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify the expected signing identity (the OIDC subject, such as a GitHub Actions workflow path) and the OIDC issuer URL used during signing.
  2. Run cosign verify IMAGE_REF --certificate-identity=EXPECTED_SUBJECT --certificate-oidc-issuer=EXPECTED_ISSUER to verify the signature and confirm the certificate was bound to the expected identity.
  3. For images signed with an explicit key pair instead of keyless, run cosign verify --key cosign.pub IMAGE_REF.
  4. In Kubernetes admission workflows, use the Sigstore Policy Controller to enforce signature verification at deploy time: annotate namespaces and define ClusterImagePolicy resources specifying allowed identities.
  5. Verify a multi-platform index by specifying the index digest; cosign will verify the index manifest signature, not individual platform manifests.
  6. Use the --output-signature and --output-certificate flags to save artifacts for audit evidence.

Known gotchas

Related routes

Verify a cosign attestation on a container image with cosign verify-attestation
slsa.dev · 6 steps · unrated
Verify a cosign-signed container image using certificate-identity and OIDC issuer policy flags
slsa.dev · 6 steps · unrated
Verify a cosign-signed container image including Rekor transparency log checks using cosign verify with identity flags
docs.sigstore.dev · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans