-
-
Notifications
You must be signed in to change notification settings - Fork 308
Open
Description
Summary
Similar to how we can intercept debuglogger and interruptions, it would be great to also be able to interact with auditlog.
Basic example
waf, err = coraza.NewWAF(
coraza.NewWAFConfig().
WithDirectives(directive).
WithDebugLogger(customDebuglogLogger()).
WithErrorCallback(errorCallback).
WithAuditlogCallback(auditlogCallback).
WithRootFS(coreruleset.FS),
)Motivation
Workloads are running in stateless non-privileged pods with specialized logger infra (e.g elastic ecs formatter), so we can't send auditlog into file or stdout/stderr. We would prefer a callback that lets us re-use our existing logger infra.
Metadata
Metadata
Assignees
Labels
No labels