Image Scanning
Cheat sheet · https://pcornel.dk/topic.php?topic=5038
Answer
Image scanning checks container images for known vulnerabilities, secrets and misconfigurations with tools like Trivy or Grype, in CI and in the registry, blocking images above a severity threshold.
Remember
- Scan in CI and in the registry.
- New CVEs appear after build; rescan regularly.
- Block images above a severity threshold.
First checks
trivy image --severity HIGH,CRITICAL <image>— vulnerability scangrype <image>— alternative- CI gate on critical findings — enforcement
Verify in this order
image → scanner → findings → gate/fix
Where it usually breaks
First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5038