Skip to content

GPMONGODB-353: Add SSL support to MongoDB plugin #443

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

Closed
graemerocher opened this issue Feb 20, 2014 · 3 comments
Closed

GPMONGODB-353: Add SSL support to MongoDB plugin #443

graemerocher opened this issue Feb 20, 2014 · 3 comments

Comments

@graemerocher
Copy link
Contributor

Original Reporter: msmolyak
Environment: Not Specified
Version: Not Specified
Migrated From: http://jira.grails.org/browse/GPMONGODB-353

Currently there is no way to configure MongoDB Grails plugin to connect to MongoDB with SSL enabled. MongoDB Java driver supports such connection:

     MongoOptions o = new MongoOptions();
     o.socketFactory = SSLSocketFactory.getDefault();
     Mongo m = new Mongo( "localhost" , o );

The latest version of SpringData project supports setting "ssl" option through MongoOptionsFactoryBean (http://docs.spring.io/spring-data/data-mongo/docs/1.4.0.RC1/api/org/springframework/data/mongodb/core/MongoOptionsFactoryBean.html).

With this version of MongoOptionsFactoryBean, the user of MongoDB plugin should be able to configure SSL using

mongo {
host =
port =
...
options {
ssl = true
}
}

@graemerocher
Copy link
Contributor Author

tasneem93 said:
Graeme, is there any update on this JIRA? We are using this plugin and pretty close to go to production where it has to SSL connect to MongoDB. Please let us know. Thanks in advance.

@graemerocher
Copy link
Contributor Author

graemerocher said:
fixed by 2af58b1

@graemerocher
Copy link
Contributor Author

tasneem93 said:
This is great news. I will try out the 1.4.0.GA and let you know. Again thank you Graeme.

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

No branches or pull requests

1 participant