Expand description
The audit sink. Every decision hackamore makes — allow or deny — is recorded. The
trait lets the data plane stay oblivious to where records go; v1 ships an in-memory
sink (used by tests and introspection) and a tracing sink for operations.
Structs§
- File
Audit - A durable, queryable audit sink: appends each event as one JSON line (JSONL) to a file,
flushed per record so a crash loses at most the in-flight event. The file is a stable
append-only log a SIEM or
jqcan tail and query, unlike the ephemeraltracingstream. A write failure is logged (the request path must not fail because audit I/O did) — operators should alarm on theaudit write failedevent. - InMemory
Audit - Collects events in memory. Used by tests and for local introspection.
- Tracing
Audit - Emits each event as a structured
tracingrecord.
Traits§
- Audit
Sink - Receives one immutable
AuditEventper decision. Implementations must be cheap and non-blocking; the data plane records on the request path.