Skip to content

Conversation

ramaraochavali
Copy link
Contributor

The TLS SNI check was in handled in correctly in PR #25070 for bootstrap clusters. This PR fixes it.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[X ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Pull Request Attributes

Please check any characteristics that apply to this pull request.

[ ] Does not have any changes that may affect Istio users.

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
@ramaraochavali ramaraochavali requested a review from a team as a code owner August 20, 2020 07:20
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Aug 20, 2020
@istio-testing istio-testing added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Aug 20, 2020
@ramaraochavali ramaraochavali added release-notes-none Indicates a PR that does not require release notes. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 20, 2020
@ramaraochavali
Copy link
Contributor Author

@nikolay-pshenichny

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
@istio-testing istio-testing added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Aug 20, 2020
@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new pull request created: #26685

@ramaraochavali ramaraochavali deleted the fix/tracing_tls branch August 20, 2020 08:17
@@ -138,7 +138,7 @@ func tlsContextConvert(tls *networkingAPI.ClientTLSSettings, sniName string, met
// No TLS.
return nil
}
if len(sniName) > 0 {
if len(tls.Sni) == 0 && tls.Mode == networkingAPI.ClientTLSSettings_ISTIO_MUTUAL {
Copy link
Member

Choose a reason for hiding this comment

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

why do we not set SNI for mutual or simple?

Copy link
Contributor Author

@ramaraochavali ramaraochavali Aug 21, 2020

Choose a reason for hiding this comment

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

for ISTIO_MUTUAL we default it to "tracer" , "envoy_metrics_service" if tls.Sni is not specified - that was the existing behaviour.
For Simple and Mutual we set it only if it is specified in TLS settings (because we do not know what to default to).

Are you suggesting we should not default for ISTIO_MUTUAL as well and only set if user sets it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. release-notes-none Indicates a PR that does not require release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants