Open FionJHYang opened 4 months ago
Enable plugin to global_rules in 'Plugin List', dashboard will removed the _meta.filter setting when insert the plugin to ETCD.
if I want insert the request-validation plugin like below setting: { "_meta": { "disable": true, "filter": [ [ "host", "~=", "test.com.tw" ] ] }, "header_schema": { "properties": { "Origin": { "type": "string" } }, "required": [ "Origin" ], "type": "object" } }
{ "_meta": { "disable": true, "filter": [ [ "host", "~=", "test.com.tw" ] ] }, "header_schema": { "properties": { "Origin": { "type": "string" } }, "required": [ "Origin" ], "type": "object" } }
After click submit button, the data in ETCD will remove filter section like below: { "_meta": { "disable": true }, "header_schema": { "properties": { "Origin": { "type": "string" } }, "required": [ "Origin" ], "type": "object" } }
{ "_meta": { "disable": true }, "header_schema": { "properties": { "Origin": { "type": "string" } }, "required": [ "Origin" ], "type": "object" } }
The data in ETCD should look like this: { "_meta": { "disable": true, "filter": [ [ "host", "~=", "test.com.tw" ] ] }, "header_schema": { "properties": { "Origin": { "type": "string" } }, "required": [ "Origin" ], "type": "object" } }
No response
apisix version
uname -a
nginx -V
openresty -V
etcd --version
Issue description
Enable plugin to global_rules in 'Plugin List', dashboard will removed the _meta.filter setting when insert the plugin to ETCD.
if I want insert the request-validation plugin like below setting:
{ "_meta": { "disable": true, "filter": [ [ "host", "~=", "test.com.tw" ] ] }, "header_schema": { "properties": { "Origin": { "type": "string" } }, "required": [ "Origin" ], "type": "object" } }
After click submit button, the data in ETCD will remove filter section like below:
{ "_meta": { "disable": true }, "header_schema": { "properties": { "Origin": { "type": "string" } }, "required": [ "Origin" ], "type": "object" } }
Expected behavior
The data in ETCD should look like this:
{ "_meta": { "disable": true, "filter": [ [ "host", "~=", "test.com.tw" ] ] }, "header_schema": { "properties": { "Origin": { "type": "string" } }, "required": [ "Origin" ], "type": "object" } }
How to Reproduce
Screenshots
No response
Environment
apisix version
): 3.8.0uname -a
):nginx -V
oropenresty -V
):etcd --version
): 3.5.10Additional context
No response