-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Make default elasticsearch URL use the same protocol as Kibana #1465
Comments
My only concern is that this would require the user to have ensured they have configured ElasticSearch to use the same protocol that Kibana is using while using http:// works with ElasticSearch's default configuration settings. I could be wrong about that, but my belief is that Kibana should be designed / coded to work with ElasticSearch's default configuration. |
I am sure that most people just access Kibana over HTTP so they won't be affected by that change. If someone removes HTTP access to Kibana and uses HTTPS instead, they probably doing it for a reason. Which of course can be different for everyone but chances are they do not want someone capturing plaintext traffic and seeing all the internal logs of their system. Our case maybe a bit special, I admit. We just put Kibana/ElasticSearch on an Amazon node with a load balancer in front of it. The load balancer is told to do HTTPS termination - so it accepts HTTPS on ports 9292 and 9200 and just forwards these ports to the real server but as plain HTTP. (Kind of typical use of Amazon ELB). So in the end both Kibana and ElasticSearch installed with their "out of the box" configuration - default ports etc. The only problem is that ElasticSearch URL sent back to the browser is taken from config.js and is "http://" so even though the page is loaded from https://kibana:9292, it tries to get ElasticSearch data from http://kibana:9200 which does not work as ELB expects SSL handshake on port 9200. Also, to replace the URL we patched config.js right in the logstash.jar. Which is ugly but this, I guess, is only because of our lack of experience with Kibana as we could not find the official way of changing that elasticsearch URL :) |
Indeed, I don't see a reason to change the default here, we allow you to configure it as needed. |
Please change
to
It should not affect anyone using Kibana over HTTP but will allow it work out of the box with HTTPS. If people moving Kibana to HTTPS there is really no sense to keep elasticsearch on plain HTTP anyway.
The text was updated successfully, but these errors were encountered: