Rath Pascal
Rath Pascal
Now the albedo backend is active - but spoa fails without any error when I try to enable response-checking. * In [coraza.cfg](https://github.com/O-X-L/coraza-spoa/blob/feat-test-ftw/ftw/haproxy/coraza.cfg#L20) * And [coraza-spoa.yaml](https://github.com/O-X-L/coraza-spoa/blob/feat-test-ftw/ftw/coraza-spoa.yaml#L48) **HAProxy Logs** ``` SPOE: [coraza-agent]...
Yey - have found the issue. @fionera With HAProxy versions
We still have **234** failed tests (in comparison to **69** of caddy). But most of the tests seem to work fine. Maybe we should address those errors in follow-up issues...
@fionera I think my rebase attempt did not make it any better. If you'd like to we could simply use this branch: https://github.com/corazawaf/coraza-spoa/pull/248 Sorry for the inconvenience :disappointed:
Todo once this is fixed: Add v3.1 to test-matrix
Might be related to #177
Of course - one could use `WithErrorCallback` to override it with a custom format - but that might not be doable or be favourable for 'users'.
Basic callback for reference: ```go func createWAF() coraza.WAF { waf, err := coraza.NewWAF( coraza.NewWAFConfig(). WithErrorCallback(logErrorJSON), ) if err != nil { log.Fatal(err) } return waf } type errorLogJSON struct {...
BTW: Looks like the ocsf-auditlog does something similar - https://github.com/corazawaf/coraza/blob/main/internal/auditlog/formats_ocsf.go#L84
Thank you for responding. I appreciate it! I've actually tested using the SecAuditLogFormat and it works fine for the AuditLogs but does not change the format of the error logs....