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:
@@ -134,6 +134,14 @@ identity `ingress` (change `https-tooling`, design, решение 4).
|
||||
нет: адрес LB в сети compose динамический, identity уже проверена. В консоли (без проверки
|
||||
клиента) заголовок не учитывается, `uvicorn.run(proxy_headers=False)`; правило — одна функция
|
||||
`client_address` в `dependencies.py` (`api-layer.md`).
|
||||
- **Allowlist реплики — это и список доверенных отправителей `X-Forwarded-For`** (verify S5
|
||||
change `auth-hardening`): `client_address` верит заголовку от любой identity из `[api_tls]
|
||||
allowed_clients`, отдельной проверки «это `haproxy`» нет. Расширять allowlist можно только
|
||||
identity, которая сама перезаписывает заголовок адресом своего соединения (как `http-request
|
||||
set-header X-Forwarded-For %[src]` в `frontend entry`): иначе её клиент подставит любой адрес
|
||||
и обойдёт предел адреса и пары, а неудачи посчитаются на чужой адрес. Проба `make mtls_check`
|
||||
кладёт в allowlist контрольной реплики свою identity — это реплика пробы вне LB, а не рабочий
|
||||
стенд; клиент стенда отказов в роли LB (`TLS_CLIENT_CERT`) ставит заголовок сам.
|
||||
|
||||
## Health
|
||||
|
||||
|
||||
Reference in New Issue
Block a user