Skip to content
New issue

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

bug: missing JSONSchema validation for plugin attributes #2834

Closed
membphis opened this issue Nov 24, 2020 · 0 comments · Fixed by #2856
Closed

bug: missing JSONSchema validation for plugin attributes #2834

membphis opened this issue Nov 24, 2020 · 0 comments · Fixed by #2856
Assignees
Labels
bug Something isn't working

Comments

@membphis
Copy link
Member

membphis commented Nov 24, 2020

Issue description

Currently, only Route/Service self is checked. The bound Plugins were not be checked now.
That is wrong.

https://github.com/apache/apisix/blob/master/apisix/http/router/radixtree_uri.lua#L118

In this way, when the data plane is running the plug-in, it exits abnormally due to illegal plug-in parameters.

  1. use JSON schema to check the plugin, confirm the input parameters are valid.
  2. set the default value of the plug-in through the JSON schema check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants