Skip to content
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

Merged
merged 2 commits into from
Jun 23, 2013

Conversation

alistair
Copy link
Contributor

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.

@buildhive
Copy link

Richard Louapre » elasticsearch-river-mongodb #31 UNSTABLE
Looks like there's a problem with this pull request
(what's this?)

@alistair
Copy link
Contributor Author

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.

@richardwilly98
Copy link
Owner

Hi,

I will take a look tonight or tomorrow.

Thanks,
Richard.

Sent via BlackBerry by AT&T

-----Original Message-----
From: Alistair notifications@github.com
Date: Sun, 23 Jun 2013 13:02:26
To: richardwilly98/elasticsearch-river-mongodbelasticsearch-river-mongodb@noreply.github.com
Reply-To: richardwilly98/elasticsearch-river-mongodb reply@reply.github.com
Subject: Re: [elasticsearch-river-mongodb] SSL support for connecting to
mongodb instances (#94)

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:
#94 (comment)

richardwilly98 added a commit that referenced this pull request Jun 23, 2013
SSL support for connecting to mongodb instances
@richardwilly98 richardwilly98 merged commit 507dce7 into richardwilly98:master Jun 23, 2013
@richardwilly98
Copy link
Owner

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,
Richard.

@richardwilly98
Copy link
Owner

This feature is available in release 1.6.11.

Thanks,
Richard.

@gl00ten
Copy link

gl00ten commented Oct 22, 2014

So guys, how does one actually select/use a certificate?

@richardwilly98
Copy link
Owner

That should help [1]

[1] - http://vafer.org/blog/20061010073725/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants