forked from mtusi2026/mtusi2026lab7
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>
This commit is contained in:
@@ -9,6 +9,7 @@ from .clients import (
|
||||
FakeCache,
|
||||
FakeImageRenderer,
|
||||
FakeJobPublisher,
|
||||
FakeLoginLimiter,
|
||||
FakeObjectStorage,
|
||||
FakeStoredObject,
|
||||
)
|
||||
@@ -37,6 +38,7 @@ __all__ = [
|
||||
"FakeIdempotencyRepository",
|
||||
"FakeImageRenderer",
|
||||
"FakeJobPublisher",
|
||||
"FakeLoginLimiter",
|
||||
"FakeMessageRepository",
|
||||
"FakeObjectStorage",
|
||||
"FakeSessionRepository",
|
||||
|
||||
Reference in New Issue
Block a user