Skip to main content

Module audit

Module audit 

Expand description

Audit logging for security events Each audit entry is chained via a Merkle hash: entry_hash = SHA-256(prev_hash || canonical_json). This makes the trail tamper-evident — modifying any entry invalidates all subsequent hashes.

Structs§

Action
Action information (what was done)
Actor
Actor information (who performed the action)
AuditEvent
Complete audit event with Merkle hash-chain fields.
AuditLogger
Audit logger
CommandExecutionLog
Structured command execution details for audit logging.
ExecutionResult
Execution result
SecurityContext
Security context

Enums§

AuditEventType
Audit event types

Functions§

verify_chain
verify_rotated_chain
Verify every retained generation and the active audit log as one chain.