Interview Prep/DevSecOps/Supply Chain, SBOM, Signing and Image/IaC Scanning

What makes a base image "secure"? Compare distroless, Alpine and slim.

IntermediateConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer

Fewer packages mean smaller attack surface and fewer CVEs. Distroless has only the runtime and your app (no shell or package manager); hard for attackers and for debugging. Alpine is tiny, uses musl and busybox; occasional compatibility issues. Debian slim is a compromise with glibc and broad support. Chainguard and other minimal-maintained images aim for near-zero known CVEs.

Also: pin by digest, rebuild regularly, run as non-root, multi-stage builds so build tools never ship.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain, SBOM, Signing and Image/IaC Scanning