Skip to main content

AUDIT_TOPIC

Constant AUDIT_TOPIC 

Source
pub const AUDIT_TOPIC: &str = "astrid.v1.audit.entry";
Expand description

IPC topic the kernel publishes structured audit-entry events to for live subscribers (the HTTP gateway’s SSE stream).

The persistent audit log under ~/.astrid/audit.db remains the system of record — this topic is a fire-and-forget broadcast for dashboards / monitoring tools that want a live feed. Subscribers scope their view at the consumer end: operators with audit:read_all see the firehose, agents see only entries whose principal field matches their own.