🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

fix: only trust x-forwarded-host from configured trusted proxies (#2… - #26296

Merged
f0ssel merged 1 commit into
release/2.34from
george/r234/backport-plat-259-only-trust-x-forwarded-host-from-trusted-proxies
Jun 11, 2026
Merged

fix: only trust x-forwarded-host from configured trusted proxies (#2…#26296
f0ssel merged 1 commit into
release/2.34from
george/r234/backport-plat-259-only-trust-x-forwarded-host-from-trusted-proxies

Conversation

@geokat

@geokat geokat commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Backport of #26204 (commit b5ef700) to release/2.34

Replace RequestHost with httpmw.EffectiveHost, which honors
X-Forwarded-Host only when the original socket peer is a configured
trusted origin, otherwise falling back to the received Host header.

Cherry-pick was clean; tests pass on this branch.

Note

Breaking change. See the original PR for the breaking-change details.

@github-actions

Copy link
Copy Markdown

Docs preview

📖 View docs preview for docs/admin/networking/wildcard-access-url.md

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

👋 Hey @geokat!

This PR is targeting the release/2.34 release branch, but its title does not start with fix: or fix(scope):.

Only bug fixes should be cherry-picked to release branches. If this is a bug fix, please update the PR title to match the conventional commit format:

fix: description of the bug fix
fix(scope): description of the bug fix

If this is not a bug fix, it likely should not target a release branch.

@linear-code

linear-code Bot commented Jun 11, 2026

Copy link
Copy Markdown

PLAT-259

@geokat geokat added the release/breaking This label is applied to PRs to detect breaking changes as part of the release process label Jun 11, 2026
@geokat geokat changed the title fix!: only trust x-forwarded-host from configured trusted proxies (#2… fix: only trust x-forwarded-host from configured trusted proxies (#2… Jun 11, 2026
@f0ssel
f0ssel marked this pull request as ready for review June 11, 2026 20:02
@f0ssel
f0ssel merged commit 3c46473 into release/2.34 Jun 11, 2026
93 of 95 checks passed
@f0ssel
f0ssel deleted the george/r234/backport-plat-259-only-trust-x-forwarded-host-from-trusted-proxies branch June 11, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/breaking This label is applied to PRs to detect breaking changes as part of the release process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants