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

Audit trail corrupt on Mac OSX Catalina

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 4.2.0
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

       mongod --dbpath `pwd` --setParameter auditAuthorizationSuccess=true --auditDestination file --auditFormat BSON --auditPath `pwd`/auditLog2.bson --logpath=`pwd`/mongod.log
      MongoDB Enterprise > use test
      switched to db test
      MongoDB Enterprise > db.pets.insert({code: "D001",type: "DOG"})
      WriteResult({ "nInserted" : 1 })
      MongoDB Enterprise > db.pets.insert({code: "C001",type: "CAT"})
      WriteResult({ "nInserted" : 1 })
      MongoDB Enterprise > db.pets.insert({code: "F001",type: "FISH"})
      WriteResult({ "nInserted" : 1 })
      MongoDB Enterprise > use admin
      switched to db admin
      MongoDB Enterprise > db.shutdownServer()

       

       

      Resulting BSON file in audit is 53 bytes long and not BSON - does not happen on OSX Mavericks

      Show
       mongod --dbpath `pwd` --setParameter auditAuthorizationSuccess=true --auditDestination file --auditFormat BSON --auditPath `pwd`/auditLog2.bson --logpath=`pwd`/mongod.log MongoDB Enterprise > use test switched to db test MongoDB Enterprise > db.pets.insert({code: "D001",type: "DOG"}) WriteResult({ "nInserted" : 1 }) MongoDB Enterprise > db.pets.insert({code: "C001",type: "CAT"}) WriteResult({ "nInserted" : 1 }) MongoDB Enterprise > db.pets.insert({code: "F001",type: "FISH"}) WriteResult({ "nInserted" : 1 }) MongoDB Enterprise > use admin switched to db admin MongoDB Enterprise > db.shutdownServer()     Resulting BSON file in audit is 53 bytes long and not BSON - does not happen on OSX Mavericks

      Description

      I have had two reports and seen a demonstration of audit trail corruption on OSX, MacOS catalina when writing a BSON audit trail - whilst this is a rare combination I'm concerned it may be a more systematic issue and affect other parts of the DB.

      Basically the audit trail on catalina does not contain the expected, valid BSON data.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-security Backlog - Security Team
              Reporter:
              john.page John Page
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: