Skip to content

DOCSP-50026: remove eol server versions #501

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

Merged
merged 4 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
79 changes: 12 additions & 67 deletions source/fundamentals/auth.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ The Go driver supports the following authentication mechanisms:

* :ref:`SCRAM-SHA-256 <golang_sha_256>`
* :ref:`SCRAM-SHA-1 <golang-sha-1>`
* :ref:`MONGODB-CR <golang-mongodb-cr>`
* :ref:`MongoDB-AWS <golang-mongodb-aws>`
* :ref:`X.509 <golang-x509>`

Expand Down Expand Up @@ -63,33 +62,17 @@ Each authentication mechanism contains the following placeholders:
authentication data. If you omit this option, the driver uses the
default value ``admin``.

.. _golang_sha_256:
.. _golang-default-auth-mechanism:

Default
~~~~~~~

The default mechanism uses one of the following authentication
mechanisms depending on what MongoDB versions your server supports:

.. list-table::
:header-rows: 1
:stub-columns: 1
:class: compatibility-large

* - Mechanism
- Versions

* - ``SCRAM-SHA-256``
- MongoDB 4.0 and later

* - ``SCRAM-SHA-1``
- MongoDB 3.0, 3.2, 3.4, and 3.6
``SCRAM-SHA-256``
~~~~~~~~~~~~~~~~~

* - ``MONGODB-CR``
- MongoDB 2.6 and earlier
``SCRAM-SHA-256`` is a salted challenge-response authentication mechanism
(SCRAM) that uses your database username and password, encrypted with the ``SHA-256``
algorithm, to authenticate your user. This is the default authentication mechanism.

To specify the default authentication mechanism, omit the
``AuthMechanism`` option:
To specify this default authentication mechanism, omit the ``AuthMechanism`` option:

.. code-block:: go

Expand All @@ -103,26 +86,8 @@ To specify the default authentication mechanism, omit the

client, err := mongo.Connect(clientOpts)

To learn more about the challenge-response (CR) and salted
challenge-response authentication mechanisms (SCRAM) that MongoDB supports,
see the :manual:`SCRAM </core/security-scram/>` section of the server manual.

.. _golang_sha_256:

``SCRAM-SHA-256``
~~~~~~~~~~~~~~~~~

.. important::

``SCRAM-SHA-256`` is the default authentication method for MongoDB starting
in MongoDB 4.0.

``SCRAM-SHA-256`` is a salted challenge-response authentication mechanism
(SCRAM) that uses your database username and password, encrypted with the ``SHA-256``
algorithm, to authenticate your user.

To specify the ``SCRAM-SHA-256`` authentication mechanism, assign the
``AuthMechanism`` option the value ``"SCRAM-SHA-256"``:
You can also explicitly specify the ``SCRAM-SHA-256`` authentication mechanism
by assigning the ``AuthMechanism`` option the value ``"SCRAM-SHA-256"``:

.. code-block:: go
:emphasize-lines: 2
Expand All @@ -138,17 +103,15 @@ To specify the ``SCRAM-SHA-256`` authentication mechanism, assign the

client, err := mongo.Connect(clientOpts)

To learn more about the challenge-response authentication mechanisms (SCRAM) that MongoDB supports,
see the :manual:`SCRAM </core/security-scram/>` section of the Server manual.

.. _golang-scram-sha-1-auth-mechanism:
.. _golang-sha-1:

``SCRAM-SHA-1``
~~~~~~~~~~~~~~~

.. important::

``SCRAM-SHA-1`` is the default authentication method for MongoDB versions
3.0, 3.2, 3.4, and 3.6.

``SCRAM-SHA-1`` is a salted challenge-response mechanism (SCRAM) that uses your
username and password, encrypted using the ``SHA-1`` algorithm, to authenticate
your user.
Expand All @@ -170,29 +133,11 @@ To specify the ``SCRAM-SHA-1`` authentication mechanism, assign the

client, err := mongo.Connect(clientOpts)

.. _golang-mongodb-cr:

``MONGODB-CR``
~~~~~~~~~~~~~~

``MONGODB-CR`` is a challenge-response authentication mechanism that uses your
username and password to authenticate your user.

.. important::

This authentication mechanism was deprecated starting in MongoDB 3.6
and is no longer supported as of MongoDB 4.0.

.. _golang-mongodb-aws:

``MONGODB-AWS``
~~~~~~~~~~~~~~~

.. important::

The MONGODB-AWS authentication mechanism is available only in MongoDB
versions 4.4 and later.

The ``MONGODB-AWS`` authentication mechanism uses your Amazon Web Services
Identity and Access Management (AWS IAM) credentials to authenticate your
user.
Expand Down
6 changes: 3 additions & 3 deletions source/fundamentals/connections/network-compression.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ your application.

The {+driver-short+} supports the following compression algorithms:

1. `Snappy <https://google.github.io/snappy/>`__: available in MongoDB 3.4 and later.
1. `Snappy <https://google.github.io/snappy/>`__

2. `Zlib <https://zlib.net/>`__: available in MongoDB 3.6 and later.
#. `Zlib <https://zlib.net/>`__

3. `Zstandard <https://github.com/facebook/zstd/>`__: available in MongoDB 4.2 and later.
#. `Zstandard <https://github.com/facebook/zstd/>`__

If you specify multiple compression algorithms, the driver selects the
first one in the list supported by your MongoDB deployment.
Expand Down
5 changes: 2 additions & 3 deletions source/fundamentals/crud/write-operations/modify.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ and descriptions </reference/operator/update-field/>`.

.. note:: Aggregation Pipelines in Update Operations

If you are using MongoDB Server version 4.2 or later, you can use aggregation
pipelines made up of a subset of aggregation stages in update operations. To learn more about
the aggregation stages MongoDB supports in
You can use aggregation pipelines made up of a subset of aggregation stages
in update operations. To learn more about the aggregation stages MongoDB supports in
aggregation pipelines, see our tutorial on performing
:manual:`updates with aggregation pipelines
</tutorial/update-documents-with-aggregation-pipeline/>`.
Expand Down
25 changes: 0 additions & 25 deletions source/includes/mongodb-compatibility-table-go.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,29 @@
- MongoDB 7.0
- MongoDB 6.1
- MongoDB 6.0
- MongoDB 5.0
- MongoDB 4.4
- MongoDB 4.2
- MongoDB 4.0
- MongoDB 3.6

* - 2.2
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✗

* - 2.1
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓

* - 1.12 to 2.0
- ⊛ [#8.0-support]_
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓

* - 1.11
- ⊛
- ⊛
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓

.. [#8.0-support] {+driver-short+} v1.17 and v2.0 are partially compatible with {+mdb-server+} 8.0 but do not support client bulk write.
Loading