Closed leviwilson closed 8 years ago
Note that this also fixes #18.
I've added searchbox-io/Jest#328 to touch on not being able to have operations using the DNS name (rather than IP) which forces us to turn of SSL verification.
Merged manually, thanks a lot.
Description
With the current version of the plugin it does not support SSL. If you have an SSL endpoint it is able to discover the nodes, but when it tries to do anything with them it fails because it is using the incorrect schema (defaults to
http://
).This PR adds the ability to check the schema so it can set the
defaultSchemeForDiscoveredNodes
to whatever is passed into thehostName
in the configuration.Additionally, there is a synchronous / asynchronous HTTPS handler that you have to add for this to work as well (as noted in the Jest README. I would like to not have to turn off the validation of the SSL certificate, however I do not believe that the DNS name is ever used from the
http_address
and it only uses the IP address as I have noted here.