Kyverno `verifyImages` rejects pods: `failed to verify image ... : no signatures found` for a signed private ECR image
AdvancedTroubleshootingSupply chain: signing, SBOM and dependencies
Answer
Likely causes → Kyverno cannot read the registry (no pull credentials, no IRSA on the Kyverno admission controller), so it finds no signature artifact; or it cannot reach the Rekor/Fulcio public endpoints from a private cluster.
Diagnose →
kubectl -n kyverno logs deploy/kyverno-admission-controller | grep -i -E "verify|unauthorized|rekor"
kubectl -n kyverno get sa kyverno-admission-controller -o yaml | grep role-arn
Fix → Give Kyverno registry read access (IRSA role with ecr:BatchGetImage, ecr:GetDownloadUrlForLayer, or imagePullSecrets in the rule), and allow egress to rekor.sigstore.dev and fulcio.sigstore.dev or run a private Sigstore stack.
Prevent → Test policies with kyverno test and run a canary namespace in Audit mode before Enforce.
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`IntermediateAfter enabling signature verification, pods fail because the manifest uses `image: api:1.4` and the policy mutates it to a digest the registry rejectsAdvanced