-
Notifications
You must be signed in to change notification settings - Fork 215
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
SSL support for connecting to mongodb instances #94
SSL support for connecting to mongodb instances #94
Conversation
Richard Louapre » elasticsearch-river-mongodb #31 UNSTABLE |
Re the unit test failing. This seems to be an issue which was present before this pull request. I can't reproduce locally as all tests pass. |
Hi, I will take a look tonight or tomorrow. Thanks, Sent via BlackBerry by AT&T -----Original Message----- Re the unit test failing. This seems to be an issue which was present before this pull request. I can't reproduce locally as all tests pass. Reply to this email directly or view it on GitHub: |
SSL support for connecting to mongodb instances
Hi, Thanks for the PR. The build in buildhive does not seem to be very stable (mainly because MongoDB documents stored in ES are not immediately available - even if I make sure to force index refresh after each insert). I have just made one small change the attribute name will be ssl_verify_certificate and not sslverifycertificate (to keep the same naming convention). Regarding unit test with SSL I don't believe it will be easy to implement in the near future (as it requires MongoDB Enterprise or rebuild the open source version). Thanks, |
This feature is available in release 1.6.11. Thanks, |
So guys, how does one actually select/use a certificate? |
That should help [1] |
This adds support for connecting to mongodb instances which are configured to use ssl.
The implementation supports 2 new properties within the options collection, ssl and sslverifycertificate. The naming of these variables is consistent with mongodb drivers (specifically the C# one).
The ssl enables secure sockets while sslverifycertificate bypasses the certificate store when set to false. By default these are false and true respectively.
e.g of configuration.
"options": { "ssl" : true, "sslverifycertificate" : false },
I have attempted to investigate whether I could update the unit tests to support starting up the mongod instances in ssl mode, but the currently mongod binaries are not compiled to support this feature.