How do you rotate the base image for 200 services when a critical CVE lands?
AdvancedProductionImage Security & Hardening
Answer
- Platform rebuilds and publishes the golden base (new digest, scanned, signed).
- Renovate/Dependabot raises PRs to every repo bumping the digest; CI rebuilds and tests.
- Query the registry/SBOM inventory (Dependency-Track,
trivy sbom) to see who is still affected. - Enforce a deadline with an admission policy that rejects images older than N days.
More on Image Security & Hardening
Why should containers not run as root, and how do you enforce it?BeginnerWhat is a distroless image and what are the trade-offs?BeginnerHow do you scan an image with Trivy and fail a CI build on serious findings?BeginnerHow do you manage Trivy false positives and accepted risks?IntermediateWhich `docker run` flags make up a hardened runtime baseline?BeginnerWhat does `no-new-privileges` protect against?Beginner