docs(auth): state the rolling cap and the trusted-proxy risk

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-05 06:48:59 -03:00
1 parent b384ed91c3
commit 4a48f2bd35
6 files changed
+28 -25

No files matched your search

+7 -6
View File
@@ -30,21 +30,22 @@ reproduction when a private channel is available.
- **Attempt limits:** wrong passwords count per username and client address
(an IPv4 address or an IPv6 /48), and an address also has its own overall limit;
counts fade by one every 15 minutes. On top of that each username has a budget of
100 failures per rolling 24 hours from addresses it has not logged in from, fading
by one every 14.4 minutes. Once spent, attempts from unknown addresses are refused
100 failures in any 24 hours from addresses it has not logged in from, counted over
a true rolling window: a slot opens only when a failure turns 24 hours old. Once spent, attempts from unknown addresses are refused
before the password is evaluated, even with the right password. Usernames with no
account behave the same. An address with a completed login (after MFA, if
required) in the last 30 days skips the budget but not the per-address limit; each
account keeps at most 10, as hashes rather than addresses, cleared by a password
change, an MFA change or `acaua auth reset`.
account keeps at most 10, as hashes rather than addresses. A password or MFA change
from a live session keeps only the address that made it; promotion to administrator
and `acaua auth reset` clear the list.
**The limit that remains:** an attacker can stop logins from a *new* address for
a real user for the whole budget window, and for as long as they keep spending the
slots as they fade. Known addresses, existing sessions and API tokens keep working,
slots as they open. Known addresses, existing sessions and API tokens keep working,
and `acaua auth reset` clears the budget; an attacker still running can spend it
again. Up to 100 guesses a day per account remain possible, so long passwords
matter, and MFA remains recommended for analysts.
Crossing the budget writes one `login.budget_exhausted` audit event per account
per 24 hours. The audit log has no rotation yet: failed logins add to it, so watch
per 24 hours; a username with no account writes none. The audit log has no rotation yet: failed logins add to it, so watch
its size on an exposed instance. Budgets of real accounts survive a restart;
per-address counts are in memory and a restart clears them. MFA codes and session
password checks use a separate persistent per-user count, reachable only past the