Documentation
¶
Overview ¶
Package siem streams the audit log to external SIEM sinks at-least-once, gated on the siem_stream entitlement and entirely off the request path. Durability comes from a per-target cursor: the cursor advances only on a successful ship, so an outage or restart never drops events.
Index ¶
Constants ¶
View Source
const Flag = "siem_stream"
Flag is the entitlement that unlocks SIEM streaming.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntitlementChecker ¶
EntitlementChecker is satisfied by enterprise.EE; kept minimal so this package does not import the enterprise seam.
type Sink ¶
Sink ships a batch of audit events to an external system. Returning an error leaves the cursor un-advanced so the batch is retried next tick.
type Streamer ¶
type Streamer struct {
// contains filtered or unexported fields
}
Streamer ships audit events to all enabled SIEM targets.
func NewStreamer ¶
func NewStreamer(audit *repositories.AuditLogRepository, config *repositories.SIEMConfigRepository, ee EntitlementChecker) *Streamer
Click to show internal directories.
Click to hide internal directories.