Skip to content

docs(security): forwarded-headers trusted-proxy config (TrustedProxyOptions)#237

Open
marcelo-maciel wants to merge 1 commit into
fullstackhero:mainfrom
marcelo-maciel:fix/forwarded-headers-trusted-proxy
Open

docs(security): forwarded-headers trusted-proxy config (TrustedProxyOptions)#237
marcelo-maciel wants to merge 1 commit into
fullstackhero:mainfrom
marcelo-maciel:fix/forwarded-headers-trusted-proxy

Conversation

@marcelo-maciel

Copy link
Copy Markdown
Contributor

Documents the forwarded-headers / trusted-proxy change from starter-kit PR #1334 (honor X-Forwarded-* behind a reverse proxy; trust bound to a new TrustedProxyOptions).

Changes

  • Changelog (## 2026-07-13): the real-client-IP fix — why it matters (rate-limit buckets collapsing, useless audit IPs), the TrustedProxyOptions trust model, and the action-required note (set your ingress CIDRs/hop count, secure-by-default otherwise).
  • CORS & security headers: new Reverse proxy & forwarded headers section documenting TrustedProxyOptions (KnownProxies / KnownNetworks / ForwardLimit) and the trust boundary, plus UseForwardedHeaders added to the pipeline-order slice (it now runs first, right after the exception handler).
  • Production checklist: item 6 (HTTPS everywhere) now notes that honoring X-Forwarded-Proto requires TrustedProxyOptions, with the config snippet and a link to the new section.

No new checklist item added — the checklist stays a ten-item gate; the proxy-trust guidance lives inside the existing HTTPS item.

Depends on / pairs with starter-kit #1334.

Match starter-kit PR #1334 (honor X-Forwarded-* behind a reverse proxy,
trust bound to TrustedProxyOptions):

- changelog: real-client-IP fix + TrustedProxyOptions, action-required note.
- cors-and-headers: new "Reverse proxy & forwarded headers" section, and
  UseForwardedHeaders added to the pipeline-order slice.
- production-checklist: item 6 (HTTPS) now notes X-Forwarded-Proto requires
  TrustedProxyOptions, with the config snippet.
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