Skip to content

Conversation

@sunjayBhatia
Copy link
Member

This ensures we don't have to have routes match on a wildcard suffix.
Makes internal Contour logic simpler as we don't have to think about
a possible port in route matches any longer and would make adding
support for wildcard domains a little easier.

Downsides:

  • More Lua
  • Strips port from header that some application may care about?

Could also apply this change only for wildcard routes but it seemed
good to be consistent.

This ensures we don't have to have routes match on a wildcard suffix.
Makes internal Contour logic simpler as we don't have to think about
a possible port in route matches any longer and would make adding
support for wildcard domains a little easier.

Downsides:
- More Lua
- Strips port from header that some application may care about?

Could also apply this change *only* for wildcard routes but it seemed
good to be consistent.

Signed-off-by: Sunjay Bhatia <[email protected]>
@sunjayBhatia sunjayBhatia requested a review from a team as a code owner March 1, 2021 17:29
@sunjayBhatia sunjayBhatia requested review from skriss and youngnick and removed request for a team March 1, 2021 17:29
@sunjayBhatia
Copy link
Member Author

Context around this PR is here: #3381 (comment)

@codecov
Copy link

codecov bot commented Mar 1, 2021

Codecov Report

Merging #3422 (49a0f5b) into main (d978772) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3422      +/-   ##
==========================================
- Coverage   75.07%   75.04%   -0.04%     
==========================================
  Files          98       98              
  Lines        6584     6584              
==========================================
- Hits         4943     4941       -2     
- Misses       1532     1533       +1     
- Partials      109      110       +1     
Impacted Files Coverage Δ
internal/envoy/v3/route.go 98.91% <ø> (-0.02%) ⬇️
internal/envoy/v3/listener.go 98.15% <100.00%> (+0.01%) ⬆️
internal/dag/cache.go 91.15% <0.00%> (-0.59%) ⬇️

@sunjayBhatia sunjayBhatia marked this pull request as draft March 2, 2021 04:12
@sunjayBhatia
Copy link
Member Author

sunjayBhatia commented Mar 2, 2021

Realized this isn’t complete, the Lua filter is only added for TLS routes

@sunjayBhatia sunjayBhatia deleted the lua-filter-strip-host-port branch March 4, 2021 15:56
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