Skip to main content

Module audit

Module audit 

Source
Expand description

Audit log — SQLite-based operation history.

Stores a record of every vault operation (set, delete, rotate, etc.) in a local SQLite database at <vault_dir>/audit.db.

Designed for graceful degradation: if the database can’t be opened or written to, operations silently continue without logging.

Structs§

AuditEntry
A single audit log entry.
AuditLog
SQLite-backed audit log.

Functions§

log_audit
Convenience helper: log an audit event using the CLI context.