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

root no longer has privileges to run setProfilingLevel on config/local dbs

    • Type: Icon: Question Question
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.7
    • Component/s: Logging, Security
    • Labels:
      None

      Hi, Dear mongo team!
       
      I found a problem in enable the slow log command.
       
      I use

      db.setProfilingLevel(1, { slowms: 100 })

        command with root role excute in admin database and test database was ok . but when I excuted in config database , mongo expect messages:

       
       Unauthorized: not authorized on config to execute command { profile: 1, slowms: 100, $clusterTime: { clusterTime: Timestamp(1572400149, 57), signature:
      
      { hash: BinData(0, 142D40C19EDD425A695B562803E2160A1E132F4E), keyId: 6701226941241884703 }
      
      }, $db: "config", $readPreference: \{ mode: "primaryPreferred" } }
       

       
      The mongo version is v4.0.10
       
      So I changed the version to v4.0.2 the problem go away. If this version's bug ?

            Assignee:
            eric.sedor@mongodb.com Eric Sedor
            Reporter:
            648813099@qq.com aa aaaaa
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: