How do you secure base images?
IntermediateProductionSupply Chain and Pipeline Security
Answer
Use minimal, trusted bases (distroless, Alpine, Wolfi/Chainguard, vendor-supported images), pin by digest, mirror them in your registry, rebuild regularly (weekly, and when critical CVEs land), and automate base-image updates with Renovate. Scan, run as non-root (USER 10001), drop shell and package managers in the final stage, and set the root filesystem read-only at deploy time.
FROM gcr.io/distroless/java21-debian12:nonroot@sha256:<digest>
More on Supply Chain and Pipeline Security
What is a software supply chain attack, and where does the pipeline fit?BeginnerWhat is an SBOM and why do you generate one in CI?BeginnerHow do you sign container images and verify them at deploy time?IntermediateWhat is SLSA and which level should a typical team aim for?IntermediateHow do you verify provenance before deploying?AdvancedHow do you scan images and dependencies in the pipeline without drowning in noise?Intermediate