-
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
Customize ModSecurity to be used in Locations #3309
Conversation
/hold |
f5c4dd4
to
357ffbd
Compare
6637952
to
a8bdbd1
Compare
Seeing the following error. @aledbf when will the fix for #3329 be pushed to master? |
@diazjf we need to wait for owasp-modsecurity/ModSecurity#1941 |
034efec
to
1d94edd
Compare
Fix for ModSecurity Library seen in the following link owasp-modsecurity/ModSecurity#1941 |
cd500ea
to
f85ac12
Compare
images/nginx/rootfs/build.sh
Outdated
@@ -413,14 +413,19 @@ git submodule update | |||
cd "$BUILD_PATH" | |||
git clone -b v3/master --single-branch https://github.com/SpiderLabs/ModSecurity | |||
cd ModSecurity/ | |||
git checkout 973c1f1028429452308bcbce7df8a6283dc59ffe | |||
git checkout 18cdffdbca75e6b9f790f6df2807a32cd805c0a0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aledbf Can the e2e test image obtain the changes in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2cc91cc
to
42f429d
Compare
images/nginx/rootfs/build.sh
Outdated
@@ -421,6 +421,11 @@ sh build.sh | |||
make | |||
make install | |||
|
|||
# Copy over modsecurity.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-------------------------------------------------------------------------------
W1104 04:52:36.972626 9 queue.go:130] requeuing configmap-change, err
-------------------------------------------------------------------------------
Error: exit status 1
2018/11/04 04:52:36 [notice] 1600#1600: ModSecurity-nginx v1.0.0
2018/11/04 04:52:36 [emerg] 1600#1600: "modsecurity_rules_file" directive Rules error. File: /etc/nginx/modsecurity/modsecurity.conf. Line: 236. Column: 17. Failed to locate the unicode map file from: unicode.mapping Looking at: 'unicode.mapping', 'unicode.mapping', '/etc/nginx/modsecurity/unicode.mapping', '/etc/nginx/modsecurity/unicode.mapping'. in /tmp/nginx-cfg215230822:325
nginx: [emerg] "modsecurity_rules_file" directive Rules error. File: /etc/nginx/modsecurity/modsecurity.conf. Line: 236. Column: 17. Failed to locate the unicode map file from: unicode.mapping Looking at: 'unicode.mapping', 'unicode.mapping', '/etc/nginx/modsecurity/unicode.mapping', '/etc/nginx/modsecurity/unicode.mapping'. in /tmp/nginx-cfg215230822:325
nginx: configuration file /tmp/nginx-cfg215230822 test failed
-------------------------------------------------------------------------------
I think we still need these changes in the image.
@aledbf ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
b6fed2f
to
351727e
Compare
351727e
to
0bd9342
Compare
/hold cancel |
/assign @aledbf |
@diazjf besides the on/off comment this lgtm. Please change the value of the annotations and we are ok to merge |
0bd9342
to
c53a9bd
Compare
@aledbf added to your comment and rebased with master. |
a33f49b
to
1934654
Compare
The following annotations will be added: - enable-modsecurity - enable-owasp-core-rules - modsecurity-transaction-id Fixes kubernetes#3167
1934654
to
5195600
Compare
@aledbf ready! |
/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! |
Allows ModSecurity to be configured per location. The
following annotations will be added:
Fixes #3167