Skip to content

Commit ef0b9a1

Browse files
committed
DOCSP-11391: deprecate MongoDB-CR
1 parent a2a5662 commit ef0b9a1

21 files changed

+88
-55
lines changed

source/core/authentication-mechanisms.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Authentication Mechanisms
1414

1515
MongoDB supports the following authentication mechanisms:
1616

17-
- :doc:`/core/security-scram` (Default authentication mechanism)
17+
- :doc:`/core/security-scram` (*Default*)
1818

1919
- :doc:`MongoDB Challenge and Response (MONGODB-CR)
20-
</core/security-mongodb-cr>`
20+
</core/security-mongodb-cr>` (*Deprecated as of MongoDB 3.6*)
2121

2222
- :doc:`x.509 Certificate Authentication </core/security-x.509>`.
2323

@@ -36,8 +36,6 @@ As of MongoDB 3.0, :ref:`Salted Challenge Response Authentication
3636
Mechanism (SCRAM) <authentication-scram>` is the default
3737
authentication mechanism for MongoDB.
3838

39-
Previous versions used :doc:`MONGODB-CR </core/security-mongodb-cr>` as
40-
the default.
4139

4240
Specify Authentication Mechanism
4341
--------------------------------

source/core/authentication.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ existing authentication system.
3939

4040
MongoDB supports multiple authentication mechanisms:
4141

42-
- :ref:`authentication-scram` (Default)
42+
- :ref:`authentication-scram` (*Default*)
4343

4444
- :ref:`MongoDB Challenge and Response (MONGODB-CR)
45-
<authentication-mongodb-cr>`
45+
<authentication-mongodb-cr>` (*Deprecated as of MongoDB 3.6*)
4646

4747
- :ref:`x.509 Certificate Authentication <security-auth-x509>`.
4848

source/core/security-mongodb-cr.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ MONGODB-CR
66

77
.. default-domain:: mongodb
88

9-
.. contents:: On this page
10-
:local:
11-
:backlinks: none
12-
:depth: 1
13-
:class: singlecol
9+
.. admonition:: Deprecated
10+
:class: important
11+
12+
.. include:: /includes/fact-mongodb-cr-deprecated.rst
1413

1514
``MONGODB-CR`` is a challenge-response mechanism that authenticates users
1615
through passwords. ``MONGODB-CR`` verifies supplied user credentials against

source/core/security-scram.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ MongoDB-CR User Credentials and SCRAM
5454
Driver Support
5555
--------------
5656

57-
To use the SCRAM, you must upgrade your driver if your current driver
57+
To use SCRAM, you must upgrade your driver if your current driver
5858
version does not support ``SCRAM``.
5959

6060
The minimum driver versions that support ``SCRAM`` are:

source/includes/apiargs-method-db.auth-param.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ description: |
2323
Specifies the :ref:`authentication mechanism
2424
<mongo-shell-authentication-mechanisms>` used. Defaults to either:
2525
26-
- ``SCRAM-SHA-1`` on new 3.0 installations and on 3.0 databases that
26+
- ``SCRAM-SHA-1`` on new 3.0+ installations and on 3.0+ databases that
2727
have been :ref:`upgraded from 2.6 with authSchemaUpgrade
2828
<upgrade-scram-scenarios>`; or
2929
3030
- ``MONGODB-CR`` otherwise.
3131
32-
.. versionchanged:: 3.0
33-
In previous version, defaulted to ``MONGODB-CR``.
32+
.. include:: /includes/fact-mongodb-cr-deprecated.rst
3433
3534
For available mechanisms, see :ref:`authentication mechanisms
3635
<mongo-shell-authentication-mechanisms>`.

source/includes/apiargs-method-db.copyDatabase-param.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ type: string
5151
arg_name: param
5252
description: |
5353
The mechanism to authenticate the ``username`` and ``password`` on
54-
the ``fromhost``. Specify either :ref:`MONGODB-CR
55-
<authentication-mongodb-cr>` or :ref:`SCRAM-SHA-1
56-
<authentication-scram-sha-1>`.
54+
the ``fromhost``. Specify either:
55+
56+
- :ref:`SCRAM-SHA-1 <authentication-scram-sha-1>`, or
57+
58+
- :ref:`MONGODB-CR <authentication-mongodb-cr>` (Deprecated in MongoDB 3.6).
5759
5860
:method:`db.copyDatabase` defaults to :ref:`SCRAM-SHA-1
5961
<authentication-scram-sha-1>` if the wire protocol version

source/includes/extracts-fact-copydb-behavior.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ content: |
5858
ref: fact-copydb-method-authentication-mechanism-change
5959
content: |
6060
When authenticating to the ``fromhost`` instance,
61-
:method:`db.copyDatabase()` supports :ref:`MONGODB-CR
62-
<authentication-mongodb-cr>` and :ref:`SCRAM-SHA-1
63-
<authentication-scram-sha-1>` mechanisms to authenticate the
61+
:method:`db.copyDatabase()` supports :ref:`SCRAM-SHA-1
62+
<authentication-scram-sha-1>` and :ref:`MONGODB-CR
63+
<authentication-mongodb-cr>` mechanisms to authenticate the
6464
``fromhost`` user.
6565
---
6666
ref: fact-copydb-method-authentication-mechanism
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
As of MongoDB 3.6, ``MONGODB-CR`` authentication mechanisem is
2+
deprecated. If you have not upgraded your ``MONGODB-CR`` authentication
3+
schema to SCRAM, see :doc:`/release-notes/3.0-scram`.

source/includes/fact-mongodb-cr-users.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ upgraded the authentication schema, you can continue to use
77
features, you will continue to use ``MONGODB-CR``.
88

99
- For drivers that support MongoDB 3.0+ features (see
10-
:ref:`compatibility-driver-versions`), you must explicitly specify
11-
``MONGODB-CR`` as the authentication mechanism. Otherwise, the
12-
credentials are temporarily converted to use SCRAM during
13-
authentication; this temporary conversion does not affect how the
10+
:ref:`compatibility-driver-versions`), you can explicitly specify
11+
``MONGODB-CR`` as the authentication mechanism to use ``MONGODB-CR``.
12+
Otherwise, the credentials are temporarily converted to use SCRAM
13+
during authentication to provide improved protection from passive
14+
eavesdroppers; this temporary conversion does not affect how the
1415
credentials are stored.
1516

16-
To upgrade the authentication schema model to SCRAM, see
17-
:doc:`/release-notes/3.0-scram`.
17+
.. note::
1818

19-
.. warning::
19+
.. include:: /includes/fact-mongodb-cr-deprecated.rst
2020

21-
.. include:: /includes/fact-upgrade-scram-irreversible.rst

source/includes/options-conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ description: |
903903
904904
* - :ref:`MONGODB-CR <authentication-mongodb-cr>`
905905
906-
- MongoDB challenge/response authentication.
906+
- MongoDB challenge/response authentication. (*Deprecated in MongoDB 3.6*)
907907
908908
* - :ref:`MONGODB-X509 <security-auth-x509>`
909909

source/includes/options-shared.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ description: |
332332
333333
* - :ref:`MONGODB-CR <authentication-mongodb-cr>`
334334
335-
- MongoDB challenge/response authentication.
335+
- MongoDB challenge/response authentication. (*Deprecated in MongoDB 3.6*)
336336
337337
* - :ref:`MONGODB-X509 <security-auth-x509>`
338338

source/includes/steps-starting-compass.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ action:
1515
c. Authentication: The authentication mechanism to connect to the target
1616
host. Supported authentication mechanisms include:
1717
18-
- MongoDB-CR
18+
- MongoDB-CR (*Deprecated in MongoDB 3.6*)
1919
- SCRAM-SHA-1
2020
- Kerberos
2121
- LDAP

source/reference/connection-string.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ Authentication Options
573573
authenticate the connection. Possible values include:
574574

575575
- :ref:`SCRAM-SHA-1 <authentication-scram-sha-1>`
576-
- :ref:`MONGODB-CR <authentication-mongodb-cr>`
576+
- :ref:`MONGODB-CR <authentication-mongodb-cr>` (*Deprecated in MongoDB 3.6*)
577577
- :ref:`MONGODB-X509 <security-auth-x509>`
578578
- :ref:`GSSAPI <security-auth-kerberos>` (Kerberos)
579579
- :ref:`PLAIN <security-auth-ldap>` (LDAP SASL)

source/reference/method/db.copyDatabase.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Copy Database from a ``mongod`` Instances that Enforce Authentication
142142
MongoDB 3.0 supports passing the authentication mechanism to use for the ``fromhost``.
143143

144144
The following operation copies a database named ``reporting`` from a
145-
version 2.6 :binary:`~bin.mongod` instance that runs on ``example.net`` and enforces
145+
version 3.4 :binary:`~bin.mongod` instance that runs on ``example.net`` and enforces
146146
access control.
147147

148148
.. code-block:: javascript
@@ -153,7 +153,7 @@ access control.
153153
"example.net",
154154
"reportUser",
155155
"abc123",
156-
"MONGODB-CR"
156+
"SCRAM-SHA-1"
157157
)
158158

159159
.. seealso:: :dbcommand:`clone`

source/reference/parameters.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ Authentication Parameters
8484
Salted Challenge Response Authentication Mechanism using the SHA-1
8585
hash function.
8686

87-
* - :ref:`MONGODB-CR <authentication-mongodb-cr>`
87+
* - :ref:`MONGODB-CR <authentication-mongodb-cr>`
8888

89-
- MongoDB challenge/response authentication.
89+
- MongoDB challenge/response authentication. (*Deprecated in MongoDB 3.6*)
9090

9191
* - :ref:`MONGODB-X509 <security-auth-x509>`
9292

source/release-notes/3.0-scram.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ authentication schema to SCRAM.
3434

3535
SCRAM represents a significant improvement in security over MongoDB
3636
Challenge and Response (MONGODB-CR), the previous default
37-
authentication mechanism: you are strongly urged to upgrade from the
38-
MONGODB-CR authentication schema to SCRAM. For advantages of using
39-
SCRAM over MONGODB-CR, see :ref:`scram-advantages`.
37+
authentication mechanism. For advantages of using SCRAM over
38+
MONGODB-CR, see :ref:`scram-advantages`.
39+
40+
As of MongoDB 3.6, MONGODB-CR authentication mechanisem is
41+
deprecated.
42+
43+
You are strongly urged to upgrade from the MONGODB-CR
44+
authentication schema to SCRAM.
4045

4146
.. _upgrade-scram-scenarios:
4247

source/release-notes/3.6-compatibility.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,11 @@ Platform Support
417417
General Compatibility Changes
418418
-----------------------------
419419

420+
``MONGODB-CR`` Deprecation
421+
~~~~~~~~~~~~~~~~~~~~~~~~~~
422+
423+
.. include:: /includes/fact-mongodb-cr-deprecated.rst
424+
420425
.. _3.6-compatibility-arbiter-priority:
421426

422427
Arbiter and Priority

source/release-notes/3.6.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ Default Bind to Localhost
110110

111111
.. include:: /includes/fact-default-bind-ip-change.rst
112112

113+
``MONGODB-CR`` Deprecation
114+
~~~~~~~~~~~~~~~~~~~~~~~~~~
115+
116+
.. include:: /includes/fact-mongodb-cr-deprecated.rst
117+
113118
.. _3.6-authentication-restrictions:
114119

115120
Authentication Restrictions

source/tutorial/configure-fips.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ MongoDB's FIPS support covers the way that MongoDB uses OpenSSL for
7272
network encryption, SCRAM authentication, and x.509
7373
authentication. If you use Kerberos or LDAP authentication, you must
7474
ensure that these external mechanisms are FIPS-compliant.
75-
``MONGODB-CR`` authentication is **not** FIPS compliant.
75+
The 3.6 deprecated ``MONGODB-CR`` authentication is **not** FIPS compliant.
7676

7777
Procedure
7878
---------

source/tutorial/control-access-to-mongodb-windows-with-kerberos-authentication.txt

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,22 @@ Incorporate Additional Authentication Mechanisms
9292
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9393

9494
Kerberos authentication (:ref:`GSSAPI <security-auth-kerberos>` (Kerberos))
95-
can work alongside MongoDB's challenge/response authentication mechanisms
96-
(:ref:`SCRAM-SHA-1 <authentication-scram>` and
97-
:ref:`MONGODB-CR <authentication-mongodb-cr>`), MongoDB's
98-
authentication mechanism for LDAP (:ref:`PLAIN <security-auth-ldap>`
99-
(LDAP SASL)), and MongoDB's authentication mechanism for x.509 (
100-
:ref:`MONGODB-X509 <security-auth-x509>`). Specify the
101-
mechanisms as follows:
95+
can work alongside:
96+
97+
- MongoDB's challenge/response authentication mechanisms:
98+
99+
- :ref:`SCRAM-SHA-1 <authentication-scram>`
100+
- :ref:`MONGODB-CR <authentication-mongodb-cr>` (*Deprecated in MongoDB 3.6*)
101+
102+
- MongoDB's authentication mechanism for LDAP:
103+
104+
- :ref:`PLAIN <security-auth-ldap>` (LDAP SASL)
105+
106+
- MongoDB's authentication mechanism for x.509:
107+
108+
- :ref:`MONGODB-X509 <security-auth-x509>`)
109+
110+
Specify the mechanisms as follows:
102111

103112
.. code-block:: sh
104113

source/tutorial/control-access-to-mongodb-with-kerberos-authentication.txt

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,22 @@ Incorporate Additional Authentication Mechanisms
167167
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
168168

169169
Kerberos authentication (:ref:`GSSAPI <security-auth-kerberos>` (Kerberos))
170-
can work alongside MongoDB's challenge/response authentication mechanisms
171-
(:ref:`SCRAM-SHA-1 <authentication-scram>` and
172-
:ref:`MONGODB-CR <authentication-mongodb-cr>`), MongoDB's
173-
authentication mechanism for LDAP (:ref:`PLAIN <security-auth-ldap>`
174-
(LDAP SASL)), and MongoDB's authentication mechanism for x.509 (
175-
:ref:`MONGODB-X509 <security-auth-x509>`). Specify the
176-
mechanisms as follows:
170+
can work alongside:
171+
172+
- MongoDB's challenge/response authentication mechanisms:
173+
174+
- :ref:`SCRAM-SHA-1 <authentication-scram>`
175+
- :ref:`MONGODB-CR <authentication-mongodb-cr>` (*Deprecated in MongoDB 3.6*)
176+
177+
- MongoDB's authentication mechanism for LDAP:
178+
179+
- :ref:`PLAIN <security-auth-ldap>` (LDAP SASL)
180+
181+
- MongoDB's authentication mechanism for x.509:
182+
183+
- :ref:`MONGODB-X509 <security-auth-x509>`)
184+
185+
Specify the mechanisms as follows:
177186

178187
.. code-block:: sh
179188

0 commit comments

Comments
 (0)