Skip to content

fix(xds): preserve original host metadata for DFP rewrites#8610

Open
officialasishkumar wants to merge 1 commit intoenvoyproxy:mainfrom
officialasishkumar:fix/dfp-original-host-header
Open

fix(xds): preserve original host metadata for DFP rewrites#8610
officialasishkumar wants to merge 1 commit intoenvoyproxy:mainfrom
officialasishkumar:fix/dfp-original-host-header

Conversation

@officialasishkumar
Copy link
Copy Markdown

What type of PR is this?
fix(xds): preserve original host metadata for DFP rewrites

What this PR does / why we need it:
Dynamic forward proxy host rewrites were clearing the route-level host rewrite metadata after the per-route DFP config was added. That left Envoy without the router-level information it uses to emit X-ENVOY-ORIGINAL-HOST, even though the rewritten host still drove DNS resolution. This change keeps the route host rewrite metadata in place, adds a focused regression test for both header and literal rewrites, and updates the translator golden output accordingly.

Which issue(s) this PR fixes:
Fixes #8353

Release Notes: Yes

@officialasishkumar officialasishkumar requested a review from a team as a code owner March 28, 2026 15:58
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 28, 2026

Deploy Preview for cerulean-figolla-1f9435 canceled.

Name Link
🔨 Latest commit f6a5cbc
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69c920f91edbb100080f9a6f

@zirain
Copy link
Copy Markdown
Member

zirain commented Mar 29, 2026

are you sure that this fixed the issue?

Keep the route-level host rewrite metadata in place for dynamic forward proxy routes so Envoy can still emit the original host headers, while DFP per-route config continues to drive DNS resolution.

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
@officialasishkumar officialasishkumar force-pushed the fix/dfp-original-host-header branch from 46cc646 to f6a5cbc Compare March 29, 2026 12:54
@officialasishkumar
Copy link
Copy Markdown
Author

@zirain yes

@zirain
Copy link
Copy Markdown
Member

zirain commented Mar 29, 2026

@zirain yes

I tested it locally, and it didn't find it worked(maybe i missed something).
So I would like to see an worked e2e.

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.

Missing X-ENVOY-ORIGINAL-HOST even with enableEnvoyHeaders: True

2 participants