Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ Procedure
read preference option.
- Any specified tag sets.

The following screenshot shows the :guilabel:`Advanced`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might consider moving these new examples under a dedicated "Example" heading after "Procedure". I feel like this might make them slightly easier to find, since they'd be clearly visible in the right-hand page ToC.

I was also thinking that another potential way to organize this content could be to create a new page under "Connect" called "Connection Examples" (or similar), and make these examples into distinct pages. As in the ToC would look something like:

| - Connect
| - | - Connection Examples
| - | - | - Connect to Atlas Deployment 
| - | - | - Connect to LDAP Deployment
| - | - | - etc

This would be more work content-wise, but I'm wondering if it's worth having these examples on dedicated pages so they can be more easily found by users searching for phrases like "compass connect to Atlas" or "compass connect with LDAP".

I think it could also be fine to keep the structure largely as we have it now with the examples added to the existing pages, and consider a broader restructure in a future effort. Curious what you think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added an "Example" section for each page because I think it makes sense to keep the examples on the same pages as the procedures.

tab configured with the read preference of :guilabel:`Secondary
Preferred`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might help to add a bit of context here explaining why a user might want to use "secondary preferred".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!


.. figure:: /images/authentication/secondary-preferred.png
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious for product / engineering's take here, but I'm wondering if in the examples we should be using the SRV Connection format. My understanding is that the SRV strings have the advantage of having TLS enabled by default, which might promote more secure practices. Not 100% sure about this though.

Copy link
Collaborator Author

@ltran-mdb2 ltran-mdb2 Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the examples to use the srv connection format - @betsybutton what do you think?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, +srv connection strings have TLS enabled by default, and we encourage users to use their connection strings when possible. Thanks for leaving this comment, Jeff!

:figwidth: 662px
:alt: Screenshot of Compass configured to connect with read preference of secondary preferred

.. seealso::

- :manual:`Read Preferrence </core/read-preference/#read-preference>`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,19 @@ Procedure

- (Optional) AWS Session Token

The following screenshot shows the :guilabel:`Authentication`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example here feels slightly out of place to me. Since it immediately follows the AWS content, it seems like it should be showing an AWS example. Moving the examples to their own section (or page) as mentioned in my other comment might help.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

tab configured for username and password authentication with
SCRAM-SHA-256.

.. figure:: /images/authentication/authentication-configuration.png
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of a nit, but I'm wondering if we should change the "Name" field in these example screenshots to be slightly more descriptive, rather than reusing the hostname and port. My concern is that users might think that their connection "Name" has to match the username and port, but it can be anything that helps identify the cluster.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

:figwidth: 662px
:alt: Screenshot of Compass configured to authenticate with username and password

.. step:: (Optional) For advanced connection configuration options, click the :ref:`Advanced <advanced-connection-tab>` tab.

.. step:: Click Connect.


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think also including an LDAP example on this page would be helpful.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

.. seealso::

To disconnect from your deployment, see :ref:`<disconnect-tab>`.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,20 @@ Procedure
* - mongodb
- :manual:`Standard Connection String Format </reference/connection-string/>`.
The standard format of the MongoDB connection URI is used to
connect to a MongoDB deployment by specifying its hosts directly.
connect to a MongoDB deployment by specifying its hosts
directly.

Use this option to connect to standalone, replica set,
or a sharded cluster

.. note::

If you use the Standard Connection String Format to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit]

I don't think "Standard Connection String Format" needs to be title case here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

connect to an `Atlas
<https://www.mongodb.com/cloud/atlas>`__ deployment,
you must turn on TLS/SSL in the
:guilabel:`TLS/SSL` tab of the :guilabel:`New
Connection` modal.

* - mongodb+srv
- :manual:`DNS Seed List Connection Format
Expand Down Expand Up @@ -86,6 +99,12 @@ Procedure
of a replica set, your write operations fail because it is not the
primary member.

The following screenshot shows the :guilabel:`General` tab
configured for an Atlas cluster.

.. figure:: /images/authentication/new-atlas-connection.png
:alt: Screenshot of Compass configured to connect to an example Atlas cluster

.. step:: (Optional) For advanced connection configuration options, click the :ref:`Advanced <advanced-connection-tab>` tab.

.. step:: Click Connect.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,15 @@ Procedure
.. warning::

Enabling ``tlsInsecure``, ``tlsAllowInvalidHostnames``, and
``tlsAllowInvalidCertificates`` may cause a security vulnerabilty.
``tlsAllowInvalidCertificates`` may cause a security
vulnerabilty.

The following screenshot shows the :guilabel:`TLS /
SSL` tab configured for a cluster with TLS/SSL enabled.

.. figure:: /images/authentication/tls-ssl-configuration.png
:figwidth: 662px
:alt: Screenshot of Compass configured to connect to an example cluster with TLS/SSL

.. step:: (Optional) For advanced connection configuration options, click the :ref:`Advanced <advanced-connection-tab>` tab.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading