Skip to content

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

@graemerocher

Description

@graemerocher

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
}
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions