docs(auth): describe the login budget and its limits

Also corrects cli.md, which said MFA is required for everyone.

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:27:39 -03:00
1 parent 0e4e8cc37e
commit b7fd1b7c8a
8 files changed
+85 -35

No files matched your search

+11 -3
View File
@@ -89,9 +89,17 @@ secret and point `ACAUA_SECRET_KEY_FILE` to it (for example
password or disabling MFA revokes that user's admin tokens and keeps read tokens.
`/api/analyze` is admin-only.
**Failed logins.** Wrong passwords delay that username from that address, so an
attacker elsewhere does not lock the owner out. Past 100 failures from any address,
each address waits 60 s for a turn. A daemon restart clears these counts.
**Failed logins.** Wrong passwords delay that username from that address (an IPv6
/48 counts as one address). Each username also has a budget of 100 failures per
rolling 24 hours from unknown addresses: once spent, those addresses are refused,
even with the right password. An address with a completed login in the last 30 days
skips the budget, so an attacker can delay a real user's login from a *new* address
for up to the budget window, and longer if they keep going, but not from a known
address, and not an open session. If you are locked out on a new address, log in
from a known one or run the reset below. Crossing the budget writes
`login.budget_exhausted` to the audit log (Admin screen), once per account per 24
hours. The audit log has no rotation yet. MFA remains recommended for analysts. A
restart clears the per-address counts, not the budgets.
**Recovery.** `docker compose exec acaua acaua auth reset --username <name> --data-dir /data/acaua`
(see [cli.md](cli.md#acaua-auth-reset)) works for any account: it prints a temporary