# security_http.py via LB, 2 API replicas (2026-11-16T11:39:04Z) PASS setup: chat + attachment 202 PASS outsider GET /api/v1/chats/{chat} -> 404 (no existence leak) 404 PASS outsider GET /api/v1/chats/{chat}/messages -> 404 (no existence leak) 404 PASS outsider POST /api/v1/chats/{chat}/messages -> 404 (no existence leak) 404 PASS outsider GET /api/v1/attachments/{att} -> 404 (no existence leak) 404 PASS outsider GET /api/v1/attachments/{att}/content -> 404 (no existence leak) 404 PASS outsider attaches foreign attachment to own chat -> 404 404 PASS X-User-Id cannot override Bearer identity eve_26766f0a44 PASS X-User-Id alone -> 401 + WWW-Authenticate Bearer Bearer realm="messenger" PASS Basic on business endpoint -> 401 401 PASS unknown/forged token -> 401 401 PASS logout 204 -> token rejected 401 -> repeat logout 401 (204, 401, 401) PASS wrong password -> 401, body has no username/password/hash {"error":{"code":"unauthorized","message":"Authentication required","request_id" PASS malformed JSON -> 400 without stack trace/SQL {"error":{"code":"invalid_request","message":"Invalid request","request_id":"7F0 PASS login brute force -> 429 rate_limited + Retry-After [401, 401, 401, 401, 401, 401, 401, 401, 401, 429, 429, 429] Retry-After=55 PASS rate limit is shared: responses from >= 2 replicas ['api-1213c2d7', 'api-21b5d532'] PASS correct password while locked out -> 429 (no oracle) 429 PASS JSON body 70 KB -> 413 payload_too_large from LB (before any replica) instance=None PASS chunked JSON 70 KB -> 413 payload_too_large (API) instance=api-1213c2d7 PASS upload 10 MiB + 1 byte -> 413 413 PASS wrong server name -> certificate verification error Hostname mismatch, certificate is not valid for 'evil.example'. PASS empty trust store -> verification error unable to get local issuer certificate PASS plaintext HTTP on HTTPS port is not served RemoteDisconnected PASS grafana over HTTPS requires authentication (skipped: not reachable) ConnectionRefusedError PASS: 24/24 checks