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

Audit trail corrupt on Mac OSX Catalina

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.0
    • Component/s: Security
    • Labels:
      None
    • Server Security
    • ALL
    • 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

      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.

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            john.page@mongodb.com John Page
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: