fluent-plugin-aws-elasticsearch-service
fluent-plugin-aws-elasticsearch-service copied to clipboard
Ignore certificate host mismatch?
Hello. Does the plugin have the capability to ignore a host mismatch in the X.500 cert?
I have different elasticsearch domains for dev and prod. I'd like to have one fluentd conf (actually a docker image) that works in both dev and prod. I'd like to set the endpoint url to a domain name that we can vary in each environment, for example in different DNS zones, or pass in as an --add-host or Environment property to the container.
I tried using a domain (shown below as es.mydomain.com) in the endpoint url, but I'm seeing the following error:
2017-11-06 21:22:27 +0000 [warn]: #0 failed to flush the buffer. retry_time=4 next_retry_seconds=2017-11-06 21:22:27 +0000 chunk="55d570c043428d9eb6051e904e4ab690" error_class=Faraday::SSLError error="hostname \"es.mydomain.com\" does not match the server certificate (OpenSSL::SSL::SSLError)
Any suggestions to ignore the mismatch? Or are there alternate patterns for image portability?
Thanks! Mark
+1
Could you add ssl_verify false
, which is originated from original ES plguin, into your configuration?
Or, I'm sending the PR to support verify_hostname
option: https://github.com/lostisland/faraday/pull/1172
But the PR is not merged yet.