We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: