Assuming the completion of SERVER-1891.
We should make it possible to configure MongoDB to shutdown automatically should there be a failure in the auditing system. In many organizations that require auditing for legal or compliance reasons this is a requirements. An example is the DISA STIG:
Rule Title: The DBMS must shutdown immediately in the event of an audit failure, unless an alternative audit capability exists. STIG ID: SRG-APP-000107-DB-000169 Severity: CAT II Discussion: It is critical, when a system is at risk of failing, to process audit logs as required, if the system were to continue processing without auditing enabled, actions can be taken on the system that cannot be tracked and recorded for later forensic analysis. Audit processing failures include: software/hardware errors, failures in the audit capturing mechanisms, and audit storage capacity being reached or exceeded. In many system configurations, the disk space allocated to the auditing system is separate from the disks allocated for the operating system; therefore, this may not result in a system outage. This forces the application to detect and take actions. A failure of database auditing will result in either the database continuing to function without auditing or in a complete halt to database operations. In this case the database must cease processing immediately in order to not allow unlogged transaction to occur. Content: Review DBMS settings and vendor documentation to determine whether the system will shutdown in the event of an audit failure. If the system is not configured to shut down in the event of an audit failure, this is a finding. Fix Text: Modify DBMS settings to immediately shutdown the database in the event of an audit failure. CCI: CCI-001343 The information system invokes a system shutdown in the event of an audit failure, unless an alternative audit capability exists. SRG-APP-000107-DB-000169
- depends on
-
SERVER-1891 Audit "DDL" operations
- Closed
- is related to
-
SERVER-13746 mongod doesn't shut down when it can't write to log file with auditing enabled
- Closed
- related to
-
SERVER-22749 Better error logging for failures when writing an audit record to the audit log
- Backlog