docs: match authentication, limits and API to the code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
513741e403
commit
d48cf9d3f0
14 files changed
+158
-72
No files matched your search
+15
-8
@@ -59,21 +59,22 @@ docker run --rm -v acaua_acaua-data:/data:ro debian:trixie-slim ls -la /data
|
||||
|
||||
## Authentication and transport
|
||||
|
||||
Login is mandatory in every mode. Nothing is served to an unauthenticated
|
||||
client except `/api/health` (without the version) and the login assets.
|
||||
Login is mandatory in every mode; MFA is mandatory for administrators and optional
|
||||
for analysts. Without a credential only these work: `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`).
|
||||
|
||||
**First setup.** On the first start the daemon prints a one-time setup code
|
||||
(valid for 1 hour) to its log: `docker compose logs acaua`. Open the dashboard,
|
||||
enter the code, create the first administrator, then enroll an authenticator app
|
||||
(TOTP) and store the recovery codes shown once.
|
||||
(TOTP) and store the recovery codes shown once. An expired code needs a daemon
|
||||
restart (`docker compose restart acaua`), which prints a new one.
|
||||
|
||||
**Transport modes.** `ACAUA_TRANSPORT` is required; the image defaults to `local`.
|
||||
|
||||
| Mode | Meaning |
|
||||
|---|---|
|
||||
| `local` | Plain HTTP, loopback only. `ACAUA_PUBLISH` must be `127.0.0.1` or `[::1]`; the daemon refuses to start if `ACAUA_PUBLISHED` is anything else. |
|
||||
| `local` | Plain HTTP, loopback only. `ACAUA_PUBLISH` must be `127.0.0.1` or `[::1]`; the daemon refuses to start if `ACAUA_PUBLISHED` is anything else. Outside a container it also refuses a non-loopback `--bind`; the image sets `ACAUA_RUNTIME=container`, where `ACAUA_PUBLISHED` is the control. |
|
||||
| `tls` | The daemon terminates HTTPS. Set `ACAUA_TLS_CERT` and `ACAUA_TLS_KEY` and mount the certificate and key in the container with a compose override; `--bind` must be an `IP:port`. |
|
||||
| `proxy` | An HTTPS reverse proxy sits in front. Set `ACAUA_TRUSTED_PROXIES` to its address as CIDRs. |
|
||||
| `proxy` | An HTTPS reverse proxy sits in front. Set `ACAUA_TRUSTED_PROXIES` to its address as CIDRs. The daemon port must be reachable only by the proxy. |
|
||||
|
||||
**Limits worth knowing.** A bare `docker run -p 0.0.0.0:8787:8787` without
|
||||
`ACAUA_PUBLISHED` is not detected by `local` mode; login still protects the
|
||||
@@ -88,8 +89,13 @@ 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.
|
||||
|
||||
**Recovery.** `acaua auth reset --username <name>` (see [cli.md](cli.md#acaua-auth-reset))
|
||||
prints a temporary password and forces MFA enrollment and a password change.
|
||||
**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.
|
||||
|
||||
**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
|
||||
password and forces a password change; administrators also enroll MFA again.
|
||||
Anyone with Docker access on the host can run it, so Docker access is
|
||||
administrator access to Acauã.
|
||||
|
||||
@@ -110,7 +116,8 @@ ensuring Parquet writes and DuckDB transactions are committed properly.
|
||||
- The `zeek` service requires packet capture privileges (`NET_RAW`, `NET_ADMIN`).
|
||||
Run it only on interfaces and networks you are explicitly authorized to monitor.
|
||||
- The default dashboard binding is loopback-only (`ACAUA_PUBLISH=127.0.0.1:8787`).
|
||||
Login and MFA are always required, but only `tls` and `proxy` encrypt the
|
||||
Login is always required (MFA is mandatory for administrators, optional for
|
||||
analysts), but only `tls` and `proxy` encrypt the
|
||||
traffic: publish beyond loopback only with one of them
|
||||
([details](#authentication-and-transport)).
|
||||
- The image contains no telemetry. Outbound traffic is restricted to operator-initiated
|
||||
|
||||
Reference in new issue
Block a user