Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2579

Handshake changes for SDAM and Auth

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: auth
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      tl;dr:

      • Monitoring-only sockets must not send SCRAM mechanism negotiation in isMaster and must not authenticate at all.
      • Non-monitoring sockets (e.g. connection pool or single-threaded client) do a "normal" handshake and authenticate if there are credentials.
      • An authentication error on a socket must close all (and only) non-monitoring sockets to the same server.

      Possible backward breaking change:

      • Some drivers were resetting a server's topology description to Unknown on an authentication error and should stop doing so. This means the topology will always be "correct" even when authentication fails.
      • It will no longer be possible for authentication errors to be masked as server selection errors.

      Detailed changes:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kevin.albertson Kevin Albertson
              Reporter:
              rathi.gnanasekaran Rathi Gnanasekaran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: