Skip to main content

Module audit_log

Module audit_log 

Source
Expand description

Audit log model for CSAF CRUD operations.

Every create, update, and delete is logged with an ISO 8601 timestamp.

Structs§

AuditLogEntry
An audit log entry recording a CSAF operation.

Constants§

VALID_ACTIONS
Valid audit log actions. Mirror the valid_action CHECK constraint in crates/csaf-models/src/db.rs — any addition here must be mirrored there or the insert will fail at runtime.

Functions§

count
Count total audit log entries with optional filter.
list
List audit log entries with optional filters.
record
Record an audit log entry.