You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/third-party-addons/modsecurity.md
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,97 @@ The default `Serial` value in SecAuditLogType can impact performance.
14
14
The OWASP ModSecurity Core Rule Set (CRS) is a set of generic attack detection rules for use with ModSecurity or compatible web application firewalls. The CRS aims to protect web applications from a wide range of attacks, including the OWASP Top Ten, with a minimum of false alerts.
15
15
The directory `/etc/nginx/owasp-modsecurity-crs` contains the [OWASP ModSecurity Core Rule Set repository](https://github.com/coreruleset/coreruleset).
16
16
Using `enable-owasp-modsecurity-crs: "true"` we enable the use of the rules.
17
+
18
+
## Supported annotations
19
+
20
+
For more info on supported annotations, please see [annotations/#modsecurity](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#modsecurity)
21
+
22
+
## Example of using ModSecurity with plugins via the helm chart
23
+
24
+
Suppose you have a ConfigMap that contains the contents of the [nextcloud-rule-exclusions plugin](https://github.com/coreruleset/nextcloud-rule-exclusions-plugin/blob/main/plugins/nextcloud-rule-exclusions-before.conf) like this:
25
+
26
+
```yaml
27
+
apiVersion: v1
28
+
kind: ConfigMap
29
+
metadata:
30
+
name: modsecurity-plugins
31
+
data:
32
+
empty-after.conf: |
33
+
# no data
34
+
empty-before.conf: |
35
+
# no data
36
+
empty-config.conf: |
37
+
# no data
38
+
nextcloud-rule-exclusions-before.conf:
39
+
# this is just a snippet
40
+
# find the full file at https://github.com/coreruleset/nextcloud-rule-exclusions-plugin
41
+
#
42
+
# [ File Manager ]
43
+
# The web interface uploads files, and interacts with the user.
0 commit comments