From 60f1b11c43c7ce9c80d48875973be1085e0a40be Mon Sep 17 00:00:00 2001 From: RunTimeAdmin <248247024+RunTimeAdmin@users.noreply.github.com> Date: Sun, 15 Nov 2026 12:09:44 -0600 Subject: [PATCH] Refuse /attest bodies over 64 KB at Caddy in the oracle's example config [skip ci] The same lines went into the live Caddyfile on archipelago-standby on 15 Nov 2026, with #311: the oracle takes 32 KB on /attest and cuts a body still arriving after 10 s, and this keeps oversized bodies off its socket. Kept inside the @attest handle, since the Caddy that serves the oracle also serves other sites. Co-Authored-By: Claude Opus 5.5 --- oracle/Caddyfile.oracle.example | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/oracle/Caddyfile.oracle.example b/oracle/Caddyfile.oracle.example index 6585d68e..584c9a7b 100644 --- a/oracle/Caddyfile.oracle.example +++ b/oracle/Caddyfile.oracle.example @@ -79,6 +79,13 @@ oracle.sigvara.xyz { # attestation landed when it did not. header Cache-Control "no-store" + # Bodies over 64 KB are refused here. The oracle takes 32 KB on /attest and cuts a body still + # arriving after 10 s (Sigvara#311); this keeps the bytes off its socket. In this block only, + # since this Caddy serves other sites. + request_body { + max_size 64KB + } + reverse_proxy sigvara-oracle:3030 }