Helm chart passes Checkov in the repo but fails in Kyverno at deploy time
AdvancedTroubleshootingContainer image and IaC scanning
Answer
Likely causes → Checkov scanned the chart with default values; production values files enable a sidecar, hostPath or a different securityContext.
Diagnose →
helm template app ./chart -f values-prod.yaml > rendered.yaml
checkov -f rendered.yaml --framework kubernetes
kyverno apply ./policies -r rendered.yaml
Fix → Scan rendered output for every environment's values file, and run the same Kyverno policies in CI with kyverno apply.
Prevent → One policy source used in both CI (shift-left) and admission (enforcement).
More on Container image and IaC scanning
Trivy fails the build on 14 HIGH/CRITICAL CVEs in the base image, all with "Fixed Version" emptyBeginner`FATAL ... failed to download vulnerability DB: ... TOOMANYREQUESTS: retry-after` from Trivy in CIIntermediateTrivy in an air-gapped runner fails with `failed to download vulnerability DB` even though you copied `db.tar.gz`AdvancedTrivy and Grype report different CVE counts for the same imageIntermediate`.trivyignore` entries are ignored and the build still fails on the same CVEBeginnerTrivy reports a critical CVE in a Go binary built from your own code, in package `stdlib`Intermediate