Skip to content

[FIX] Rolling HAProxy 3.4 base and apk upgrade at build, to clear base image CVEs - #196

Open
sammcj wants to merge 1 commit into
Tecnativa:masterfrom
sammcj:upstream-base-update
Open

sammcj wants to merge 1 commit into
Tecnativa:masterfrom
sammcj:upstream-base-update

Conversation

@sammcj

@sammcj sammcj commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Resolves #190. Also addresses #32.

  • FROM haproxy:3.4-alpine replaces the frozen haproxy:3.4.2-alpine, so the existing weekly rebuild picks up HAProxy and Alpine fixes without a manual bump (currently HAProxy 3.4.7 on Alpine 3.24.4)
  • apk upgrade --no-cache at build time covers Alpine fixes published before the base image is rebuilt (it already pulls a zlib update the base has not shipped)
  • Test dependencies updated (pytest 9, plumbum 2) and CI Python moved from 3.8 to 3.13
  • Tests now also cover the /events stream and container listing

Results, OSV-Scanner v2.7.0:

Image Critical High
ghcr.io/tecnativa/docker-socket-proxy:latest 5 21
This branch 0 0

The findings in the current image are in openssl, pcre2, zlib and musl. poetry run pytest --prebuild passes 5 of 5 locally, and a build of this change has been running as the Docker provider proxy for Traefik v3.

Notes:

  • The ci.yml edits (checkout, setup-python and cache versions, Python 3.13) have not run on their own, so this PR's CI is their first run
  • [IMP] Modernize project #185 also touches the Dockerfile base; this PR is the smaller change if you want the CVE fix on its own

- Base moves from the frozen haproxy:3.4.2-alpine to haproxy:3.4-alpine, so
  the weekly rebuild picks up HAProxy and Alpine fixes (currently 3.4.7)
- apk upgrade at build time covers Alpine fixes published ahead of the base
- Clears the openssl, pcre2, zlib and musl CVEs from Tecnativa#190
- Test deps and CI Python (3.13) brought up to date
- Tests cover the events stream and container listing
@sammcj sammcj changed the title [IMP] Rolling HAProxy 3.4 base and apk upgrade at build, to clear base image CVEs [FIX] Rolling HAProxy 3.4 base and apk upgrade at build, to clear base image CVEs Nov 14, 2026
@david-banon-tecnativa

Copy link
Copy Markdown
Collaborator

Hi, thanks for your work on this.
As #185 has been merged, :latest is now build from the lts tag and aditionally the 3.4 tag built from 3.4 also exists if you don't want to change from haproxy 3.4 when lts is upgraded to 3.6 or whatever next lts is.

Are any other changes you proposed here not covered by that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dockerfile pins haproxy:3.4.2-alpine (frozen 2026-07-06), so v0.5.0 and nightly ship 6 fixable HIGH CVEs — #178 again

2 participants