Skip to content

Plugins from plugin_config should not override the plugins in the route #7545

Description

@spacewander

Current Behavior

Plugins from plugin_config override the plugins in the route.

Expected Behavior

The behavior should be the same as the plugins from services, which do not take effect when there are plugins with the same name in the route.

Let's make the behavior consistent in the V3.

Error Logs

No response

Steps to Reproduce

See

for name, value in pairs(plugin_config.value.plugins) do
route_conf.value.plugins[name] = value
end

Environment

  • APISIX version (run apisix version): master
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions