forked from mtusi2026/mtusi2026lab7
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user