Skip to main content

Module audit

Module audit 

Source
Expand description

Audit logging.

Provides SOC2/GDPR compliant audit logging for memory operations.

§HMAC Chain Integrity

Audit entries are cryptographically chained using HMAC-SHA256. Each entry includes the HMAC of the previous entry, creating an append-only chain that detects tampering or deletion.

To verify chain integrity, use AuditLogger::verify_chain.

Structs§

AccessReviewReport
Access review report for SOC2 compliance.
ActorAccessSummary
Summary of access events for a single actor.
AuditConfig
Audit logger configuration.
AuditEntry
Audit log entry.
AuditLogger
Audit logger for SOC2/GDPR compliance.
OutcomeSummary
Summary of outcomes across all events.

Enums§

AuditOutcome
Outcome of an audited action.

Constants§

GENESIS_HMAC
Genesis hash for the first entry in an HMAC chain.

Statics§

GLOBAL_AUDIT_LOGGER 🔒

Functions§

global_logger
Returns the global audit logger, if initialized.
init_global
Initializes the global audit logger.
log_event_if_configured 🔒
record_event
Records a memory event through the global audit logger.
start_audit_subscription 🔒

Type Aliases§

HmacSha256 🔒
HMAC-SHA256 type alias.