Skip to main content

Module trusted_proxy

Module trusted_proxy 

Source
Expand description

Trusted-proxy configuration for the audit client_ip (#415): TrustedProxyConfig plus the tests covering the allowlist/hop-count behavior in isolation from header parsing (see [crate::headers::forwarded] for the hop-count-aware chain walk itself and crate::headers::enrich_context_from_headers for where the two are combined). See docs/design/trusted-proxy-client-ip.md for the decided design.

Structs§

TrustedProxyConfig
Which peers are trusted to set Forwarded/X-Forwarded-For, how many hops into the chain to trust when they are, and which of the two headers to honor.

Enums§

ForwardedHeader
Which single forwarding header a trusted proxy is expected to write.