Skip to content

nginx: bump the public nginx image from 1.31.9 to 1.31.10 - #230

Open
aatchison wants to merge 1 commit into
mainfrom
aatchison/up-thundermail-nginx
Open

aatchison wants to merge 1 commit into
mainfrom
aatchison/up-thundermail-nginx

Conversation

@aatchison

@aatchison aatchison commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: Moves the public nginx in tb-dev, tb-stage and tb-prod from 1.31.9 to 1.31.10, which fixes CVE-2026-132779 and a CPU hog on TLS connections to backends.

What

The image is now nginx:1.31.10@sha256:a786635fd3c7b9a57ea089ab1c0713e510f3b548b65fe699ce3d59e4a926b37e (the multi-arch index) in nginx/deployment.yaml under bases/, overlays/_template, overlays/tb-dev, overlays/tb-stage-thundermail and overlays/tb-prod. The default image in components/nginx-jmap-filter/test-jmap-filter.sh moves too, so CI tests the same release.

Why

  • CVE-2026-132779 burns CPU when ssl_early_data is on. None of our configs set it, so we aren't exposed.
  • The backend fix is in the http upstream writer, so it covers our proxy_pass https://stalwart-https locations. It doesn't touch the stream proxy_ssl on server. We haven't seen the bug: nginx CPU on tb-prod peaked under 0.03 cores over the last 10 days. This is a preventive bump.
  • The image also moves to Debian 13.8 and OpenSSL 3.5.9 (from 3.5.7). njs stays at 1.0.2.
  • 1.31.10 is the newest mainline release and has no open advisories: https://nginx.org/en/CHANGES, https://nginx.org/en/security_advisories.html

How it was tested

  • The nginx-jmap-filter CI job passes on 1.31.10 for tb-dev, tb-stage-thundermail and tb-prod, with the same memory peaks as on 1.31.9. It runs nginx -t on each rendered config and then the filter tests, on amd64.
  • util/kustomize-build-all.sh builds the three live overlays. _template also builds locally. Each render differs from main only in the nginx image line.
  • The pods run on arm64 nodes. Locally on the arm64 image under qemu, the tb-prod test passes 112 of 113 checks. The one failure is a 504 in the 20 × 1 MB concurrent soak, and 1.31.9 fails it the same way under qemu.
  • Locally on amd64, the five mail stream ports (25, 465, 587, 993, 4190) still send the PROXY header upstream and pass the banner through. CI doesn't test those ports end to end.

Rollout

All three Argo CD apps track main and auto-sync, so a merge rolls all three environments at once. RollingUpdate 25%/25% gives maxSurge 1 and maxUnavailable 0 at today's 1, 1 and 2 replicas (1 and 1 if the tb-prod HPA is at 4). If a Docker Hub pull fails, the new pod stays in ImagePullBackOff and the old pods keep serving. After the sync, on each cluster:

  • kubectl -n thundermail exec deploy/nginx -- nginx -v prints nginx version: nginx/1.31.10.
  • Webmail login, a JMAP request and an IMAPS login on 993 all work.

Risk

  • Downtime: up to about 30s of refused new connections while the NLB catches up (no readiness gate or preStop); open sessions drop after the 30s grace period. Same as any nginx restart.
  • Blast radius: the public mail and webmail edge in tb-dev, tb-stage and tb-prod at once.
  • Rollback: merge a revert of this PR. kubectl rollout undo won't hold, because Argo CD selfHeal resyncs to main.

Refs: https://github.com/thunderbird/platform-infrastructure/issues/1845

Closes https://github.com/thunderbird/platform-infrastructure/issues/1879

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge; no actionable issues were found.

Summary

Updates public nginx from 1.31.9 to 1.31.10.

  • The public mail and webmail edges now run nginx 1.31.10.

Reviews (2) · Last reviewed commit: "nginx: bump the public nginx image from ..." · Reviewed by Greptile

@aatchison aatchison changed the title nginx: bump the public nginx image from 1.31.9 to 1.31.10 nginx: move the public nginx image to 1.31.10 Dec 1, 2026
@aatchison aatchison changed the title nginx: move the public nginx image to 1.31.10 nginx: bump the public nginx image from 1.31.9 to 1.31.10 Dec 1, 2026
1.31.10 fixes CVE-2026-132779 (CPU use with ssl_early_data) and a CPU
hog on SSL connections to backends. The configs don't set
ssl_early_data, but nginx does proxy to Stalwart over TLS.

Pins the multi-arch index digest in the base, the _template overlay,
tb-dev, tb-stage-thundermail and tb-prod, and in the JMAP filter
test's default image so CI tests the version that ships.

Refs: thunderbird/platform-infrastructure#1845
@aatchison
aatchison force-pushed the aatchison/up-thundermail-nginx branch from 4d3b5b0 to c4e0e8c Compare December 1, 2026 00:47
@aatchison
aatchison marked this pull request as ready for review December 1, 2026 01:12
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.

1 participant