Repository navigation
[FIX] apk upgrade at build, so Alpine fixes land before the base image is rebuilt - #196
Merged
david-banon-tecnativa merged 1 commit intoNov 17, 2026
Conversation
Collaborator
|
Hi, thanks for your work on this. Are any other changes you proposed here not covered by that? |
… is rebuilt - The haproxy base image lags Alpine: lts-alpine currently ships zlib 1.3.2-r1 (ALPINE-CVE-2026-4738) while Alpine has 1.4-r0 - Bake builds without layer cache, otherwise the upgrade layer is reused for as long as the base image digest is unchanged - Tests cover the events stream and container listing
sammcj
force-pushed
the
upstream-base-update
branch
from
November 16, 2026 21:31
11d3e59 to
869b4d8
Compare
Contributor
Author
|
@david-banon-tecnativa thanks, #185 covers the base tag, the dependency bumps and the CI changes. Two things here were not covered, and I have rebased the PR down to just those on top of current master:
With the change, both the |
david-banon-tecnativa
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebased on top of #185, which covers the rolling base tag, dependency updates and CI changes this PR originally carried. What remains is the part #185 does not cover. Follow-up to #190.
apk upgrade --no-cachein the Dockerfile. The haproxy base image lags Alpine, so a rolling tag alone leaves a window: the:latestbuilt on 16 Nov has zlib 1.3.2-r1 (ALPINE-CVE-2026-4738, 9.4 per OSV-Scanner v2.7.0) while Alpine has 1.4-r0no-cache = trueon the bake target. With the GHA layer cache the upgrade layer would be reused for as long as the base image digest is unchanged, which is exactly the window this is meant to close. The image builds in seconds, so the cache buys little/eventsstream and container listingghcr.io/tecnativa/docker-socket-proxy:latest(16 Nov)ltsand3.4pytest --prebuildpasses 5 of 5 locally. The final user, and the owner of/var/lib/haproxy/server-state, are unchanged.If you would rather keep the layer cache, a cache-busting build arg scoped to the upgrade layer would also work; happy to switch.