apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

test: need to do custom check for plugins

Open nic-chen opened this issue 6 years ago • 4 comments

Some plugins directly use special codes to verify parameters instead of JSONSchema verification. We need to use JSONSchema verification in APISIX instead, so that neither the FE nor the Manager API need to be modified, and subsequent maintenance is more convenient.

Example: https://github.com/apache/apisix/blob/master/apisix/plugins/jwt-auth.lua#L109-L124

here is the list:

  • [ ] jwt-auth
  • [ ] cors
  • [ ] ip-restriction
  • [ ] openid-connect
  • [ ] proxy-cache (need to read conf/config.yaml in APISIX to check cache zone )
  • [ ] proxy-rewrite
  • [ ] redirect
  • [ ] request-validation
  • [ ] response-rewrite
  • [ ] uri-blocker (regular expression in Lua and ngx.re)

Dashboard need to do is make E2E test to confirm it works well after APISIX update.

related issue: #856

nic-chen avatar Dec 02 '20 01:12 nic-chen

@nic-chen is this a bug? I think this issue should be test

membphis avatar Dec 02 '20 01:12 membphis

@nic-chen is this a bug? I think this issue should be test

sure. we need to fix jwt-auth first, the others could be later.

nic-chen avatar Dec 02 '20 01:12 nic-chen

I don’t quite understand your issue, can you provide a more detailed explanation? @nic-chen

idbeta avatar Dec 04 '20 02:12 idbeta

fixing in APISIX: https://github.com/apache/apisix/pull/3021

nic-chen avatar Dec 14 '20 06:12 nic-chen