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

+8 -5
View File
@@ -29,8 +29,8 @@ acaua serve --bind 127.0.0.1:8787 --data-dir .acaua
| `--bind` | `127.0.0.1:8787` | Listen address |
| `--data-dir` | `.acaua` | Store and runtime files |
The default bind is loopback-only. Login (with MFA) is mandatory in every mode,
but plain HTTP is not encrypted: the daemon refuses to start without
The default bind is loopback-only. Login is mandatory in every mode (MFA is mandatory for
administrators and optional for analysts), but plain HTTP is not encrypted: the daemon refuses to start without
`ACAUA_TRANSPORT` set to `local`, `tls` or `proxy`; `local` refuses a non-loopback
`--bind` unless `ACAUA_RUNTIME=container` (see
[docker.md](docker.md#authentication-and-transport)). In `tls` mode `--bind`
@@ -84,9 +84,12 @@ or the authenticator. It removes the user's MFA, recovery codes, sessions and al
API tokens (read tokens included), clears the per-user count of MFA and session
password failures, writes an audit entry and prints a **temporary password once**.
The next login with it requires choosing a new password before any ordinary session;
an administrator enrolls MFA again first. Login failure counts live in the daemon's
memory, so the command does not clear them: wait for the delay, use another
address, or restart the daemon.
an administrator enrolls MFA again first. It also clears the account's known
addresses and its login failure budget and per-address counts, which is the way in
for an owner locked out on an unknown address; a running daemon applies this at the
next login. An attacker still running can spend the budget again. The per-address
overall limit stays in the daemon's memory: wait for it, use another address, or
restart the daemon.
The command edits the data directory only: it never starts the daemon and does
not need `ACAUA_TRANSPORT`. A running daemon sees the change on its next request.
If the secret key is an external file, `ACAUA_SECRET_KEY_FILE` must be set for