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
+11
-4
@@ -187,15 +187,22 @@ The HTTP API is served by `acaua serve`:
|
||||
| Method | Path | Meaning |
|
||||
|---|---|---|
|
||||
| GET | `/api/health` | Liveness (no version) |
|
||||
| GET | `/api/status` | Uptime, data directory, dataset summary |
|
||||
| GET | `/api/alerts` | Paginated alerts with evidence |
|
||||
| GET | `/api/status` | Version, mode and dataset summary |
|
||||
| GET | `/api/alerts` | Alerts of the latest analysis, held in memory, with evidence |
|
||||
| GET | `/api/auth/state` | Whether setup is needed; the caller's name, role, MFA state and CSRF token |
|
||||
| POST | `/api/auth/bootstrap`, `/api/auth/login`, `/api/auth/mfa`, `/api/auth/password-change-required` | First administrator and login steps (public) |
|
||||
| POST | `/api/auth/logout`, `/api/auth/reauth`, `/api/auth/password`, `/api/auth/mfa/disable` | Session actions |
|
||||
| POST | `/api/auth/enroll/start`, `/api/auth/enroll/confirm` | MFA enrollment |
|
||||
| GET, DELETE | `/api/auth/sessions` | List and revoke sessions |
|
||||
| GET, POST, DELETE | `/api/auth/tokens` | List, create and revoke API tokens |
|
||||
| GET, POST, PATCH, DELETE | `/api/admin/users` | User management (administrators; changes need recent reauthentication) |
|
||||
| GET | `/api/admin/audit` | Audit log (administrators) |
|
||||
| POST | `/api/analyze` | Ingest and analyze a dataset directory |
|
||||
| GET | `/api/update` | Check for newer releases |
|
||||
| GET | `/logo.png` | Embedded brand asset |
|
||||
| GET | `/*` | Embedded UI fallback (`rust-embed`) |
|
||||
|
||||
`serve` binds to `127.0.0.1:8787` by default. Every route except `/api/health`
|
||||
and the login assets requires a session or token; `/api/analyze` is admin-only.
|
||||
`serve` binds to `127.0.0.1:8787` by default. 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.
|
||||
Beyond loopback use the `tls` or `proxy` transport
|
||||
([docker.md](docker.md#authentication-and-transport)).
|
||||
|
||||
|
||||
Reference in new issue
Block a user