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.
More on Architecture & Design Decisions
How would you design a container build-and-deploy pipeline from commit to production?AdvancedWhen should you use Docker Compose, Swarm, ECS, or Kubernetes?IntermediateHow do you decide how many processes belong in one container?BeginnerHow do you design the config strategy for containerized apps (12-factor)?IntermediateHow would you containerize a legacy app that writes to local disk and holds sessions in memory?AdvancedAlpine or Debian-slim for a Python service?Intermediate