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:
1 parent
b384ed91c3
commit
4a48f2bd35
6 files changed
+28
-25
No files matched your search
+2
-2
@@ -8,8 +8,8 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versio
|
||||
|
||||
### Added
|
||||
- Authentication: first-run setup code, login always required, TOTP MFA with recovery codes (mandatory for administrators, optional for analysts), sessions, `read`/`admin` API tokens, user management and an audit log. Only `GET /api/health`, `GET /api/auth/state`, `POST /api/auth/{bootstrap,login,mfa,password-change-required}` and the login assets (`/login.html`, `/login.js`, `/app.css`, `/logo.png`, `/i18n.js`, `/i18n-en.js`) work without a session or token; `/api/analyze` is admin-only.
|
||||
- Login limits per username and client address with decay (IPv6 counted per /48), plus a budget of 100 failures per rolling 24 hours per username from unknown addresses: once spent, those addresses are refused before Argon2, usernames with no account included. An address with a completed login in the last 30 days skips the budget, stored as a hash, at most 10 per account, cleared by a password change, an MFA change or `acaua auth reset`. An attacker can therefore delay login from a new address for a real user for up to the budget window, or longer while they keep spending it; known addresses and open sessions are unaffected. MFA remains recommended for analysts.
|
||||
- `login.budget_exhausted` audit event, once per account per 24 hours. The audit log has no rotation yet.
|
||||
- Login limits per username and client address with decay (IPv6 counted per /48), plus a budget of at most 100 failures in any 24 hours (true rolling window) per username from unknown addresses: once spent, those addresses are refused before Argon2, usernames with no account included. An address with a completed login in the last 30 days skips the budget, stored as a hash, at most 10 per account, replaced by the acting address on a password or MFA change from a session, cleared by promotion to administrator or `acaua auth reset`. An attacker can therefore delay login from a new address for a real user for up to the budget window, or longer while they keep spending it; known addresses and open sessions are unaffected. MFA remains recommended for analysts.
|
||||
- `login.budget_exhausted` audit event, once per real account per 24 hours. The audit log has no rotation yet.
|
||||
- Security headers on every response: CSP, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`.
|
||||
- Explicit transport modes (`ACAUA_TRANSPORT=local|tls|proxy`); `local` refuses a port published beyond loopback and, outside a container, a non-loopback `--bind`.
|
||||
- `acaua auth reset --username <name>`: local recovery for any account that prints a temporary password once and forces a password change (administrators also enroll MFA again). It never starts the daemon.
|
||||
|
||||
Reference in new issue
Block a user