belongwqz opened a new issue #1279:
URL: https://github.com/apache/apisix-dashboard/issues/1279


   # Bug report
   
   ## Describe the bug
   
   当Route中存在被禁用的插件时Service里的同名插件失效。
   
   ## How to Reproduce
   
   1. 创建一个Service SRV-A,启用basic-auth插件
   2. 创建一个Route ROUTE-A,关联上第一部的SRV-A,启用basic-auth插件
   3. 创建一个Consumer,配置basic-auth的账号和密码
   4. 编辑ROUTE-A,将其之前启用额basic-auth禁用
   5. 根据ROUTE-A访问应用时basic-auth失效,因为etcd中对应route配置有{"plugins": 
{"basic-auth":{"disable": true}}}的配置,且Route里的同名插件basic-auth优先级高于其对应的Service插件。
   6. 
手工编辑ROUTE-A在etcd里的配置,将其“basic-auth”删除(不仅是disable),再次据ROUTE-A访问应用则basic-auth生效
   
   ## Expected behavior
   
   根据ROUTE-A访问应用时basic-auth生效
   
   ## Screenshots
   
   Add screenshots to help explain your problem if applicable.
   
   ## System information
   
   - OS: [e.g. macOS, Windows]
   - Browser (if applies) [e.g. Chrome, Safari, Edge]
   - Version: [e.g. 2.0-rc3]
   
   ## Additional context
   
   建议在配置插件时不仅仅将其enable或者disable,还需要提供**删除插件**的功能。
   


----------------------------------------------------------------
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.

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


Reply via email to