-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add connection requested server name attribute to TCP read filter #1843
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
Merged
hklai
merged 18 commits into
istio:release-1.0
from
vadimeisenbergibm:add_connection_requested_server_name_attribute
Jul 10, 2018
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
93e6641
add AttributeName::kConnectionRequestedServerName
vadimeisenbergibm 777b38f
fix format
vadimeisenbergibm cb543c1
add GetRequestedServerName() to TCP CheckData
vadimeisenbergibm 2ead919
add building attribute ConnectionRequestedServerName
vadimeisenbergibm b45b25d
test building attribute ConnectionRequestedServerName
vadimeisenbergibm 83dd6a0
add GetRequestedServerName() to tcp mixer filter
vadimeisenbergibm 0091e10
fix compilation errors
vadimeisenbergibm 79fa89f
use explicit conversion from absl::string_view to std::string
vadimeisenbergibm 336a0f0
check that the requested server name is not emtpy in attributes builder
vadimeisenbergibm 1389681
fixed a compilation error
vadimeisenbergibm a129dbf
add GetRequestedServerName to http mixer filters (check_data)
vadimeisenbergibm b1967a2
add GetRequestedServerName to http MockCheckData
vadimeisenbergibm b874c59
specify the class of a method
vadimeisenbergibm 43e4bea
add setting connection.requested_server_name to the http attributes
vadimeisenbergibm 715ce48
qualify Return by testing::
vadimeisenbergibm c3ab69c
use connection_ as a pointer
vadimeisenbergibm 76fe1d8
add explicit conversion from absl::string_view to std::string
vadimeisenbergibm 3da5327
add missing mock call
vadimeisenbergibm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -53,6 +53,7 @@ class Filter : public Network::Filter, | |
| bool GetSourceIpPort(std::string* str_ip, int* port) const override; | ||
| bool GetSourceUser(std::string* user) const override; | ||
| bool IsMutualTLS() const override; | ||
| std::string GetRequestedServerName() const override; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sure to apply the same changes to http filter in |
||
|
|
||
| // ReportData virtual functions. | ||
| bool GetDestinationIpPort(std::string* str_ip, int* port) const override; | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there are cases data is not available, the coding style is to return a bool. It should be:
// return true if data is valid.
bool GetRequestedServerName(std::string* name);