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

mongod audit log attributes DDL operations to the __system user in a sharded environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.0.20, 3.6.19
    • 4.8.0, 4.2.10, 4.4.2
    • None
    • None
    • Minor Change
    • ALL
    • v4.4, v4.2, v4.0, v3.6
    • Security 2020-09-21
    • 50

    Description

      Seemingly related to SERVER-11192, the __system user is audited as the initiator of DDL operations like createDatabase, dropDatabase, createCollection, dropCollection, createIndex, and dropIndex when those commands are run from a mongos in a sharded environment.

      CRUD operations are correctly attributed.

      A partial workaround is to use auditAuthorizationSuccess and an auditFilter focusing on DDL operations, on mongos nodes, to obtain authCheck audits from the mongos. But this is not applicable in all cases (ex: implicit collection creation)

      Attachments

        Issue Links

          Activity

            People

              sara.golemon@mongodb.com Sara Golemon
              eric.sedor@mongodb.com Eric Sedor
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: