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

Allow killOp with security token

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Serverless
    • Fully Compatible
    • Server Serverless 2022-12-26

    Description

      We should support the killOp command with a security token. Override allowedWithSecurityToken to return true for mongod's killOp command. Note that we don't want to override on KillOpCmdBase, because we'd enable it mongos/mongoq as well by doing so. The command only uses the dbName to log, so we shouldn't need any other changes to the command execution path.

      Then, remove the tag "not_allowed_with_security_token" from any jstests/core tests that are tagged only because they run killOp. We can easily find which tests are currently excluded because of killOp only by grepping for "The test runs commands that are not allowed with security token: killOp."

      Attachments

        Activity

          People

            mathis.bessa@mongodb.com Mathis Bessa
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: