Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Audit logs in proxy-wasm logs #263

Merged
merged 10 commits into from
Jul 18, 2024
3 changes: 2 additions & 1 deletion wasmplugin/rules/coraza-demo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ SecDebugLogLevel 3
# level response status codes).
#
SecAuditEngine RelevantOnly
SecAuditLogRelevantStatus "^(?:(5|4)(0|1)[0-9])$"
# SecAuditLogRelevantStatus includes status 0 as a workaround for https://github.com/corazawaf/coraza/pull/1097
SecAuditLogRelevantStatus "^(?:(5|4)(0|1)[0-9]|0)$"

# Log everything we know about a transaction.
SecAuditLogParts ABIJDEFHZ
Expand Down
3 changes: 2 additions & 1 deletion wasmplugin/rules/coraza.conf-recommended.conf
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ SecResponseBodyLimitAction ProcessPartial
# level response status codes).
#
SecAuditEngine Off
SecAuditLogRelevantStatus "^(?:(5|4)(0|1)[0-9])$"
# SecAuditLogRelevantStatus includes status 0 as a workaround for https://github.com/corazawaf/coraza/pull/1097
SecAuditLogRelevantStatus "^(?:(5|4)(0|1)[0-9]|0)$"

# Log everything we know about a transaction.
SecAuditLogParts ABIJDEFHZ
Expand Down
Loading