Std.App.Audit
13 public declarations
- AuditEvent
An immutable, tamper-evident security audit record.
- auditLog
Std.App.Audit.AuditLogInitialize a fresh in-memory audit ledger.
- AuditLog
A thread-safe, append-only security audit ledger maintaining an unbroken SHA-256 hash chain.
- count
&Std.App.Audit.AuditLog -> IntTotal count of recorded audit events.
- events
&Std.App.Audit.AuditLog -> Array[Std.App.Audit.AuditEvent]Retrieve a snapshot copy of all recorded events.
- GENESIS_HASH
StrThe standard 64-hex-character genesis digest anchoring the audit chain.
- headHash
&Std.App.Audit.AuditLog -> StrCurrent head hash of the ledger.
- Outcome
The outcome of an audited security action.
- record
&Std.App.Audit.AuditLog -> Str -> Str -> Str -> Std.App.Audit.Outcome -> Str -> &Map[Str, Str] -> Std.App.Audit.AuditEventRecord an audit event into the append-only ledger with cryptographic hash chaining.
- redactSensitive
Str -> Str -> StrRedact sensitive credential keys to prevent secret leaks into audit trails.
- renderJson
&Std.App.Audit.AuditEvent -> StrSerialize an individual audit event to canonical single-line JSON.
- renderNdjson
&Std.App.Audit.AuditLog -> StrSerialize all events in the ledger to newline-delimited JSON (NDJSON).
- verifyIntegrity
&Std.App.Audit.AuditLog -> BoolVerify the entire cryptographic hash chain from genesis to head.
