[CSHARP-4416] Remove getNonce command usage for 6.2+ Created: 16/Nov/22  Updated: 28/Oct/23  Resolved: 21/Dec/22

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.19.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
Server Compat: 6.3
Upstream Changes Summary:

DRIVERS-2490:
The server is removing support for the getNonce command via SERVER-71007. getNonce was used for implementing the MONGODB-CR authentication mechanism, which was removed from the server in MongoDB 4.0.

Drivers need to:

1) Verify they do not have any logic or non-spec tests that would send getNonce to a 6.2+ server.

2) Sync command logging and monitoring spec tests to: https://github.com/mongodb/specifications/commit/735a667672c758617821e3c5dda99c551e007375

Note, as part of the above commit some existing tests around redacting sensitive commands/replies in command monitoring events and log messages were updated to have appropriate max server versions and so will now be skipped on newer servers where the commands they use no longer exist.


 Description   

This ticket was split from DRIVERS-2490, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 21/Dec/22 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-4416: Remove getNonce command usage for 6.2+. (#997)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/a1c67e7ee6bac2be740f6f26dd154c72cc164bbb

Comment by Robert Stam [ 05/Dec/22 ]

The only time a `getNonce` would be sent to the server is if the client is configured to use the deprecated `MongoDBCRAuthenticator` authentication mechanism. In that case the application will correctly receive a connection error when connected to a 6.2+ server because that deprecated authentication mechanism is no longer supported.

I also confirmed that none of our tests send a `getNonce` command to the server, so there are no tests that need to be skipped when running against server 6.2+.

 

Generated at Wed Feb 07 21:48:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.