From 029adccb83f3e2cb19375e1b90e957fb23c48ba8 Mon Sep 17 00:00:00 2001 From: 13768039+zomby1 <13768039+zomby1@users.noreply.github.com> Date: Thu, 26 Nov 2026 08:55:09 +0100 Subject: [PATCH] docs(auth): the two dead-capability requests with no route status to copy A WebSocket upgrade and GET /webview/ without the trailing slash get the hook's 403 under a dead web-tab capability. Say so in section 10a, next to the statuses. --- docs/security-architecture.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/security-architecture.md b/docs/security-architecture.md index 5635c9b0..71799b02 100644 --- a/docs/security-architecture.md +++ b/docs/security-architecture.md @@ -703,7 +703,11 @@ peer (§3). capability exemptions do not let through, whatever its token looks like, is refused with the route's own answer (`403` web tab, `404` HTML view) BEFORE the credential checks: no Basic challenge, no - password check, no failure count (`serveRefusedCapabilityPath`). The prefix is judged + password check, no failure count (`serveRefusedCapabilityPath`). Two requests under a + dead web‑tab capability have no route status to copy and get the hook's `403` as well: a + WebSocket upgrade is refused at the handshake (the route alone accepts it and closes + with `4003`), and `GET /webview/` without the trailing slash is not redirected + (the route alone answers `302`). 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. Under a base path (`CODEMAN_BASE_URL`) the