Skip to content

docs: deployment recipe for middleware.ClientIPFromXFFTrustedProxies()#1111

Open
VojtechVitek wants to merge 1 commit into
masterfrom
docs-clarify-proxy-hop-counting-for-clie
Open

docs: deployment recipe for middleware.ClientIPFromXFFTrustedProxies()#1111
VojtechVitek wants to merge 1 commit into
masterfrom
docs-clarify-proxy-hop-counting-for-clie

Conversation

@VojtechVitek

Copy link
Copy Markdown
Contributor

Replace the counting prose and ASCII diagram with a recipe table mapping
common deployments to numTrustedProxies values, plus a "verify with a
known IP" step. Steer users toward ClientIPFromXFF with explicit CIDRs
(added pointers to CDN-published IP lists from Cloudflare, AWS, Fastly,
GCP) since CIDR-based trust cannot off-by-one. Add one fail-closed test
case.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

…Proxies

Replace the counting prose and ASCII diagram with a recipe table mapping
common deployments to numTrustedProxies values, plus a "verify with a
known IP" step. Steer users toward ClientIPFromXFF with explicit CIDRs
(added pointers to CDN-published IP lists from Cloudflare, AWS, Fastly,
GCP) since CIDR-based trust cannot off-by-one. Add one fail-closed test
case.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@VojtechVitek VojtechVitek changed the title docs: deployment recipe + verify checklist for ClientIPFromXFFTrustedProxies docs: deployment recipe for ClientIPFromXFFTrustedProxies Jun 14, 2026
@VojtechVitek VojtechVitek changed the title docs: deployment recipe for ClientIPFromXFFTrustedProxies docs: deployment recipe for middleware.ClientIPFromXFFTrustedProxies() Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant