Move nginx images to 1.31 on Debian trixie - #814
Merged
Conversation
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.
This was referenced Jul 27, 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.
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/Dockerfileonly, and every one proposes a tag that is itself now stale:nginx:1.27-bookworm(current base)nginx:1.29-bookworm(newest Snyk proposal, #809/#810)nginx:1.31-trixie(this PR)nginx publishes no
bookwormvariant past 1.29 —1.30-bookwormand1.31-bookwormdo 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 asquay.io/shieldproject/webdav. This PR updates both.Verification
Built both images from this branch and exercised them:
GET /returns 200 with the static root served from/www;/initcopieshtdocsas before.PUT201,GET200 with matching payload,MKCOL201,DELETE204, autoindex lists uploaded files.nginx/1.31.3; neither logs anyemerg,crit, orerror.Confirmed the new base retains what these images depend on:
--with-http_dav_moduleis compiled in, thenginxuser exists (uid 101) forchown -R nginx /var/webdav, andbashis present for/initand/webdav.Note on tag strategy
Pinning a floating minor (
1.31) is what produced this backlog:1.27stopped receiving builds and Snyk opened a PR per nginx release for over a year.nginx:mainline-trixieornginx:stable-trixiewould track upstream without going stale. Left as-is here to keep the change to the version bump; worth deciding separately.