fix: address auth-hardening verify findings

Drop the body-limit rule from HAProxy (user decision 2026-11-18): the
replica middleware answers 400 with X-Instance-Id, tests require the
header again. Widen the failure_checks selection in the trust matrix,
name 13fdd18 in the evidence header, document Valkey LRU eviction of
login counters and the allowlist as trusted X-Forwarded-For senders,
check waited_ms of KDF budget rejections in the queue scenario.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 10:31:57 +03:00
co-authored by Claude Opus 5.5
parent 4d117f0297
commit 3f4771c9d9
22 changed files with 372 additions and 127 deletions
+2 -2
View File
@@ -510,8 +510,8 @@ Design change `otel-telemetry`, решения 1, 7, 14–20; правила к
- Без простоя новый код доходит до реплик через `make rolling_update`
(`balancer.md`): по одной, с выводом из LB и одной миграцией.
- `infra/haproxy/haproxy.cfg` смонтирован файлом: правка (с change
`auth-hardening` — две строки `frontend entry`: перезапись
`X-Forwarded-For` и предел тела 64 KiB) действует после пересоздания или
`auth-hardening` — строка `frontend entry` с перезаписью
`X-Forwarded-For`; предела тела в LB нет) действует после пересоздания или
рестарта `haproxy` (`make run_docker`, `docker compose up -d --no-deps
haproxy`). Порядок «сначала LB» безопасен: прежние реплики заголовок
игнорируют; до пересоздания LB новые реплики считают адресом клиента LB