DokiDoki1103 commented on issue #2044:
URL:
https://github.com/apache/apisix-ingress-controller/issues/2044#issuecomment-1815808840
Dear sister, after continuous attempts, I have also successfully configured
a single rule。
```
{
"id": "getting-started-waf",
"uri": "/anything/*",
"plugins": {
"coraza-filter": {
"conf": {
"directives_map": {
"default": [
"SecDebugLogLevel 9",
"SecRuleEngine On",
"Include @crs-setup-demo-conf",
"Include @owasp_crs/REQUEST-901-INITIALIZATION.conf",
"Include
@owasp_crs/REQUEST-913-SCANNER-DETECTION.conf",
"Include
@owasp_crs/REQUEST-949-BLOCKING-EVALUATION.conf"
]
},
"default_directives": "default"
}
}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"httpbin.org:80": 1
}
}
}
```
Configuring rule 913 in this way will succeed
- 901 must be added before this
- 949 must be added after this
That is to say, if one's own rules need to be placed in the middle, they
must ensure consistency in order. I tested that if the order is incorrect, it
will not take effect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]