docs(auth): state the rolling cap and the trusted-proxy risk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b384ed91c3
commit
4a48f2bd35
6 files changed
+28
-25
No files matched your search
+5
-5
@@ -74,7 +74,7 @@ restart (`docker compose restart acaua`), which prints a new one.
|
||||
|---|---|
|
||||
| `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. The daemon port must be reachable only by the proxy. |
|
||||
| `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. A wrong value makes every client appear as one address, which removes the failure budget's protection and can share lockouts between users. |
|
||||
|
||||
**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
|
||||
@@ -90,14 +90,14 @@ password or disabling MFA revokes that user's admin tokens and keeps read tokens
|
||||
`/api/analyze` is admin-only.
|
||||
|
||||
**Failed logins.** Wrong passwords delay that username from that address (an IPv6
|
||||
/48 counts as one address). Each username also has a budget of 100 failures per
|
||||
rolling 24 hours from unknown addresses: once spent, those addresses are refused,
|
||||
/48 counts as one address). Each username also has a budget of 100 failures in
|
||||
any 24 hours (a true rolling window) from unknown addresses: once spent, those addresses are refused,
|
||||
even with the right password. An address with a completed login in the last 30 days
|
||||
skips the budget, so an attacker can delay a real user's login from a *new* address
|
||||
skips the budget (a credential change from a session keeps only its own address), so an attacker can delay a real user's login from a *new* address
|
||||
for up to the budget window, and longer if they keep going, but not from a known
|
||||
address, and not an open session. If you are locked out on a new address, log in
|
||||
from a known one or run the reset below. Crossing the budget writes
|
||||
`login.budget_exhausted` to the audit log (Admin screen), once per account per 24
|
||||
`login.budget_exhausted` to the audit log (Admin screen), once per real account per 24
|
||||
hours. The audit log has no rotation yet. MFA remains recommended for analysts. A
|
||||
restart clears the per-address counts, not the budgets.
|
||||
|
||||
|
||||
Reference in new issue
Block a user