Closed dcherniv closed 4 years ago
@dcherniv I am awaiting feedback from the modsecurity project https://github.com/SpiderLabs/ModSecurity-nginx/issues/183 Not there issue but the same conditions.
@aledbf ah that makes sense. This issue is strange in that i can in fact override some variables but not the others. For example the following annotations does bump the body limit:
nginx.ingress.kubernetes.io/modsecurity-snippet: |
SecRequestBodyLimit 20000000
[...]
SecRequestBodyAccess Off in annotations has no effect however. Just thought i'd add my findings here, in case someone else bumps into the same issue.
@dcherniv at this point, because all the issues I am considering to extract the mod-security feature to a sidecar. This is the start of the POC https://github.com/aledbf/blockade
@aledbf bummer. we just finished switching from lua-resty WAF to modsecurity :) But happy to see there's work being done on WAF at ingress controller level still. Let me know if you need help testing the new project.
@dcherniv just to be clear, this is just a POC, and if we do something, no change to what you have now for ModSecurity would be required. That is a deal-breaker for me. The only change should be an additional container in the deployment/daemonset definition
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
@fejta-bot: Closing this issue.
NGINX Ingress controller version: 0.31.1
Kubernetes version (use
kubectl version
): 1.15.x EKSEnvironment: AWS
What happened: modsecurity denies request that are larger than default body size which is 13MB
Even with the following annotation in place on the ingress resource:
What you expected to happen: Request body processing to be disabled on the ingress resource.
How to reproduce it: Enable modsecurity with the following annotation and try to post a large file. /kind bug