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§
- Access
Review Report - Access review report for SOC2 compliance.
- Actor
Access Summary - Summary of access events for a single actor.
- Audit
Config - Audit logger configuration.
- Audit
Entry - Audit log entry.
- Audit
Logger - Audit logger for SOC2/GDPR compliance.
- Outcome
Summary - Summary of outcomes across all events.
Enums§
- Audit
Outcome - Outcome of an audited action.
Constants§
- GENESIS_
HMAC - Genesis hash for the first entry in an HMAC chain.
Statics§
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§
- Hmac
Sha256 🔒 - HMAC-SHA256 type alias.