Skip to main content

Module proxy

Module proxy 

Source
Expand description

Trusted reverse-proxy CIDR matching and RFC 7239 Forwarded / X-Forwarded-* client resolution (governed by serve-operations.sot.md SO-PRX-1).

Forwarding headers are honored only when the TCP peer address belongs to a configured trusted proxy CIDR. Untrusted peers cannot spoof client IP, scheme, or host.

Structs§

ResolvedClient
Client identity resolved from TCP peer and (when trusted) proxy headers.
TrustedProxyConfig
Configured set of trusted reverse proxies.

Enums§

IpCidr
A single IPv4 or IPv6 CIDR network range.

Functions§

resolve_client
Resolve effective client IP, scheme, and host from TCP peer_ip and request headers (ASCII-lowercase keys).