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

+21 -4
View File
@@ -22,19 +22,36 @@ reproduction when a private channel is available.
memory or escape the configured data directory.
- **Path handling:** dataset paths are resolved and confined to the configured
root; symbolic links are not followed outside it.
- **Authentication:** login with mandatory MFA (TOTP) guards every route except
`/api/health`; sessions, API tokens (`read`/`admin`) and an audit log are kept
- **Authentication:** login is always required; MFA (TOTP) is mandatory for
administrators and optional for analysts. The only routes open without a
credential are `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`). Sessions, API tokens (`read`/`admin`) and an audit log are kept
in the data directory. A password or MFA change revokes admin tokens and keeps
read tokens. `/api/analyze` is admin-only.
- **Attempt limits:** wrong passwords count per username and client address, so
one address cannot lock the owner out from another; counts fade by one every 15
minutes. Past 100 failures on one username from any address, every address waits
60 s for its turn and then backs off with no free attempts: this delays guessing
spread over many addresses without letting it block the owner. It slows a large
botnet but does not stop it, so long passwords and MFA remain the real defense.
These 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 password or from a live session.
- **Browser headers:** every response has a CSP (`script-src 'self'`,
`frame-ancestors 'none'`), `X-Frame-Options: DENY`, `nosniff` and
`Referrer-Policy: no-referrer`. `style-src` allows `'unsafe-inline'`, which the
report's inline stylesheet and Paged.js need.
- **API exposure:** `serve` binds to `127.0.0.1` by default and refuses to start
without an explicit transport (`local`, `tls` or `proxy`). Publishing beyond
loopback is an operator decision and needs `tls` or `proxy`. A bare
loopback is an operator decision and needs `tls` or `proxy`; `local` refuses a
non-loopback `--bind` unless `ACAUA_RUNTIME=container`, where `ACAUA_PUBLISHED`
is the control. In `proxy` mode the daemon port must be reachable only by the
proxy. A bare
`docker run -p` without `ACAUA_PUBLISHED` is not detected (login stays mandatory).
- **Secret key:** MFA secrets are sealed with a key stored in the data volume by
default, which does not protect against copying the volume; prefer a Docker
secret via `ACAUA_SECRET_KEY_FILE`.
- **Host access:** anyone with Docker access on the host can run
`acaua auth reset` and take over an administrator account.
`acaua auth reset` and take over any account.
- **Evidence integrity:** alert evidence must be reproducible from the same
input and code version. Silent nondeterminism is a correctness and security
issue.