-
Notifications
You must be signed in to change notification settings - Fork 7
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
DOCSP-41508: TLS #37
DOCSP-41508: TLS #37
Conversation
✅ Deploy Preview for docs-kotlin-sync ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
source/connect/tls.txt
Outdated
.. warning:: | ||
|
||
Disabling hostname verification can make your configuration | ||
`insecure <https://tlseminar.github.io/docs/mostdangerous.pdf>`__. | ||
Disable hostname verification only for testing purposes or | ||
when there is no other alternative. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifying this option in a production environment makes your application insecure and potentially vulnerable to expired certificates and foreign processes posing as valid client instances.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from the GO copy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will modify the warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few more small things, but approved!
source/connect/tls.txt
Outdated
.. note:: Debugging TLS | ||
|
||
If you experience trouble setting up your TLS connection, you can | ||
use the ``-Djavax.net.debug=all`` system property to view helpful | ||
log statements. See `Debugging SSL/TLS connections | ||
<https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/ReadDebug.html>`__ | ||
in the Java language documentation for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S; i think this note is coming too early in the page. Could move to the end of the Enable TLS section?
source/connect/tls.txt
Outdated
To enable TLS on a connection by using a connection string, set the connection string | ||
parameter ``tls`` to ``true`` in the connection string passed to | ||
``MongoClient.create()``, as shown in the following code: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: reduce the number of times "connection string" is mentioned:
To enable TLS on a connection by using a connection string, set the connection string | |
parameter ``tls`` to ``true`` in the connection string passed to | |
``MongoClient.create()``, as shown in the following code: | |
To enable TLS on a connection by using a connection string, set the | |
``tls`` option to ``true`` in the options parameter and pass the string to | |
``MongoClient.create()``, as shown in the following code: |
source/connect/tls.txt
Outdated
<https://letsencrypt.org/>`__. As a result, you can connect to a | ||
:atlas:`MongoDB Atlas </>` instance, or any other | ||
server whose certificate is signed by an authority in the JRE's default | ||
certificate store, with TLS enabled without configuring the trust store. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<https://letsencrypt.org/>`__. As a result, you can connect to a | |
:atlas:`MongoDB Atlas </>` instance, or any other | |
server whose certificate is signed by an authority in the JRE's default | |
certificate store, with TLS enabled without configuring the trust store. | |
<https://letsencrypt.org/>`__. As a result, you can enable TLS when connecting to a | |
:atlas:`MongoDB Atlas </>` instance, or any other | |
server whose certificate is signed by an authority in the JRE's default | |
certificate store, without configuring the trust store. |
|
||
An application that initiates TLS/SSL requests needs to set two JVM system | ||
properties to ensure that the client presents a TLS/SSL certificate to | ||
the MongoDB server: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
source/connect/tls.txt
Outdated
The JVM key store saves certificates that securely identify your {+language+} | ||
application to other applications. By using these certificates, other | ||
applications can prove that the connection to your application is | ||
genuine and secure from tampering by third parties. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: I think this is a duplicate paragraph from the prev section. Consider removing
source/connect/tls.txt
Outdated
Find an example showing how to configure a client to use an ``SSLContext`` | ||
instance in the :ref:`Customize TLS Configuration with an SSLContext section of this guide <kotlin-sync-tls-custom-sslContext>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Find an example showing how to configure a client to use an ``SSLContext`` | |
instance in the :ref:`Customize TLS Configuration with an SSLContext section of this guide <kotlin-sync-tls-custom-sslContext>`. | |
Find an example showing how to configure a client to use an ``SSLContext`` | |
instance in the :ref:`kotlin-sync-tls-custom-sslContext` section of this guide. |
source/connect/tls.txt
Outdated
To restrict your application to use only the TLS 1.2 protocol, set the | ||
``jdk.tls.client.protocols`` system property to "TLSv1.2". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To restrict your application to use only the TLS 1.2 protocol, set the | |
``jdk.tls.client.protocols`` system property to "TLSv1.2". | |
To restrict your application to use only the TLS 1.2 protocol, set the | |
``jdk.tls.client.protocols`` system property to ``"TLSv1.2"``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
For the most part, completely lifted from the Coroutine version.
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-41508
Staging - https://preview-mongodbmcmorisi.gatsbyjs.io/kotlin-sync/DOCSP-41508-TLS/connect/tls/
Self-Review Checklist