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

Add the "getnonce" command to the "allowedOpQueryCommands" list

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • v6.0
    • QE 2022-05-30

      SERVER-58338 made a change that causes the server to return an error (through uassert) if the client attempts to run an OP_QUERY other than isMaster/hello. In this case, the client is running getnonce, which is not in the allowed-list defined by SERVER-58338.

      This happens as part of parsing the sourced RPC message and causes the server to close the connection: https://github.com/mongodb/mongo/blob/012db1b7bd4aa161368a28ffdc581ebb102e2fbe/src/mongo/transport/service_state_machine.cpp#L298-L299

      The class comment for CmdGetNonce suggests to me the appropriate action will be to add the getnonce command to the allowedOpQueryCommands list.

            Assignee:
            edwin.zhou@mongodb.com Edwin Zhou
            Reporter:
            edwin.zhou@mongodb.com Edwin Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: