Interview Prep/CI/CD/Supply Chain and Pipeline Security

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>
All CI/CD questions

More on Supply Chain and Pipeline Security