-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Remote _reindex fail for HTTPS remotes #27267
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
Comments
@nik9000 thoughts about this? Was this considered and does this make sense adding support for? |
You can workaround this by adding the CA to the default Java CA Keystore: IMPORTANT: Backup the
The default password to the cacerts keystore is |
@PhaedrusTheGreek but that will not help in a case where i need to send a client certificate |
This makes sense to me as a thing to add but I'm not super clear on exactly how. Is the ssl certificate a string containing the certificate? I think making it a path to something on the Elasticsearch server's file system would get messy really fast. |
Yes, why not a string containing a pem certificate (or a certificate chain) and the key. Its not different from having the plaintext password inside the request. |
This isn't on my list of things to do, no. I don't disagree with doing it though. |
I'm facing the same issue but I'm using official Docker container and adding the CA certificate in Java keystore is inconvenient since now I'm bind mounting the certificates (CA, server.key, server.crt) in PEM format at container run stage. |
@nik9000 I marked this as adopt me. Just in case someone wants to pick it up. |
For example, don't do it if you're using demo certificates! |
Fixed by |
Elasticsearch version (
bin/elasticsearch --version
):6.0.0-rc2
Plugins installed: []
JVM version (
java -version
):n/a
OS version (
uname -a
if on a Unix-like system):n/a
Description of the problem including expected versus actual behavior:
Remote _reindex fail for HTTPS remotes when remote does use custom CA or requires a client certificate. It seems there are several ssl.* properties missing. For me it should look like:
The root cause is that
TransportReindexAction.buildRestClient
does not support custom trusted CA's nor allow the ability to authenticate the initiating cluster via PKI because its not capable of sending client certificates. Its also not possible to adjust the certificate verification mode.If this is not going to be implemented there should be at least a note in the docs about this limitations here:
This also applies to ES 5.6 and earlier versions.
The text was updated successfully, but these errors were encountered: