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

Re: [I] How does apisix do what it says it does? [apisix]

trungtien commented on issue #10845:
URL: https://github.com/apache/apisix/issues/10845#issuecomment-2159971633

   curl --location --request PUT 'http://x.x.x.x:9180/apisix/admin/routes/' \
   --header 'X-API-KEY: yyyyyyyyyyyyyyyyyyyy' \
   --header 'Content-Type: application/json' \
   --data-raw '{
     "id": "getting-started-waf",
     "uri": "/anything/*",
      "plugins": {
       "coraza-filter": {
         "conf": {
           "directives_map": {
             "default": [
               "SecDebugLogLevel 9",
               "SecRuleEngine On",
               "SecRule REQUEST_URI \"@beginsWith /anything\" \"id:101,phase:1,t:lowercase,deny\""
             ]
           },
           "default_directives": "default"
         }
       }
     },
     "upstream": {
       "type": "roundrobin",
       "nodes": {
         "a.b.c.d:80": 1
       }
     }
   }'
   
   error_msg": "failed to check the configuration of plugin coraza-filter err: property \"conf\" validation failed: wrong type: expected string, got table"
   apisix version 3.2.2: LTS 
   Coraza version: 0.4.0


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