Commit Graph
6 Commits
Author SHA1 Message Date
ricoromaandClaude Opus 5.5 fa5ba51d6a fix: delete login counters that drop to zero
A reserve returned after a KDF budget rejection or 503 left a zero key
in Valkey until the end of the window, so a flood with new usernames
created keys past the address limit and could evict real counters.
SETTLE_SCRIPT and LocalLoginLimiter now delete a counter at zero.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:42:25 +03:00
ricoromaandClaude Opus 5.5 3f4771c9d9 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>
2026-11-18 10:31:57 +03:00
ricoromaandClaude Opus 5.5 c0971cffe6 docs: move the full bench_login label to the last step of the lab
User decision 2026-11-17: the 35-minute baseline2 label and its H1-H4
verdicts are taken with the other long measurements on a quiet host.
Apply auth-hardening closes without them; tasks 9.4 and 11.3 keep the
moved part as a note, PLAN.md lists it in the last step (decision 10).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 18:38:52 +03:00
ricoromaandClaude Opus 5.5 3a98a0e702 fix: record replica death and OOM in the login bench profile
The first baseline attempt on 13fdd18 lost CPU and peak memory of the
"before" variant: its replicas died inside the window and the profile
did not notice. Poll memory.peak during the window, inspect replicas
after it (OOMKilled, exit code, time of death), add oom / replica_died
marks and base H4 on them. The attempt is kept out of git and recorded
in QUESTIONS.md; the label is retaken as baseline2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 18:29:14 +03:00
ricoromaandClaude Opus 5.5 13fdd187c6 feat: harden authentication (Argon2id by measurement, login limits, body limit)
Apply auth-hardening up to the bench_login label: Argon2id parameters
from [auth] chosen by driver.py argon2-params (m=64 MiB, t=2, p=1),
rehash on login, per-process KDF budget with 429, shared login failure
limit in Valkey with a local fallback, X-Forwarded-For from HAProxy,
64 KiB body limit (400) in LB and middleware, bench login profile,
tests, threat model and trust matrix rows. Hypotheses H1-H4 are
committed here before the baseline label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:52:48 +03:00
Mikhail Verkovykh 20afc2c790 Подготовить skeleton лабораторной 7 по мессенджеру 2026-09-10 18:01:36 +03:00