From bb6891538494245006357674c1909b7c9c8d12e8 Mon Sep 17 00:00:00 2001 From: 13768039+zomby1 <13768039+zomby1@users.noreply.github.com> Date: Wed, 25 Nov 2026 09:37:50 +0100 Subject: [PATCH] docs(auth): the capability refusal also covers re-spelled base paths --- docs/security-architecture.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/security-architecture.md b/docs/security-architecture.md index b6522d74..323afac5 100644 --- a/docs/security-architecture.md +++ b/docs/security-architecture.md @@ -706,7 +706,10 @@ peer (§3). password check, no failure count (`serveRefusedCapabilityPath`). The prefix is judged the way a proxy's path matcher would (`capabilityPrefixOf`: case‑insensitive, percent‑decoded, dot segments and doubled slashes resolved), since the proxy forwards - every such spelling without its sign‑in. Otherwise anonymous + every such spelling without its sign‑in. Under a base path (`CODEMAN_BASE_URL`) the + mount prefix is judged the same way: the server strips only its literal spelling, so + the refusal removes the normalised prefix once before it looks for the capability + prefix. Otherwise anonymous requests through the proxy could probe passwords and fill the per‑IP bucket, which behind the proxy is always `127.0.0.1`, locking out Basic sign‑in from loopback. Without a proxy configured these paths keep the normal `401` challenge. One limit