Skip to content

Conversation

@s1monw
Copy link
Contributor

@s1monw s1monw commented Oct 17, 2018

In remote cluster setup if we see a configured proxy we should set
the seed nodes host name as the server_name to trigger SNI based
routing even for seed nodes. Since remote cluster connections are
plain TCP connections we have to set the host manually since the other
side can't take it from the request URL like in the HTTP case.
This also adds some more informative logging to remote cluster connection.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Contributor

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

LGTM.

In remote cluster setup if we see a configured proxy we should set the seed nodes host name as the `server_name` to trigger SNI based routing even for seed nodes. Since remote cluster connections are plain TCP connections we have to set the host manually since the other side can't take it from the request URL like in the HTTP case. This also adds some more informative logging to remote cluster connection.
@s1monw s1monw force-pushed the pass_server_name_for_proxy branch from 7ce7210 to a070c7a Compare October 17, 2018 16:57
@s1monw s1monw merged commit b0e98cb into elastic:master Oct 17, 2018
@s1monw s1monw deleted the pass_server_name_for_proxy branch October 17, 2018 17:11
s1monw added a commit that referenced this pull request Oct 17, 2018
In remote cluster setup if we see a configured proxy we should set the seed nodes host name as the `server_name` to trigger SNI based routing even for seed nodes. Since remote cluster connections are plain TCP connections we have to set the host manually since the other side can't take it from the request URL like in the HTTP case. This also adds some more informative logging to remote cluster connection.
kcm pushed a commit that referenced this pull request Oct 30, 2018
In remote cluster setup if we see a configured proxy we should set the seed nodes host name as the `server_name` to trigger SNI based routing even for seed nodes. Since remote cluster connections are plain TCP connections we have to set the host manually since the other side can't take it from the request URL like in the HTTP case. This also adds some more informative logging to remote cluster connection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 participants