[CDRIVER-4121] Use OP_MSG to authenticate if server supports OP_MSG Created: 09/Aug/21  Updated: 27/Oct/23  Resolved: 28/Apr/23

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

Type: Improvement Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Ezra Chung
Resolution: Works as Designed Votes: 0
Labels: size-small
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-2344 Use OP_MSG to authenticate if server ... Closed
is depended on by PHPC-1941 Use OP_MSG to authenticate if server ... Closed
Issue split
Related
is related to CDRIVER-4622 OP_QUERY egress counter may overcount Closed
is related to CDRIVER-4629 Remove code paths that assume maxWire... Closed
Server Compat: 5.1
Quarter: FY24Q1
Upstream Changes Summary:

DRIVERS-1873:
This ticket requires drivers to ensure that they are using OP_MSG for the authentication step if it is supported (maxWireVersion >= 6) as part of the process of establishing a new connection. Currently, some drivers still use OP_QUERY for the authentication step even if OP_MSG is supported. As support is being dropped for OP_QUERY, Once the server team implements SERVER-59085 in MongoDB using OP_QUERY for anything other than the first step of the handshake will raise an error. Thus, once that version is released we will be able to test this change by ensuring that the driver is able to successfully connect to that version server.
There are no spec test changes associated with this ticket.
Check out the Authentication Handshake spec for more details.


 Description   

DRIVERS Ticket Description
Script Target - If you can read this text, the script has failed


 Comments   
Comment by Githook User [ 03/May/23 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CDRIVER-4193 Ensure OP_MSG for handshakes and fix RPC op_egress counters (#1256)

  • Move SHM count function into mongoc-counters-private.h
  • Declare test_framework_has_compressors in test-libmongoc.h
  • Allow /counters/op_msg and /counters/op_compressed with auth
  • Add _mongoc_rpc_op_egress_inc
  • CDRIVER-4193 RTT thread should also use hello if serverApi is given
  • Do not increment RPC op_egress counters in mock server
  • Add /counters/rpc/op_egress tests
  • CDRIVER-4622 RPC op_egress increment: mongoc_async_cmd_new -> mongoc_async_cmd_phase_send
  • Add mongoc_<object>_uses_loadbalanced
  • CDRIVER-4265 Use OP_MSG for handshakes when loadBalanced=true
Generated at Wed Feb 07 21:19:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.