Skip to content
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

Nodes sniffing not working with HTTPS #72364

Open
broferek opened this issue Apr 28, 2021 · 3 comments
Open

Nodes sniffing not working with HTTPS #72364

broferek opened this issue Apr 28, 2021 · 3 comments
Labels
:Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch Team:Data Management Meta label for data/management team

Comments

@broferek
Copy link

Elastic version : 7.2.0

We wanted to migrate our cluster from HTTP to HTTPS with nodes sniffing activated on our client.

The Elastic node is well started with HTTPS and this is the info that _nodes/http returns :

"http": {
"bound_address": [
"<ip>:9200"
],
"publish_address": "<cname>/<ip>:9200",
}

When we launch our client using nodes sniffer, we have the following error message :

<cname> doesn't make sense! publishedHost should be in boundHosts

We don't understand how it can work as the CNAME part is never present in bound_address field whatever configuration we have attempted in network_host, bind_host ...
At the same time, the CNAME part is mandatory to work with an SSL certificate containing only FQDNs.

@andreidan andreidan added the :Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch label Apr 29, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Apr 29, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@jakelandis
Copy link
Contributor

@broferek - does this blog post help any https://www.elastic.co/blog/elasticsearch-sniffing-best-practices-what-when-why-how , or do you still believe there is a bug here ?

@broferek
Copy link
Author

broferek commented May 4, 2021

@jakelandis thanks for your reply. I read through the post but unfortunately it didn't give me a clue of what could be done to fix the problem. Therefore I think there is indeed still a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch Team:Data Management Meta label for data/management team
Projects
None yet
Development

No branches or pull requests

4 participants