kayx23 commented on issue #2044:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/2044#issuecomment-1813803914

   The CRS should come embedded with the wasm module and you should not need to 
worry about the path.
   
   The path is internal, [owasp_crs gets mapped to 
crs](https://github.com/corazawaf/coraza-proxy-wasm/blob/c62a359c29d736892ca09527a353410b13963c9e/wasmplugin/fs.go#L31)
 so `owasp_crs/*.conf` correspond to these files that end with `.conf`: 
https://github.com/corazawaf/coraza-proxy-wasm/tree/main/wasmplugin/rules/crs
   
   So I'd suggest you try this:
   
   ```
     "plugins": {
       "coraza-filter": {
         "conf": {
           "directives_map": {
             "default": [
               "SecDebugLogLevel 9",
               "SecRuleEngine On",
               "Include @crs-setup-demo-conf",
               "Include @owasp_crs/*.conf"
             ]
           },
           "default_directives": "default"
         }
       }
     }
   ```


-- 
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]

Reply via email to