add scope to plugin attributes #5105
tzssangglass
started this conversation in
Ideas
Replies: 1 comment
-
related to: apache/apisix-dashboard#2110 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now we have a lot of plugins which have different scopes. We do not maintain a correspondence between plugins and scopes.So users may be confused as to why a plugin cannot be enabled on route.
Here are some examples:
batch-requests
cannot be used on routesjwt-auth
cannot be used in routing alone, must be combined with consumererror-log-logger
can only be used at instance levelSo I want to add scope attributes to all existing plugins to indicate at what level they can be used.
The scope enums like
route
,service
,consumer
,global
.Here are some clarifications
the scope of a plugin can have multiple values, sucn as
scope = { "route", "global" }
global
is the scope for plugins and the existingglobal_rule
is the concept for APISIX, they do not contradict each other. For example, if the scope attribute of a plugin isglobal
, then the plugin can only be configured inglobal_rule
.What are your options? @spacewander @liuxiran @membphis @juzhiyuan
The discussion here is only supplementary and I will start this discussion on the mailing list later.
Beta Was this translation helpful? Give feedback.
All reactions