You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/16 11:30:23 UTC

[GitHub] [apisix] iSuperCoder opened a new issue #5534: request help: 如何让自定义Java插件在HMAC认证插件之前运行?

iSuperCoder opened a new issue #5534:
URL: https://github.com/apache/apisix/issues/5534


   ### Issue description
   
   在ext-plugin-pre-req中配置了一个java插件,实际执行时发现先于hmac-auth插件运行。如何让ext-plugin-pre-req中的插件首先执行?
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):2.10.1
   - OS (cmd: `uname -a`):GNU/Linux
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):openresty/1.19.9.1
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):3.4.0
   - apisix-dashboard version, if have: 2.9.0
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): 0.1.0
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #5534: request help: 如何让自定义Java插件在HMAC认证插件之前运行?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #5534:
URL: https://github.com/apache/apisix/issues/5534#issuecomment-970204759


   Please use English in the public channel, thx.
   
   the order of plugins exec is defined by priority in plugin's code, see: https://github.com/apache/apisix/blob/master/apisix/plugins/ext-plugin-pre-req.lua#L24 and https://github.com/apache/apisix/blob/2c12b3695302f580a1498333aaafb68da26a3096/conf/config-default.yaml#L302-L358
   
   the higher the priority number, the earlier the order of execution.
   
   
   
   > 实际执行时发现先于hmac-auth插件运行。如何让ext-plugin-pre-req中的插件首先执行?
   
   contradictory?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #5534: request help: How to get custom Java plugins to run before HMAC certified plugins?

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5534:
URL: https://github.com/apache/apisix/issues/5534#issuecomment-976509621


   Consider solved. Feel free to reopen it if need.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #5534: request help: How to get custom Java plugins to run before HMAC certified plugins?

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #5534:
URL: https://github.com/apache/apisix/issues/5534


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #5534: request help: How to get custom Java plugins to run before HMAC certified plugins?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #5534:
URL: https://github.com/apache/apisix/issues/5534#issuecomment-970205748


   AFAIK, `ext-plugin-pre-req` is run before `hmac-auth`.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org