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

Standardize auditing events without clients

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Server Security
    • Security 2024-02-05, Security 2024-02-19, Security 2024-03-04

      When we trigger an event from a signal handler, we do not have a client. Because we have a constraint enforced in the AuditEvent class to ensure that the caller passes in a client, we have to create our own client and pass it to the AuditEvent constructor. Currently the only place we have this issue is in shutdown, where we have an audit event that can be triggered by a signal handler (Ctrl-C). In this case we create a client (possibly for other reasons) and we pass that client in for the audit log. Audit log rotation also has an audit event that can be triggered by a signal handler. Here it doesn’t pass in a client (nullptr) and instead puts an if check in to the AuditEvent class.

      We should instead standardize a way of accepting audit events without a client.

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            shreyas.kalyan@mongodb.com Shreyas Kalyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: