docs: match authentication, limits and API to the code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-04 21:03:27 -03:00
1 parent 513741e403
commit d48cf9d3f0
14 files changed
+158 -72

No files matched your search

+5 -3
View File
@@ -7,9 +7,11 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versio
## [Unreleased]
### Added
- Authentication: first-run setup code, login with mandatory TOTP MFA and recovery codes, sessions, `read`/`admin` API tokens, user management and an audit log. Every route except `/api/health` requires a session or token; `/api/analyze` is admin-only.
- Explicit transport modes (`ACAUA_TRANSPORT=local|tls|proxy`); `local` refuses a port published beyond loopback.
- `acaua auth reset --username <name>`: local admin recovery that prints a temporary password once and forces MFA enrollment and a password change. It never starts the daemon.
- 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, plus a loose per-username limit that delays every address by a bounded time, so one address cannot lock an account. These counts are in memory; a refused attempt writes nothing to disk.
- 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.
- `ACAUA_SECRET_KEY_FILE` to keep the secret key in a Docker secret.
- The image smoke test checks the unauthenticated 401/redirect, the setup code in the log and the `local` refusal.