Interview Prep/DevSecOps/Supply chain: signing, SBOM and dependencies

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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply chain: signing, SBOM and dependencies