An image signed in staging fails verification in production with the same digest
AdvancedTroubleshootingSupply chain: signing, SBOM and dependencies
Answer
Likely causes → Images were copied between registries (crane copy/skopeo copy) without the .sig/.att artifacts, or production verifies a different signer identity (prod policy expects the release workflow, staging was signed by CI).
Diagnose →
cosign tree prod.registry/acme/api@sha256:...
cosign verify prod.registry/acme/api@sha256:... --certificate-identity-regexp '.*' --certificate-oidc-issuer-regexp '.*'
Fix → Copy with signatures: cosign copy staging.registry/acme/api@sha256:... prod.registry/acme/api. If the identity differs, sign again in the promotion workflow (an extra signature for "approved for prod").
Prevent → Promotion tooling copies referrers/signatures, and policies are versioned per environment.
More on Supply chain: signing, SBOM and dependencies
`cosign verify` fails with `Error: no matching signatures` for an image CI says it signedBeginnerKeyless `cosign verify` fails: `none of the expected identities matched what was in the certificate`Intermediate`cosign sign` in GitHub Actions fails with `getting signer: getting key from Fulcio: ... no OIDC token`BeginnerKey-based `cosign verify --key cosign.pub` fails after a key rotation for older imagesIntermediate`cosign verify-attestation --type cyclonedx` returns `none of the attestations matched the predicate type`IntermediateKyverno `verifyImages` rejects pods: `failed to verify image ... : no signatures found` for a signed private ECR imageAdvanced