Skip to content

Add an Option to Skip Body Inspections #343

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

Open
thekief opened this issue Feb 13, 2025 · 1 comment
Open

Add an Option to Skip Body Inspections #343

thekief opened this issue Feb 13, 2025 · 1 comment

Comments

@thekief
Copy link

thekief commented Feb 13, 2025

I have a rather rare use-case, where sometimes large POST requests are made to ModSecurity protected endpoints. The sent data itself is encrypted and cannot be inspected. As ModSecurity buffers the whole requests, this leads to quite a big memory consumption, subsequently the container is killed, if it consumes too much memory.

To address this issue, we developed a patch that allows on a per-location basis to skip the body inspection, while keeping the rest of the ModSecurity checks. I'd like to open a pull request to evaluate, if that patch fits into the official source.

@airween
Copy link
Member

airween commented Feb 17, 2025

Hi @thekief,

if there isn't any useful solution, then we can try to check the PR.

What if you put a location in Nginx's config where you turn off modsecurity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants