lan11 commented on issue #2903:
URL: 
https://github.com/apache/apisix-dashboard/issues/2903#issuecomment-1868763381

   
在项目/usr/local/apisix-dashboard/conf/schema.json中plugins节点加入chaitin-waf配置信息,可以解决该问题,添加内容如下:
   "chaitin-waf": {
                        "priority": 2700,
                        "metadata_schema": {
                                "properties": {
                                        "nodes": {
                                                "items": {
                                                        "properties": {
                                                                "host": {
                                                                        
"pattern": "^\\*?[0-9a-zA-Z-._\\[\\]:]+$",
                                                                        "type": 
"string"
                                                                },
                                                                "port": {
                                                                        
"minimum": 1,
                                                                        
"default": 80,
                                                                        "type": 
"integer"
                                                                }
                                                        },
                                                        "required": ["host"],
                                                        "type": "object"
                                                },
                                                "minItems": 1,
                                                "type": "array"
                                        },
                                        "config": {
                                                "properties": {
                                                        "req_body_size": {
                                                                "default": 1024,
                                                                "type": 
"integer"
                                                        },
                                                        "read_timeout": {
                                                                "default": 1000,
                                                                "type": 
"integer"
                                                        },
                                                        "send_timeout": {
                                                                "default": 1000,
                                                                "type": 
"integer"
                                                        },
                                                        "keepalive_size": {
                                                                "default": 256,
                                                                "type": 
"integer"
                                                        },
                                                        "keepalive_timeout": {
                                                                "default": 
60000,
                                                                "type": 
"integer"
                                                        },
                                                        "connect_timeout": {
                                                                "default": 1000,
                                                                "type": 
"integer"
                                                        }
                                                },
                                                "default": {},
                                                "type": "object"
                                        }
                                },
                                "required": ["nodes"],
                                "type": "object"
                        },
                        "version": 0.1,
                        "schema": {
                                "properties": {
                                        "_meta": {
                                                "properties": {
                                                        "filter": {
                                                                "type": "array",
                                                                "description": 
"filter determines whether the plugin needs to be executed at runtime"
                                                        },
                                                        "disable": {
                                                                "type": 
"boolean"
                                                        },
                                                        "priority": {
                                                                "type": 
"integer",
                                                                "description": 
"priority of plugins by customized order"
                                                        },
                                                        "error_response": {
                                                                "oneOf": [{
                                                                        "type": 
"string"
                                                                }, {
                                                                        "type": 
"object"
                                                                }]
                                                        }
                                                },
                                                "type": "object"
                                        },
                                        "match": {
                                                "items": {
                                                        "properties": {
                                                                "vars": {
                                                                        "type": 
"array"
                                                                }
                                                        },
                                                        "type": "object"
                                                },
                                                "type": "array"
                                        },
                                        "append_waf_debug_header": {
                                                "default": false,
                                                "type": "boolean"
                                        },
                                        "append_waf_resp_header": {
                                                "default": true,
                                                "type": "boolean"
                                        },
                                        "config": {
                                                "properties": {
                                                        "req_body_size": {
                                                                "type": 
"integer"
                                                        },
                                                        "read_timeout": {
                                                                "type": 
"integer"
                                                        },
                                                        "send_timeout": {
                                                                "type": 
"integer"
                                                        },
                                                        "keepalive_size": {
                                                                "type": 
"integer"
                                                        },
                                                        "keepalive_timeout": {
                                                                "type": 
"integer"
                                                        },
                                                        "connect_timeout": {
                                                                "type": 
"integer"
                                                        }
                                                },
                                                "type": "object"
                                        }
                                },
                                "$comment": "this is a mark for our injected 
plugin schema",
                                "type": "object"
                        }
                },
   


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