Skip to content

Commit 115efa0

Browse files
committed
docs(authentication): say Setup shows the address the server judges before an allowed IP ranges save
The "Saving, clearing and lockout recovery" list now names the note under the Allowed IP ranges field: the address the server judges for the request, read from GET /api/v1/auth/admin/client-address (platform administrators only), whether forwarded headers counted, and the no-address case. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZhiLoN3MZGp7ZnqCg
1 parent db04e5c commit 115efa0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎content/docs/permissions/authentication.mdx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,14 @@ These rules apply to `allowed_ip_ranges`.
669669
because the gate would refuse you too. Only a change is checked: saving the list
670670
already in force again is not refused. Writes made inside the server (boot, seed,
671671
migrations) carry no request and are not checked.
672+
- **Setup shows your address before you save.** Under the field, **Setup →
673+
Authentication** shows the address the server judges for your request, read from
674+
`GET /api/v1/auth/admin/client-address` (platform administrators only), which
675+
answers `{ clientAddress, trustProxy }`: the note says whether that address came
676+
from the forwarded headers of a proxy the server trusts (`server.trustProxy`) or
677+
from the connection itself, which behind a proxy it does not trust is the proxy's
678+
own address, and when `clientAddress` is `null` it says instead that no non-empty
679+
list can be saved.
672680
- **Clearing takes effect at once.** Empty the field and save. No restart is needed:
673681
the gate goes back to the list the deployment itself declares (`allowedIpRanges` in
674682
its auth configuration, for example set by an `auth:configure` handler), or to no

0 commit comments

Comments
 (0)