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

Enable currentOp to be run with security token

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Server Serverless 2022-10-17, Server Serverless 2022-10-31

    Description

      Tenants should be able to run the currentOp command. To allow this, override allowedWithSecurityToken on the mongod currentOp command to return true. Then, we'll need to be sure we allow a currentOp to be scoped to the correct tenant, so we'll need to actually name the DatabaseName parameter on the command's run function, and then construct the agg reqeust with it.

      We'll also want to change the serialization of the"ns" field in the output so that we only include the tenantId as a prefix if the project's feature flag is not enabled - use the NamespaceStringUtils::serialize() function instead.

      We can add a test to both native_tenant_data_isolation_basic_dollar_tenant.js and native_tenant_data_isolation_basic_security_token.js

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: