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

_isSelf command needs to be marked requiresAuth false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.17, 4.0.0, 4.1.1
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.6
    • Epic Link:
    • Sprint:
      Platforms 2018-06-04, Platforms 2018-06-18
    • Linked BF Score:
      0

      Description

      The _isSelf command can be issued while digesting a replica set config if we cannot determine the "is self" answer by other means. Those other means seem to be unable to determine the "is self" on some platforms [*], so we fall back to issuing an _isSelf on the network.

      In the referenced BFs, this was happening in a restarted single-node replica set. When it restarts, it issues _isSelf and fails because it has no key file (single-node replica sets don't think they need a key file) and so won't accept __system user commands.

      The fix is to just override _isSelf's Command to make requiresAuth() return false.

      [*] Debian builders and on my Ubuntu 18.04 workstation, but not other evergreen builders like RHEL.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              billy.donahue Billy Donahue
              Reporter:
              billy.donahue Billy Donahue
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: