-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: match SNI when using TLS listeners with hostname (#2942)
* test: add TLS terminate with hostname Signed-off-by: Mike Beaumont <mjboamail@gmail.com> * feat: support listener hostname with TLS termination Signed-off-by: Mike Beaumont <mjboamail@gmail.com> * test: adjust expected output Signed-off-by: Mike Beaumont <mjboamail@gmail.com> * test: adjust new case outputs Signed-off-by: Mike Beaumont <mjboamail@gmail.com> * refactor: change function arg name from review Signed-off-by: Mike Beaumont <mjboamail@gmail.com> * refactor: remove inspector config from HTTP IR Signed-off-by: Mike Beaumont <mjboamail@gmail.com> * chore: fix yaml lint errors Signed-off-by: Mike Beaumont <mjboamail@gmail.com> --------- Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
- Loading branch information
1 parent
33443f8
commit c30d09f
Showing
25 changed files
with
251 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,6 +222,6 @@ xdsIR: | |
weight: 1 | ||
name: tlsroute/default/tlsroute-1 | ||
tls: | ||
passthrough: | ||
inspector: | ||
snis: | ||
- foo.bar.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,6 +109,6 @@ xdsIR: | |
weight: 1 | ||
name: tlsroute/default/tlsroute-1 | ||
tls: | ||
passthrough: | ||
inspector: | ||
snis: | ||
- foo.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,6 @@ xdsIR: | |
weight: 1 | ||
name: tlsroute/default/tlsroute-1 | ||
tls: | ||
passthrough: | ||
inspector: | ||
snis: | ||
- foo.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,6 @@ xdsIR: | |
weight: 1 | ||
name: tlsroute/default/tlsroute-1 | ||
tls: | ||
passthrough: | ||
inspector: | ||
snis: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,6 @@ xdsIR: | |
weight: 1 | ||
name: tlsroute/default/tlsroute-1 | ||
tls: | ||
passthrough: | ||
inspector: | ||
snis: | ||
- foo.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ tcp: | |
port: 10082 | ||
tcpKeepalive: {} | ||
tls: | ||
passthrough: | ||
inspector: | ||
snis: | ||
- bar.com | ||
destination: | ||
|
Oops, something went wrong.