help request: plugin conflict handling and aprerequisites #7179
-
I have read the priority of the plugin by documents the chapter Global rules does not tell me the conflict handling rules between "global rules" and rules in cosumer/route/service. Exclude global rules, I think apisix handle plugin‘s flow like this(image 001) but when I read the plugins chapter , I'm confused . For Key-Auth plugin
ignore the "502 Bad Gateway" error messages, It looks like that whether the Key-Auth plugin works or not is restricted by the route rule
If it configed then the key-Auth works otherwise it not work. Maybe the operation of a plugin is not only affected by the priority and the above conflict handling rules, some plugins require aprerequisites to run. Because I’m new about lua and openResty, it's hard for me to read the source code, I need help for explaining about : thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@membphis please take a look |
Beta Was this translation helpful? Give feedback.
-
I drew a picture for you to know the detail, and you can get the flow from the source code: https://github.com/apache/apisix/blob/master/apisix/init.lua#L366-L453 |
Beta Was this translation helpful? Give feedback.
I drew a picture for you to know the detail, and you can get the flow from the source code:
https://github.com/apache/apisix/blob/master/apisix/init.lua#L366-L453