Follow the recovery-session admission wrapper into the shared direct-loopback and constant-time IP predicate. Check separately that live recovery reads use the same predicate on the original request and freshly checked binding, so the documentation guard keeps verifying the real restrictions after the allocation refactor.
Change-source: pulse-maintainer
Loopback trust (no-auth access, recovery tokens and sessions,
unauthenticated config transfer, the rate-limit exemption) now needs more
than a loopback peer: no reverse-proxy forwarding header, a Host that is
localhost, *.localhost or a loopback literal, and a browser request that is
same-origin by Fetch Metadata or names exactly this origin. A same-host
proxy passing a public Host, a page whose name resolves to 127.0.0.1, or a
page on another origin no longer counts as a local user.
GetClientIP now takes the right-most X-Forwarded-For hop that is not in
PULSE_TRUSTED_PROXY_CIDRS, reading every header line and accepting entries
with ports, instead of the first entry. A proxy that appends keeps the
client's own entries on the left, so the first entry is client-chosen.
Lockout, rate limits, audit addresses and recovery-token binding use this.
The reverse-proxy guide explains multi-hop setups: list upstream hops as
trusted or have the final proxy replace the header.
Replace the bare recovery-action list with the existing client-bound effects, direct-loopback limits and single-use token consumption. Link password and lockout recovery instead of suggesting cookie transfer, a status-token probe or a blind retry. Keep the shipped reference identical and register source-consistency checks in the existing documentation test inventory.
Contract-Neutral: Documentation and registered consistency tests only; recovery admission, sessions, credentials and API behaviour are unchanged.
Change-source: pulse-maintainer