File tree Expand file tree Collapse file tree 7 files changed +34
-21
lines changed Expand file tree Collapse file tree 7 files changed +34
-21
lines changed Original file line number Diff line number Diff line change 1
1
.. versionadded :: 3.6
2
2
3
- The ``authenticationRestrictions `` document can contain the
4
- following fields:
3
+ The ``authenticationRestrictions `` document can contain *only * the
4
+ following fields. The server throws an error if the
5
+ ``authenticationRestrictions `` document contains an unrecognized field:
5
6
6
7
.. list-table ::
7
8
:header-rows: 1
@@ -30,13 +31,6 @@ following fields:
30
31
31
32
.. important ::
32
33
33
- These are the only fields recognized by the server in the
34
- ``authenticationRestrictions `` document. When creating a user,
35
- if the server does not recognize a field contained within the
36
- ``authenticationRestrictions `` document, it throws an error.
37
-
38
- .. warning ::
39
-
40
34
If a user inherits multiple roles with incompatible authentication
41
35
restrictions, that user becomes unusable.
42
36
Original file line number Diff line number Diff line change
1
+ .. warning ::
2
+
3
+ By default, |command | sends all specified data to the MongoDB
4
+ instance in cleartext. Use TLS transport encryption to protect
5
+ communications between clients and the server,
6
+ including the password sent by |command |. For
7
+ instructions on enabling TLS transport encryption, see
8
+ :doc: `/tutorial/configure-ssl `.
9
+
10
+ MongoDB does not store the password in cleartext. The password
11
+ is only vulnerable in transit between the client and the
12
+ server, and only if TLS transport encryption is not enabled.
Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ Behavior
58
58
Encryption
59
59
~~~~~~~~~~
60
60
61
- : dbcommand:`createUser` sends password to the MongoDB instance in
62
- cleartext. To encrypt the password in transit, use :doc:`TLS/SSL
63
- </tutorial/configure-ssl>`.
61
+ .. |command| replace:: : dbcommand:`createUser`
62
+
63
+ .. include:: /includes/fact-cleartext-passwords-tls.rst
64
64
65
65
External Credentials
66
66
~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ Authentication Restrictions
64
64
Behavior
65
65
--------
66
66
67
- : dbcommand:`updateUser` sends the password to the MongoDB instance in
68
- cleartext. To encrypt the password in transit, use :doc:`TLS/SSL
69
- </tutorial/configure-ssl>`.
67
+ .. |command| replace:: : dbcommand:`updateUser`
68
+
69
+ .. include:: /includes/fact-cleartext-passwords-tls.rst
70
70
71
71
Required Access
72
72
---------------
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ Required Access
26
26
27
27
.. include:: /includes/access-change-password.rst
28
28
29
+ Behavior
30
+ --------
31
+
32
+ .. |command| replace:: :method:`db.changeUserPassword()`
33
+
34
+ .. include:: /includes/fact-cleartext-passwords-tls.rst
35
+
29
36
Example
30
37
-------
31
38
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ Behavior
68
68
Encryption
69
69
~~~~~~~~~~
70
70
71
- : method:`db.createUser()` sends password to the MongoDB instance
72
- *without* encryption. To encrypt the password during transmission,
73
- use :doc:`TLS/SSL </tutorial/configure-ssl>`.
71
+ .. |command| replace:: : method:`db.createUser()`
72
+
73
+ .. include:: /includes/fact-cleartext-passwords-tls.rst
74
74
75
75
External Credentials
76
76
~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ command.
79
79
Behavior
80
80
--------
81
81
82
- : method:`db.updateUser()` sends password to the MongoDB instance
83
- *without* encryption. To encrypt the password during transmission,
84
- use :doc:`TLS/SSL </tutorial/configure-ssl>`.
82
+ .. |command| replace:: : method:`db.updateUser()`
83
+
84
+ .. include:: /includes/fact-cleartext-passwords-tls.rst
85
85
86
86
Required Access
87
87
---------------
You can’t perform that action at this time.
0 commit comments