Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39128

Avoid double-authentication during connect from mongo shell

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.7, 4.1.8
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0
    • Sprint:
      Security 2019-01-28
    • Linked BF Score:
      5

      Description

      When launching the shell with a username/password specified, either by way of a mongodb:// uri or by pass -user/-password parameters, we see two authentications performed.

      The first is the result of a call to MongoURI::connect() which contains a call to DBClientBase::auth().
      The second is via db.auth() in the Javascript layer.

      This results in multiple round-trips for the extra auth and in the case of Enterprise users, multiple "authenticate" entries in the audit log.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: