-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: support to use plugin_config_id
for consumer
object
#5800
Comments
In the calling phase of the ``http_access_phase```` method, the relevant upstream id will be obtained to split the sent data. init.lua
To understand how router.lua is called based on upstream_id, I traced the following code.
To sum up, I think that consumer.lua should do some attribute extraction before calling the I would like to know suppose now that I want to configure a set of admin api as shown below, how should I do the relevant verification on the consumer side to complete the connectivity test of calling
|
Hi @complone , from your trace path, I think you have missed the key point, APISIX merge the consumer's plugins and route's plugins is here: Lines 491 to 513 in 4afc8a7
|
I understand that I should define the relevant plugin_config_id in shcema_def.lua
consumer.lua
I will start testing the relevant request processing link in the near future |
Issue description
Now, the
router
object supports theplugin_config_id
, here is the doc link: https://github.com/apache/apisix/blob/master/docs/en/latest/admin-api.md#routeAnd I think we need to support
plugin_config_id
forconsumer
object.What do you think?
Environment
The text was updated successfully, but these errors were encountered: