Skip to main content

Module trust

Module trust 

Source
Expand description

Trusted-proxy predicate.

Combines user-configured trusted-proxy CIDRs with an optional Cloudflare IP cache into a single is_trusted(peer_ip) -> bool predicate. The reverse-proxy service uses this to decide whether to honor CF-Connecting-IP / X-Forwarded-For request headers from a given peer.

Structsยง

TrustedProxyList
A list of trusted upstream proxies, expressed as a set of user CIDRs plus an optional Cloudflare IP cache.