Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Strip port from host if user specifies a Hostname #1389

Merged
merged 3 commits into from May 4, 2023

Conversation

arkodg
Copy link
Contributor

@arkodg arkodg commented May 3, 2023

  • This allows us to ignore the port section from the Host header when matching incoming requests based
    on the Host/Authority header and the Hostname specified by the user

Fixes: #1368

@arkodg arkodg requested a review from a team as a code owner May 3, 2023 01:33
@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #1389 (915fbb1) into main (19eed9d) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

❗ Current head 915fbb1 differs from pull request most recent head afe2d9a. Consider uploading reports for the commit afe2d9a to get more accurate results

@@            Coverage Diff             @@
##             main    #1389      +/-   ##
==========================================
- Coverage   62.45%   62.38%   -0.07%     
==========================================
  Files          78       78              
  Lines       10959    10973      +14     
==========================================
+ Hits         6844     6846       +2     
- Misses       3666     3675       +9     
- Partials      449      452       +3     
Impacted Files Coverage Δ
internal/ir/xds.go 72.18% <ø> (ø)
internal/gatewayapi/route.go 87.78% <100.00%> (+0.13%) ⬆️
internal/xds/translator/listener.go 82.11% <100.00%> (+0.26%) ⬆️

... and 4 files with indirect coverage changes

AliceProxy
AliceProxy previously approved these changes May 3, 2023
Copy link
Member

@AliceProxy AliceProxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@arkodg arkodg requested review from AliceProxy, a team, qicz, LanceEa and Xunzhuo and removed request for a team May 3, 2023 18:04
arkodg added 3 commits May 3, 2023 12:00
* This allows us to ignore the port section from the
Host header when matching incoming requests based
on the Host/Authority header and the Hostname specified
by the user

Fixes: envoyproxy#1368

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@zirain zirain merged commit b84b88a into envoyproxy:main May 4, 2023
15 checks passed
@arkodg arkodg deleted the strip-port-from-host branch May 4, 2023 02:29
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.

Dealing with host:port in Host header
3 participants