[SERVER-57295] Rotate audit log on startup Created: 28/May/21  Updated: 29/Oct/23  Resolved: 09/Jul/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.4, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sara Golemon Assignee: Adrian Gonzalez Montemayor
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4, v4.2, v4.0
Sprint: Security 2021-06-14, Security 2021-06-28, Security 2021-07-12
Participants:

 Description   

An unclean shutdown while an audit log entry is being written may cause corruption in the audit log.

If auditFormat BSON is being used, this corruption may make the audit log extremely difficult to read using normal tooling.

Automatically rotate the audit log on startup to ensure that the audit log can recover from an unclean shutdown.



 Comments   
Comment by Githook User [ 11/Oct/21 ]

Author:

{'name': 'Adrian Gonzalez', 'email': 'adriangonzalezmontemayor@gmail.com', 'username': 'adriangzz'}

Message: SERVER-57295 Rotate audit log on startup

(cherry picked from commit 18f31c76e161b977b2fa52736302289a3fed2980)
Branch: v5.0
https://github.com/10gen/mongo-enterprise-modules/commit/5bd2c1891a35e8e288de68d189d6751e05961edb

Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 09/Jul/21 ]

Author:

{'name': 'Adrian Gonzalez', 'email': 'adriangonzalezmontemayor@gmail.com', 'username': 'adriangzz'}

Message: SERVER-57295 Rotate audit log on startup
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/18f31c76e161b977b2fa52736302289a3fed2980

Generated at Thu Feb 08 05:41:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.