Repository navigation
Description
Problem
Both servers run an older Caddy on purpose: version 2.11.4, fixed by digest. The newest Caddy (2.11.6) crashes under load we really hit, so #988 stopped it from updating. A pin that nobody moves stays behind on every later security fix, and nothing in the repo will ever move it on its own.
Why
Caddy 2.11.6 crashes when a backend dies while a request body is still being sent to it (upstream caddyserver/caddy#8106, still open on 2026-10-03). It took the staging box down on 2026-10-02. Dependabot does not watch compose files, so no pull request will ever offer a newer Caddy.
Fix
When a Caddy release that closes caddyserver/caddy#8106 is out, move the pin to that release by digest.
Not workable until that upstream release exists. Check the upstream issue first. If it is still open, stop.
Technical part
- The pin lives in two places that must move together:
compose.hetzner.yaml: thex-caddy-imageanchor (used bycaddyandcaddy-validate).compose.prod.yaml: thecaddyservice (laptop parity stack).
- Also update the ingress row in
docs/deployment/runbook.mdand the comment above the anchor. - Get the digest with
docker buildx imagetools inspect caddy:<version>-alpine(the index digest). - Proof before the PR:
docker run --rm <pinned ref> caddy versionshows the new version, and the gate passes on the real Caddyfile:docker compose -f compose.hetzner.yaml --env-file <env> --profile validate run --rm --no-deps caddy-validate. - After the deploy:
ssh lotro-staging 'docker exec lotro-staging-caddy-1 caddy version', then the same onlotro-prodafter promotion. - If a Caddy security release ships while #8106 is still open, raise this ticket's priority and decide then whether 2.11.4 is still the safer choice.
Acceptance criteria
- Both compose files pin the same new Caddy version by digest.
- The release notes of that version show Idle request-body deadlines outlive their handler caddyserver/caddy#8106 fixed.
- The Caddyfile gate passes with the new image.
- Both boxes report the new version after deploy.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
koniecdev commentedon Oct 3, 2026
Another way to do this, raised by the review on #988, and left for the owner to decide:
Add a
docker-composepackage-ecosystem entry to.github/dependabot.yml, with anignorefor caddy2.11.6. Then a Caddy release that fixes caddyserver/caddy#8106, or a later security release, shows up as a pull request. Nobody has to remember this ticket.Why it was not done in #988: the entry would also watch every other image in the compose files (RabbitMQ, the observability images, postgres, and the
:latestimages in the dev and parity stacks). It would also add a fourth weekly Dependabot pull request, and the file's header says the target is three (nuget, github-actions, docker). That is a policy change, not part of a crash fix.koniecdev commentedon Oct 3, 2026
Verdict: BLOCKED — not workable yet (checked 2026-10-03)
The Caddy fix this ticket waits for is not released yet. There is no version to move the pin to.
Security check (the ticket's last bullet). 2.11.6 has security fixes that 2.11.4 does not have. I checked each one against our two Caddyfiles (
.docker/hetzner/Caddyfile,.docker/caddy/Caddyfile):forward_authtogether withreverse_proxy. Neither Caddyfile usesforward_auth.path_regexpbackslash fix (the rest of CVE-2026-52844): it is about Windows paths, and we use nopath_regexp.So 2.11.4 is still the safer choice, and the priority stays as it is.
No branch and no code. I did not close the ticket; that is the owner's call. Run this ticket again when a Caddy release closes #8106.
Still open for the owner: the Dependabot
docker-composeidea in the comment above. It would make this ticket unnecessary to remember.koniecdev commentedon Oct 4, 2026
Verdict: READY (checked 2026-10-04)
The fix this ticket waits for is now released.
ab7e6b6d8) is in the v2.11.6...v2.11.7 compare.Lane: S (a pin moves in two compose files plus two doc lines), but the proof is the larger part.
Plan
x-caddy-image(compose.hetzner.yaml) and thecaddyimage (compose.prod.yaml) tocaddy:2.11.7-alpine@sha256:<index digest>, and update the comment above the anchor and the runbook ingress row.caddy version, thecaddy-validategate on the real Hetzner Caddyfile, and a real sign-in through 2.11.7 with the cookie size measured.Assumptions: none yet. If one of the breaking changes hits our traffic, I will report it here and not move the pin.
koniecdev commentedon Oct 4, 2026
Verdict: BLOCKED again: the Docker image is not out yet (checked 2026-10-04)
This comment replaces the READY comment above. Caddy has released the fix. But we cannot pin to it yet, because the Docker image for that release does not exist.
caddy:2.11.7-alpineis not published.docker buildx imagetools inspect caddy:2.11.7-alpineanswersnot found.caddy:2-alpineandcaddy:2.11-alpinestill point to 2.11.6.No branch and no code. The ticket stays open.
Checked already, so the next run is only the pin bump
Caddy 2.11.6 brought breaking changes that 2.11.4 does not have. 2.11.7 keeps all of them. When we move off 2.11.4, these changes stay with us for good. So I checked each one against our traffic.
I used the
caddy:2.11.6-alpineimage for the checks, because it has the same changes as 2.11.7.431..are dropped.methodmatcher,client_authon a wildcard site,handle_path/strip_prefix,forward_auth,mapand FastCGI.Details for each row:
SaveTokens = true). So the cookie is the biggest header.Cookieheader. The auth cookie is split into two chunks of 3,986 and 1,161.src/of LOTRO or TheKittySaver has a dot.X-LOTRO-*,X-TKS-*,X-Correlation-ID, ...IFormFile. So Kestrel reads the whole body before the handler runs. The read never stalls on our side.caddy validateon.docker/hetzner/Caddyfile, with a staging-like env and the obs vhost on: valid.caddy adapton.docker/caddy/Caddyfile: valid.For the next run
docker buildx imagetools inspect caddy:2.11.7-alpine.not found, stop.x-caddy-imageincompose.hetzner.yaml.caddyservice incompose.prod.yaml.docs/deployment/runbook.md. It says "2.11.6 crashes, Caddy 2.11.6 crashes when an HTTP/2 request body is still being read after its handler ended #988".caddy versionand thecaddy-validategate.Ticket report
Shipped: nothing. The ticket is blocked, because there is no
caddy:2.11.7-alpineimage to pin to yet.Proof:
gh:docker buildx imagetools inspect caddy:2.11.7-alpine→not found.Frontend.E2E.Tests. I ran it once and deleted it. Nothing was committed.Assumptions:
SaveTokens = true).Doubts:
Follow-ups:
docker-composeidea from the first comment is still the owner's call. With it, a new Caddy release would open a PR on its own, and nobody would have to check by hand.koniecdev commentedon Oct 4, 2026
The Dependabot idea from the first comment is now its own ticket: #1001. It watches only the
caddyimage in the compose files. Whencaddy:2.11.7-alpinecomes out, its first pull request does the pin bump for this ticket.koniecdev commentedon Oct 6, 2026
Verdict: READY (checked 2026-10-07)
The blocker from the last comment is gone: docker-library/official-images#22416 was merged on 2026-10-05, so
caddy:2.11.7-alpinenow exists.sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f.caddy:2-alpineandcaddy:2.11-alpinepoint to the same digest.Lane: S.
Plan
x-caddy-image(compose.hetzner.yaml) and thecaddyservice (compose.prod.yaml) tocaddy:2.11.7-alpine@sha256:d8542f48….caddy version, thecaddy-validategate on the Hetzner Caddyfile,caddy adapton the parity Caddyfile.New in 2.11.7, checked against our Caddyfiles: the
Incrementalheader (a 501 only withrequest_buffers/response_buffers; we use neither, and no app sends the header), empty placeholders for missing cookies (we use no cookie or TLS placeholder; our onerespondis a barerespond 404), andSet-Cookiein a JSONset(we use the Caddyfile). The 2.11.6 breaking changes were already checked in the comment above.Assumptions: none.
Let Caddy accept request headers up to the apps' 32 KB limit
Move Caddy from 2.11.4 to 2.11.7 on both boxes and the parity stack