Skip to content

Add requestedServerName() to Network::connection#3782

Merged
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
vadimeisenbergibm:add_requested_server_name_to_connection
Jul 4, 2018
Merged

Add requestedServerName() to Network::connection#3782
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
vadimeisenbergibm:add_requested_server_name_to_connection

Conversation

@vadimeisenbergibm
Copy link
Contributor

Description: Add requestedServerName() to Network::connection, to enable using the SNI value in the filters. The current use case is sending the SNI value to the Istio mixer for monitoring and policy enforcement. Suppose we have *.ibm.com value in sni_domains, and a request is sent to www.ibm.com, the requirement is to extract the value of www.ibm.com by a listener and to send it to Mixer.
Risk Level: Low
Testing: Added SslSocketTest.GetRequestedServerName test
Docs Changes: None
Release Notes: None
Is related to issue #3707, is a prerequisite for istio/istio#6810

Signed-off-by: Vadim Eisenberg <vadime@il.ibm.com>
Signed-off-by: Vadim Eisenberg <vadime@il.ibm.com>
Signed-off-by: Vadim Eisenberg <vadime@il.ibm.com>
PiotrSikora
PiotrSikora previously approved these changes Jul 3, 2018
Copy link
Contributor

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

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

LGTM, small nit if it's not too much of a nuisance.

cc @ggreenway

const std::string& expected_client_cert_uri,
const std::string& expected_alpn_protocol,
const std::string& expected_stats, unsigned expected_stats_value,
const std::string& expected_requested_server_name,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit, but could you move this before expected_alpn_protocol?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@PiotrSikora Sure, doing it now.

ggreenway
ggreenway previously approved these changes Jul 3, 2018
Copy link
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

LGTM

@ggreenway ggreenway self-assigned this Jul 3, 2018
@ggreenway
Copy link
Member

Waiting to merge until @vadimeisenbergibm pushes the commit mentioned in latest comment

Signed-off-by: Vadim Eisenberg <vadime@il.ibm.com>
@vadimeisenbergibm vadimeisenbergibm dismissed stale reviews from ggreenway and PiotrSikora via c37e852 July 4, 2018 01:44
@vadimeisenbergibm
Copy link
Contributor Author

@PiotrSikora @ggreenway Done, took me some time, sorry.

@mattklein123 mattklein123 merged commit 3b05bff into envoyproxy:master Jul 4, 2018
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.

4 participants