feat(auth): admin reset, docs and image smoke test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-04 20:34:57 -03:00
1 parent 42892cb37f
commit 06b9980659
18 files changed
+267 -21

No files matched your search

+22 -3
View File
@@ -13,6 +13,7 @@ Commands:
analyze Analyze a Zeek log directory
doctor Check the local environment
update Check for available releases
auth Local account recovery (`auth reset`)
```
## `acaua serve`
@@ -28,9 +29,11 @@ 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. Exposing the daemon on a network requires a
reverse proxy with authentication. The API is documented in
[architecture.md](architecture.md#api).
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
`ACAUA_TRANSPORT` set to `local`, `tls` or `proxy` (see
[docker.md](docker.md#authentication-and-transport)). In `tls` mode `--bind`
must be an `IP:port`. The API is documented in [architecture.md](architecture.md#api).
## `acaua analyze`
@@ -68,6 +71,22 @@ Runs environment checks:
- `duckdb`: confirms dynamic linkage against `libduckdb.so` in runtime.
- `research`: verifies that the research workspace remains isolated.
## `acaua auth reset`
```bash
acaua auth reset --username admin --data-dir .acaua
docker compose exec acaua acaua auth reset --username admin --data-dir /data/acaua
```
Local recovery for an administrator who lost the password or the authenticator.
It removes the user's MFA and sessions, clears the login throttle, writes an audit
entry and prints a **temporary password once**. The next login with it requires
enrolling MFA again and choosing a new password before any ordinary session.
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
the command too. An unknown user is refused.
## `acaua update`
```bash