Skip to content

Reliability of log checks with nginx+libmodsecurity3 #501

@Sebitosh

Description

@Sebitosh

Hello,

This is a question I had while working on owasp-modsecurity/MRTS#24 .

While working on a libmodsecurity3 test infrastructure with go-ftw, I noticed that across runs on my local machine (Ubuntu, 6 cores @ 2.375GHz and a NVMe ssd) results could be unreliable due to marker logs arriving before the expected ids because of processing by two different threads, similarly to #473 .

I found two ways to mitigate this: 1) reduce logging to a minimum 2) use go-ftw's rate limiter, but it slows execution.

I was wondering if this is a known issue with nginx when requests arrive too fast/logging is to slow ? And if so, how is it avoided in CRS's CI/CD pipeline ? Is there any particular configuration in the nginx container used in the pipeline aimed at avoiding this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions