feat: Wazuh queue-socket event emitter (INTEG-001)
Outbound-only: no listener, no control surface — RedFlag's journal is authoritative, Wazuh is a best-effort mirror. DGRAM to the local agent's queue socket, ECS-formatted, rule IDs mapped from security event types. Opt-in via REDFLAG_WAZUH_ENABLED=true; disabled = socket never opened. - Sink interface on SecurityLogger (mirror after journal write) - Write deadline + one reconnect, then drop-count with rate-limited log - 3 tests: frame/ECS shape, absent-socket non-blocking, unknown→generic
This commit is contained in:
parent
aff48376b9
commit
5683bc15a4
5 changed files with 375 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ require (
|
|||
github.com/go-git/go-git/v5 v5.19.1
|
||||
github.com/gofrs/uuid/v5 v5.4.0
|
||||
github.com/golang-jwt/jwt/v5 v5.3.0
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/jmoiron/sqlx v1.4.0
|
||||
github.com/lib/pq v1.10.9
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1
|
||||
|
|
|
|||
Loading…
Reference in a new issue