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

[repository] [mongodb] Add mongodb repository TLS/SSL CA trusted compatibility #1460

Closed
fmercier-almerys opened this Issue Aug 31, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@fmercier-almerys

fmercier-almerys commented Aug 31, 2018

Currently the mongodb supports only SSL mode self signed certificate that encrypt communication between gravitee and the replicaSet.
To follow production recommandation gravitee needs to support CA client

http://mongodb.github.io/mongo-java-driver/3.4/driver/tutorials/ssl/

  • javax.net.ssl.keyStore The path to a key store containing the client’s TLS/SSL certificates
  • javax.net.ssl.keyStorePassword The password to access this key store

Include new mongodb options into https://github.com/gravitee-io/gravitee-repository-mongodb/blob/b66db093dc07e705587b5b1b2c95273b9d9706b9/src/main/java/io/gravitee/repository/mongodb/common/MongoFactory.java

SSLContext seems to be a good candidate to manage keystore

CA client might be added into the keystore before and we can just import the keystore into SSLContext

@brasseld brasseld changed the title from Add mongodb repository TLS/SSL CA trusted compatibility to [repository] [mongodb] Add mongodb repository TLS/SSL CA trusted compatibility Sep 3, 2018

@fmercier-almerys

This comment has been minimized.

@brasseld

This comment has been minimized.

Member

brasseld commented Oct 2, 2018

@brasseld brasseld closed this Oct 2, 2018

@brasseld brasseld self-assigned this Oct 2, 2018

@brasseld brasseld added this to the 1.20.0 milestone Oct 2, 2018

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