-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add Snippet for ModSecurity #3400
Conversation
Waiting on owasp-modsecurity/ModSecurity-nginx#110 |
8cc4df0
to
bb94404
Compare
@diazjf I am checking owasp-modsecurity/ModSecurity-nginx#110 (comment) in the build of the image |
bb94404
to
e11bbc8
Compare
Still occurring after rebase. ^ @aledbf |
@diazjf I just posted a comment in the modsecurity issue |
@diazjf can you run the e2e tests locally adding the flag --v=2 here https://github.com/kubernetes/ingress-nginx/blob/master/test/manifests/ingress-controller/mandatory.yaml#L211 |
@aledbf the above is when I cat a failed nginx.conf from the test. |
@diazjf I found the issue/s:
Because all that, you need to check the URL is HTTPS and the resource exist while parsing the annotation. |
e11bbc8
to
fbe4408
Compare
@aledbf would it make sense for me to send a request to the URL to make sure it exists? |
/hold |
566f5e7
to
bc9ea4b
Compare
bc9ea4b
to
4906573
Compare
4906573
to
1a9a340
Compare
/hold cancel |
@aledbf adding the RemoteRules feature doesn't seem to be feasible at the moment. There arn't any(that I've seen) guides on how to configure your own server. I have changed the PR to just include the snippet. Remote Rules can be added that way in case anyone needs to use them. |
/retest |
/test all |
Allows for the configuration of Mod Security rules via a Snippet.
1a9a340
to
95b3042
Compare
/assign @aledbf |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, diazjf The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@diazjf thanks! |
Adds a custom snippet to configure modsecurity.