Verify a cosign-signed container image using certificate-identity and OIDC issuer policy flags

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

Steps

  1. Obtain the image reference including the digest (sha256:...) for the image you want to verify
  2. Run cosign verify <image-ref> --certificate-identity <expected-identity> --certificate-oidc-issuer <oidc-issuer-url>
  3. For GitHub Actions keyless signatures, set --certificate-identity to the workflow ref URI (e.g., https://github.com/org/repo/.github/workflows/release.yml@refs/heads/main) and --certificate-oidc-issuer to https://token.actions.githubusercontent.com
  4. Use --certificate-identity-regexp and --certificate-oidc-issuer-regexp for pattern-based matching when the exact identity varies across environments
  5. A successful verification prints the verified signature payload and exits with code 0; any mismatch exits with a non-zero code and an error message
  6. Integrate this verification step into your CD pipeline before deploying an image to production

Known gotchas

Related routes

Verify a cosign-signed image using certificate-identity and OIDC issuer policy flags
docs.sigstore.dev · 6 steps · unrated
Verify a cosign attestation on a container image with cosign verify-attestation
slsa.dev · 6 steps · unrated
Verify a container image signature with cosign using identity constraints
docs.sigstore.dev · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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