Skip to content

Move nginx images to 1.31 on Debian trixie - #814

Merged
wayneeseguin merged 1 commit into
developfrom
q3-2026-nginx-base-image-bump
Jul 27, 2026
Merged

Move nginx images to 1.31 on Debian trixie#814
wayneeseguin merged 1 commit into
developfrom
q3-2026-nginx-base-image-bump

Conversation

@wayneeseguin

Copy link
Copy Markdown
Contributor

Supersedes the twenty open Snyk nginx PRs (#777, #784#787, #789, #790, #793, #795, #798#801, #803#807, #809, #810).

Why the Snyk PRs cannot simply be merged

Every one of those PRs targets docker/demo/Dockerfile only, and every one proposes a tag that is itself now stale:

Tag Docker Hub last rebuild
nginx:1.27-bookworm (current base) 2025-06-11
nginx:1.29-bookworm (newest Snyk proposal, #809/#810) 2025-09-30
nginx:1.31-trixie (this PR) 2026-07-16

nginx publishes no bookworm variant past 1.29 — 1.30-bookworm and 1.31-bookworm do not exist. Staying current therefore requires moving to trixie, which no Snyk PR does. Merging any of them would leave the base a year behind and re-open the same alert on the next scan.

Snyk also never opened a PR against docker/webdav/Dockerfile, which runs the same stale nginx base and is published as quay.io/shieldproject/webdav. This PR updates both.

Verification

Built both images from this branch and exercised them:

  • demoGET / returns 200 with the static root served from /www; /init copies htdocs as before.
  • webdavPUT 201, GET 200 with matching payload, MKCOL 201, DELETE 204, autoindex lists uploaded files.
  • Both report nginx/1.31.3; neither logs any emerg, crit, or error.

Confirmed the new base retains what these images depend on: --with-http_dav_module is compiled in, the nginx user exists (uid 101) for chown -R nginx /var/webdav, and bash is present for /init and /webdav.

Note on tag strategy

Pinning a floating minor (1.31) is what produced this backlog: 1.27 stopped receiving builds and Snyk opened a PR per nginx release for over a year. nginx:mainline-trixie or nginx:stable-trixie would track upstream without going stale. Left as-is here to keep the change to the version bump; worth deciding separately.

The nginx:1.27-bookworm base was last rebuilt 2025-06-11 and
carries over a year of unpatched Debian CVEs. nginx publishes no
bookworm variant past 1.29, so staying current requires trixie.

Verified both images build and serve: demo returns 200 for the
static root; webdav handles PUT, GET, MKCOL, DELETE, and
autoindex. The http_dav_module and the nginx user are present on
the new base.
@wayneeseguin
wayneeseguin merged commit 1d8faee into develop Jul 27, 2026
1 check was pending
@wayneeseguin
wayneeseguin deleted the q3-2026-nginx-base-image-bump branch July 27, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant