You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "githubxubin (via GitHub)" <gi...@apache.org> on 2024/01/22 06:46:11 UTC

[I] How does apisix integrate coraza-proxy-wasm? [apisix]

githubxubin opened a new issue, #10859:
URL: https://github.com/apache/apisix/issues/10859

   ### Description
   
   Currently, I need to use apisix's sql injection and xss capabilities, I tried to integrate coraza-proxy-wasm, but failed, 
   here is my operation and configuration!
   referer link:https://docs.api7.ai/apisix/how-to-guide/security/waf/integrate-with-coraza 
   step 1:
   All configurations are configured according to the document
   step 2:
   I failed to add a route on the dashboard page.
   ```
   {
       "uri": "/test/*",
       "name": "coraza测试",
       "groupId": "1",
       "openId": "",
       "priority": 1,
       "methods": [
           "GET",
           "POST",
           "PUT",
           "DELETE",
           "PATCH",
           "HEAD",
           "OPTIONS"
       ],
       "plugins": {
           "coraza-filter": {
               "conf": {
                   "directives_map": {
                       "default": [
                           "SecDebugLogLevel 9",
                           "SecRuleEngine On",
                           "Include @crs-setup-conf",
                           "Include @owasp_crs/*.conf"
                       ]
                   },
                   "default_directives": "default"
               }
           }
       },
       "upstream": {
           "nodes": [
               {
                   "host": "10.210.21.105",
                   "port": 1001,
                   "weight": 1
               }
           ],
           "retries": 0,
           "timeout": {
               "connect": 6,
               "send": 6,
               "read": 6
           },
           "type": "roundrobin",
           "scheme": "http",
           "discovery_args": {
               "group_name": "",
               "namespace_id": ""
           },
           "pass_host": "pass",
           "keepalive_pool": {
               "idle_timeout": 60,
               "requests": 1000,
               "size": 320
           }
       },
       "status": 1
   }
   ```
   Save failed!
   the error is:
   ![image](https://github.com/apache/apisix/assets/39228009/ecec07ac-2103-4528-b8b9-c65bb4033241)
   Whether it is a version problem:
   apisix version: 3.2/release
   dashboard version:3.0
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):3.2 apisix
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "githubxubin (via GitHub)" <gi...@apache.org>.
githubxubin commented on issue #10859:
URL: https://github.com/apache/apisix/issues/10859#issuecomment-1905165016

   > > apisix version: 3.2
   > 
   > Might be the version. I don't recall coraza was available in 3.2. If you can afford to upgrade, try 3.6.
   
   It costs too much to upgrade the version, could you please help confirm it?tks
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek closed issue #10859: How does apisix integrate coraza-proxy-wasm?
URL: https://github.com/apache/apisix/issues/10859


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10859:
URL: https://github.com/apache/apisix/issues/10859#issuecomment-1905172071

   @githubxubin `>=3.6` confirmed.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "githubxubin (via GitHub)" <gi...@apache.org>.
githubxubin commented on issue #10859:
URL: https://github.com/apache/apisix/issues/10859#issuecomment-1903598293

   > Did you setup the wasm and it's config in the yaml correctly?
   
   Yes the configuration is correct, here is my config configuration, and wasm in the container
   
   config:
   ```
   wasm:
     plugins:
       - name: coraza-filter
         priority: 7999
         file: /usr/local/bin/coraza-proxy-wasm.wasm
   ```
   Inside the apisix container:
   <img width="515" alt="image" src="https://github.com/apache/apisix/assets/39228009/37d8df12-aa37-4c3b-aa86-c4c49e758cc1">
   
   My version 3.2/release does support this feature?tks
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "githubxubin (via GitHub)" <gi...@apache.org>.
githubxubin commented on issue #10859:
URL: https://github.com/apache/apisix/issues/10859#issuecomment-1903501484

   @shreemaan-abhishek


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "sheharyaar (via GitHub)" <gi...@apache.org>.
sheharyaar commented on issue #10859:
URL: https://github.com/apache/apisix/issues/10859#issuecomment-1903768222

   apisix is running in the same container, right ?
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "githubxubin (via GitHub)" <gi...@apache.org>.
githubxubin commented on issue #10859:
URL: https://github.com/apache/apisix/issues/10859#issuecomment-1905222039

   > @githubxubin `>=3.6` confirmed.
   
   okey!


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10859:
URL: https://github.com/apache/apisix/issues/10859#issuecomment-1904982089

   > apisix version: 3.2
   
   Might be the version. I don't recall coraza was available in 3.2. If you can afford to upgrade, try 3.6.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] How does apisix integrate coraza-proxy-wasm? [apisix]

Posted by "sheharyaar (via GitHub)" <gi...@apache.org>.
sheharyaar commented on issue #10859:
URL: https://github.com/apache/apisix/issues/10859#issuecomment-1903531064

   Did you setup the wasm and it's config in the yaml correctly?
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org