Raxol.Audit.Events (Raxol v2.0.1)

View Source

Audit event definitions for compliance and security tracking.

These events capture all security-relevant actions in the system, providing a comprehensive audit trail for compliance requirements including SOC2, HIPAA, GDPR, and PCI-DSS.

Summary

Functions

Creates an authentication audit event.

Creates a compliance audit event with 4 arguments (for backward compatibility).

Creates a configuration change audit event with 5 arguments (for backward compatibility).

Creates a privacy/GDPR audit event with 3 arguments (for backward compatibility).

Functions

authentication_event(username, method, outcome, opts \\ [])

Creates an authentication audit event.

compliance_event(framework, requirement, activity, status)

Creates a compliance audit event with 4 arguments (for backward compatibility).

compliance_event(framework, requirement, activity, status, opts)

Creates a compliance audit event.

configuration_change_event(user_id, component, setting, old_value, new_value)

Creates a configuration change audit event with 5 arguments (for backward compatibility).

configuration_change_event(user_id, component, setting, old_value, new_value, opts)

Creates a configuration change audit event.

data_access_event(user_id, operation, resource_type, opts \\ [])

Creates a data access audit event.

privacy_event(data_subject_id, request_type, status)

Creates a privacy/GDPR audit event with 3 arguments (for backward compatibility).

privacy_event(data_subject_id, request_type, status, opts)

Creates a privacy/GDPR audit event.

security_event(event_type, severity, description, opts \\ [])

Creates a security event.

terminal_audit_event(user_id, terminal_id, action, opts \\ [])

Creates a terminal audit event.

validate_required(event, fields)