Skip to content

Commit 569fdbf

Browse files
(DOCSP-5127): Connection page refactor (#137)
* (DOCSP-5127): Connection page refactor * In-progress review updates * Updates per Gilberto * Updates per Gilberto's review
1 parent d6c2383 commit 569fdbf

21 files changed

+349
-241
lines changed

source/connect.txt

Lines changed: 15 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -11,161 +11,35 @@ Connect to MongoDB
1111
:backlinks: none
1212
:depth: 1
1313
:class: singlecol
14+
15+
This page outlines how to use |compass-short| to connect to your
16+
MongoDB host.
1417

1518
Connect
1619
-------
1720

1821
.. include:: /includes/steps/starting-compass.rst
1922

20-
.. _favorite-connections:
21-
22-
Favorite Connections
23-
--------------------
24-
25-
|compass| allows you to save MongoDB connection configurations to
26-
easily reconnect to the same MongoDB deployment using the same
27-
specifications. To load a favorite connection into the
28-
:guilabel:`Connect` form, click the desired connection in the
29-
:guilabel:`Favorites` list to the left of the form.
30-
31-
Edit a Favorite Connection
32-
~~~~~~~~~~~~~~~~~~~~~~~~~~
33-
34-
To edit a saved favorite connection:
35-
36-
1. Load the connection into the :guilabel:`Connect` form.
37-
38-
#. Make the desired changes to the connection configuration
39-
within the form.
40-
41-
#. Click :guilabel:`Save Favorite` at the bottom of the form.
42-
43-
.. note::
44-
45-
You can use this process to edit the name of a favorite
46-
connection.
47-
48-
Delete a Favorite Connection
49-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50-
51-
To delete a saved favorite connection:
52-
53-
1. Load the connection into the :guilabel:`Connect` form.
54-
55-
#. Click :guilabel:`Delete Favorite` at the bottom of the form.
56-
57-
|compass| removes the connection from the :guilabel:`Favorites` list
58-
and returns to the :guilabel:`New Connection` view.
59-
60-
.. _required-access:
61-
62-
Required Access
63-
---------------
64-
65-
With authentication/authorization enforced on the connected MongoDB
66-
instance, the user requires appropriate privileges to access various
67-
features. The following table lists the privileges required to access
68-
the features as well as the built-in roles that can provide these
69-
privileges:
70-
71-
.. note::
72-
The built-in roles may provide more access than required. You can
73-
also create a :ref:`user-defined-roles` to grant specific privileges.
74-
75-
.. list-table::
76-
:header-rows: 1
77-
:widths: 25 30 25 20
78-
79-
* - View
80-
- Feature/Action
81-
- Privilege(s)
82-
- MongoDB Built-In Role
83-
84-
* - :guilabel:`Home/MongoDB Instance`
85-
- :doc:`/performance`
86-
- | :authaction:`top`
87-
| :authaction:`inprog`
88-
| :authaction:`serverStatus`
89-
- :authrole:`clusterMonitor`
90-
91-
* - :guilabel:`Database`
92-
- :ref:`create-database`
93-
- :authaction:`createCollection`
94-
- :authrole:`readWrite`
95-
96-
* - :guilabel:`Database`
97-
- :ref:`drop-database`
98-
- :authaction:`dropDatabase`
99-
- :authrole:`dbAdmin`
100-
101-
* - :guilabel:`Collection`
102-
- :ref:`create-collection`
103-
- :authaction:`createCollection`
104-
- :authrole:`readWrite`
105-
106-
* - :guilabel:`Collection`
107-
- :ref:`drop-collection`
108-
- :authaction:`dropCollection`
109-
- :authrole:`readWrite`
110-
111-
* - :guilabel:`Schema`
112-
- :doc:`Query/View <schema>`
113-
- :authaction:`find`
114-
- :authrole:`read`
115-
116-
* - :guilabel:`Documents`
117-
- :doc:`Query/View </documents>`
118-
- :authaction:`find`
119-
- :authrole:`read`
120-
121-
* - :guilabel:`Documents`
122-
- :doc:`Clone, insert, update, delete </documents>`
123-
- | :authaction:`find`
124-
| :authaction:`insert`
125-
| :authaction:`update`
126-
| :authaction:`remove`
127-
- :authrole:`readWrite`
128-
129-
* - :guilabel:`Indexes`
130-
- :doc:`View </indexes>`
131-
- :authaction:`listIndexes`
132-
- :authrole:`read`
133-
134-
* - :guilabel:`Indexes`
135-
- :doc:`Create, drop </indexes>`
136-
- | :authaction:`createIndex`
137-
| :authaction:`dropIndex`
138-
- :authrole:`readWrite`
139-
140-
* - :guilabel:`Explain Plan`
141-
- :doc:`Query/View </query-plan>`
142-
- :authaction:`find`
143-
- :authrole:`read`
144-
145-
* - :guilabel:`Validation`
146-
- :doc:`View rules </validation>`
147-
- :authaction:`listCollections`
148-
- :authrole:`read`
149-
150-
* - :guilabel:`Validation`
151-
- :ref:`Update rules <update-validation>`
152-
- :authaction:`collMod`
153-
- :authrole:`dbAdmin`
154-
15523
.. _disconnect:
15624

15725
Disconnect
15826
----------
15927

160-
To disconnect from a MongoDB instance in Compass:
161-
162-
- Click :guilabel:`Connect` in the menu bar, then
163-
- Select :guilabel:`Disconnect` from the dropdown menu
164-
165-
.. figure:: images/compass/disconnect.png
28+
.. include:: /includes/steps/disconnect-compass.rst
16629

16730
Disconnecting from a MongoDB instance closes the Compass connection to
16831
the active instance and returns the Compass view to the initial
16932
connection dialog.
17033

34+
.. figure:: images/compass/disconnect.png
35+
17136
.. |home| unicode:: U+2302
37+
38+
.. class:: hidden
39+
40+
.. toctree::
41+
:titlesonly:
42+
43+
/connect/required-access
44+
/connect/favorite-connections
45+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.. _favorite-connections:
2+
3+
====================
4+
Favorite Connections
5+
====================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: singlecol
14+
15+
|compass| allows you to save MongoDB connection configurations to
16+
easily reconnect to the same MongoDB deployment using the same
17+
specifications.
18+
19+
Save a Favorite Connection
20+
--------------------------
21+
22+
.. include:: /includes/steps/favorite-connection-save.rst
23+
24+
.. figure:: /images/compass/favorite-connection.png
25+
:figwidth: 500px
26+
:alt: Image showing Favorite Connection in Compass
27+
28+
Edit a Favorite Connection
29+
--------------------------
30+
31+
.. include:: /includes/steps/favorite-connection-edit.rst
32+
33+
Delete a Favorite Connection
34+
----------------------------
35+
36+
.. include:: /includes/steps/favorite-connection-delete.rst

source/connect/required-access.txt

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
.. _required-access:
2+
3+
===============
4+
Required Access
5+
===============
6+
7+
.. default-domain:: mongodb
8+
9+
|compass| users require specific privileges to access various
10+
|compass-short| features if authentication/authorization is enforced on
11+
the connected MongoDB instance.
12+
13+
The following table lists the privileges required to access the
14+
features as well as the built-in roles that can provide these
15+
privileges:
16+
17+
.. list-table::
18+
:header-rows: 1
19+
:widths: 25 30 25 20
20+
21+
* - Compass View
22+
- Capability
23+
- Privilege(s)
24+
- MongoDB Built-In Role
25+
26+
* - :guilabel:`Home/MongoDB Instance`
27+
- :doc:`View performance </performance>`
28+
- | :authaction:`top`
29+
| :authaction:`inprog`
30+
| :authaction:`serverStatus`
31+
- :authrole:`clusterMonitor`
32+
33+
* - :guilabel:`Database`
34+
- :ref:`create-database`
35+
- :authaction:`createCollection`
36+
- :authrole:`readWrite`
37+
38+
* - :guilabel:`Database`
39+
- :ref:`drop-database`
40+
- :authaction:`dropDatabase`
41+
- :authrole:`dbAdmin`
42+
43+
* - :guilabel:`Collection`
44+
- :ref:`create-collection`
45+
- :authaction:`createCollection`
46+
- :authrole:`readWrite`
47+
48+
* - :guilabel:`Collection`
49+
- :ref:`drop-collection`
50+
- :authaction:`dropCollection`
51+
- :authrole:`readWrite`
52+
53+
* - :guilabel:`Schema`
54+
- :doc:`Query/View a Schema </schema>`
55+
- :authaction:`find`
56+
- :authrole:`read`
57+
58+
* - :guilabel:`Documents`
59+
- :doc:`Query/View a Document </documents>`
60+
- :authaction:`find`
61+
- :authrole:`read`
62+
63+
* - :guilabel:`Documents`
64+
- :doc:`Clone, insert, update, delete a document </documents>`
65+
- | :authaction:`find`
66+
| :authaction:`insert`
67+
| :authaction:`update`
68+
| :authaction:`remove`
69+
- :authrole:`readWrite`
70+
71+
* - :guilabel:`Indexes`
72+
- :doc:`View an index </indexes>`
73+
- :authaction:`listIndexes`
74+
- :authrole:`read`
75+
76+
* - :guilabel:`Indexes`
77+
- :doc:`Create, drop an index </indexes>`
78+
- | :authaction:`createIndex`
79+
| :authaction:`dropIndex`
80+
- :authrole:`readWrite`
81+
82+
* - :guilabel:`Explain Plan`
83+
- :doc:`Query/View a query plan </query-plan>`
84+
- :authaction:`find`
85+
- :authrole:`read`
86+
87+
* - :guilabel:`Validation`
88+
- :doc:`View rules </validation>`
89+
- :authaction:`listCollections`
90+
- :authrole:`read`
91+
92+
* - :guilabel:`Validation`
93+
- :ref:`Update rules <update-validation>`
94+
- :authaction:`collMod`
95+
- :authrole:`dbAdmin`
96+
97+
.. note::
98+
99+
The built-in roles may provide more access than required. You can
100+
also create a :ref:`user-defined-roles` to grant specific privileges.
17.5 KB
Loading

source/images/compass/disconnect.png

-54.7 KB
Loading
Loading
14.1 KB
Loading

source/includes/fact-connect-auth-info.rst

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,14 @@ method from the tabs below for specific instructions:
3737
authentication mechanism, see :manual:`SCRAM
3838
</manual/core/security-scram/>`.
3939

40-
- id: x509
41-
name: X.509
42-
content: |
43-
*Not Available in Compass Community Edition*
44-
45-
Select :guilabel:`X.509` if the ``mongod`` instance uses
46-
:manual:`X.509 </core/security-x.509/>` as its authentication
47-
mechanism. If selected, you must provide the
48-
:guilabel:`Username` to authenticate the user.
49-
5040
- id: kerberos
5141
name: Kerberos
5242
content: |
53-
*Not Available in Compass Community Edition*
43+
44+
.. important::
45+
46+
:guilabel:`Kerberos` Authentication is not available in
47+
Compass Community Edition.
5448

5549
Select :guilabel:`Kerberos` if the ``mongod`` instance uses
5650
:manual:`Kerberos </core/kerberos/>` as its authentication
@@ -73,13 +67,29 @@ method from the tabs below for specific instructions:
7367
- id: ldap
7468
name: LDAP
7569
content: |
76-
*Not Available in Compass Community Edition*
70+
.. important::
71+
72+
:guilabel:`LDAP` Authentication is not available in
73+
Compass Community Edition.
7774

7875
Select :guilabel:`LDAP` if the ``mongod`` instance uses
7976
:manual:`LDAP </core/security-ldap-external/>` as its
8077
authentication mechanism. If selected, you must provide the
8178
:guilabel:`Username` and :guilabel:`Password` to authenticate
8279
the user.
8380

81+
- id: x509
82+
name: X.509
83+
content: |
84+
.. important::
85+
86+
:guilabel:`x.509` Authentication is not available in
87+
Compass Community Edition.
88+
89+
Select :guilabel:`X.509` if the ``mongod`` instance uses
90+
:manual:`X.509 </core/security-x.509/>` as its authentication
91+
mechanism. If selected, you must provide the
92+
:guilabel:`Username` to authenticate the user.
93+
8494
For MongoDB permissions required to access |compass-short|,
8595
see :ref:`required-access`.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Hostname of the machine where the ``mongod`` instance is running. If
2+
you are running your ``mongod`` locally, this value is ``localhost``.
3+
4+
If you are not sure of your hostname, contact your Database
5+
Administrator for information.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Port on which ``mongod`` is running. Not required if you
2+
are using an :guilabel:`SRV Record` to connect to
3+
your MongoDB instance.
4+
5+
By default, a standalone ``mongod`` operates on port
6+
``27017``. If you are connecting to a replica set, your port
7+
may also be ``27018`` or ``27019``. For more information on
8+
the default ports MongoDB operates on, see
9+
:manual:`Default MongoDB Port </reference/default-mongodb-port/>`.
10+
11+
If you are not sure of the port where your ``mongod`` operates,
12+
contact your Database Administrator for information.

0 commit comments

Comments
 (0)