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

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

    XMLWordPrintable

    Details

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

      Description

      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 ?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: