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

Set requiresAuth to false for certain commands

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding 2018-12-31

      We need to explicitly declare requiresAuth=false if we want commands that run without authentication to work with implicit sessions. We should review the below list of commands to make sure they do so.

      Quoting SERVER-35753, the following commands should explicitly set requiresAuth to return false, so they may be run by unauthenticated clients:

      • saslStart
      • saslContinue
      • authenticate
      • getnonce
      • connectionStatus
      • buildInfo
      • ping
      • listCommands (but we rather it weren't per SERVER-35482)
      • resetError
      • getLastError
      • getPrevError
      • shutdown (but still has an auth check)
      • ismaster
      • whatsmyuri (internal)
      • _isSelf (internal)

      And the test only commands that don't require auth:

      • configureFailPoint
      • echo
      • refreshLogicalSessionCacheNow
      • waitForOngoingChunkSplits

      We should investigate if any of these commands don't set requiresAuth to be false.

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            greg.mckeon@mongodb.com Gregory McKeon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: