Watch
1
0
Fork
You've already forked RedFlag
0

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:
Fimeg 2026-06-11 01:18:32 -04:00
commit 5683bc15a4
5 changed files with 375 additions and 1 deletions

View file

@ -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