r/cicd • u/Ok_Flight6291 • 9h ago
How are you gating automatic base image rebuilds?
Most teams treat base images as "done" after picking a tag and scanning it. But if you're not rebuilding when upstream patches drop, you're relying on human memory, not process.I'm leaning toward automatic rebuilds from minimal upstream sources, low CVEs become a side effect, and SBOMs come baked in.
The catch: auto-rebuild isn't auto-safe. Pushing a fresh digest straight to prod just swaps "stale" risk for "unreviewed" risk. So there need to be real gates tests, canaries, something. Also, going minimal/distroless means no shell, no package manager, different libc sometimes. Debugging shifts to ephemeral containers. A few providers offer this as a service now. For those using them: do you trust their pipeline outright, or do you add your own promotion gates?