Skip to main content

Module audit_ring

Module audit_ring 

Source
Expand description

Bounded target-side audit ring.

Sequence numbers increase monotonically for the life of the proxy instance. Wrap overwrites the oldest entries but never reuses or resets sequence numbers, so a host reading from a stale cursor can detect the gap. The ring is in-memory: undrained entries are lost if the driver host crashes, which is why hosts drain incrementally during mutating plans.

Structs§

AuditEntry
An audit record together with its assigned sequence number.
AuditPage
One bounded page returned from AuditRing::read.
AuditRecord
One audit record. Callers supply bounded, normalized values; the ring never stores pointers, physical addresses, handles, or unbounded caller strings.
AuditRing
Fixed-capacity audit ring.

Enums§

Decision
The policy outcome recorded for an attempted operation.
OpStatus
Execution outcome recorded alongside the policy decision.

Type Aliases§

AuditObserver
Callback invoked with each record and its assigned sequence number as the record is appended.