Should We Always Create New Image Tags for Security Updates?

0
10
Asked By CleverCactus27 On

I'm currently in a disagreement with our cloud team about how to handle image updates when it comes to security patches. They propose reusing existing image tags to publish updates, while I believe that any change we make should lead to a new tag and an increment in the version number. I hold the view that releases need to be immutable, and all modifications, regardless of size, should warrant a hotfix release. I'd love to hear your thoughts: is it okay to republish existing image tags when only base image dependencies are modified?

5 Answers

Answered By DevGuru88 On

Every release definitely deserves a unique tag. If a tag’s hash changes unexpectedly, it raises security concerns. You might publish additional ephemeral tags like 'latest' for cases where teams want to avoid version control, but at least maintain the primary versioning for the main releases.

Answered By TechieNut12 On

I side with your view—using unique tags for each update is best. Users who depend on your images shouldn't just rely on tags; they should use specific digests to ensure they stick to a particular image version, even if your base gets updated. However, if you remove older digests, it could lead to issues for those relying on them.

Answered By ImmutableNinja77 On

I agree with your approach of enforcing immutable tags. Using a new tag for security patches keeps everything straightforward and prevents any confusion about what version is currently deployed.

Answered By ChillPenguin35 On

Using overlapping tagging can be useful; specific tags like `3.4.2` point to a single build and should remain unchanged. Meanwhile, tags like `3.4-latest` can change over time, providing flexibility but also uncertainty to users. This way, customers have clear information about what they are using.

Answered By RustyNail99 On

Another angle is to consider whether all packages in the base image are necessary. If a package is required, then it should be linked to a new release. If it's not, you might want to remove it instead.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.