Interview Prep/Docker/Architecture & Design Decisions

What is cache poisoning in a shared build cache, and how do you mitigate it?

AdvancedProductionArchitecture & Design Decisions
Answer

If untrusted builds can write to a shared registry or remote cache, an attacker can plant malicious layers that trusted builds later import by matching cache keys. Mitigate: PR/fork builds are read-only or use a separate cache namespace, only protected branches write the main cache, and final artifacts are rebuilt/verified with signed provenance.

All Docker questions Roadmap: Docker & containers

More on Architecture & Design Decisions