Skip to content
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

DRIVERS-1873 Use OP_MSG to authenticate if the server supports OP_MSG #1116

Merged
merged 15 commits into from
Jan 13, 2022
Prev Previous commit
Next Next commit
fix up wording
  • Loading branch information
juliusgeo committed Jan 10, 2022
commit e4177fb4b05005daa910de37a47fa0c9b21f9028
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,9 @@ use ``OP_MSG``(``maxWireVersion >= 6``) or ``OP_QUERY``(``maxWireVersion <6``)
for future communications), handling OP_COMPRESSED, and performing
authentication. It is necessary to inspect the value of ``maxWireVersion``
because starting with MongoDB 6.0 using ``OP_QUERY`` for anything other than
the handshake will result in an error. ``OP_QUERY`` should only be used with
nodes that do not support ``OP_MSG``.
the handshake will result in an error. Once the driver has performed the
handhake and inspected the value of ``maxWireVersion`` it MUST use
``OP_MSG`` if supported.
Copy link
Member

Choose a reason for hiding this comment

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

Should we link to the section in the OP_MSG spec instead of duplicating it? Alternatively, I would be more open to duplicating here once we make it more succinct (following my comment in OP_MSG). Or could we just remove this section altogether?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I reduced it down significantly because the pseudocode offers some of the details


.. code::

Expand Down