gaoxingliang opened a new issue, #8857:
URL: https://github.com/apache/apisix/issues/8857

   ### Current Behavior
   
   The problem is when the basic-auth is already disabled for a route, it still 
needs authorization.
   Reproduce steps:
   1. create a route route-a without basic-auth plugin.
   2. create a consumer with basic-auth plugin.
   3. enable basic auth for route-a.
   4. do some curl test for route-a
   5. disable basic auth for route-a in apisix-dashboard.
   6. Try step4 again. it shows we still need authorization.
   
   I checked the json conf:
   ```
   "plugins": {
       "basic-auth": {
         "disable": true
       },
   ```
   I worked around by removing whole `basic-auth` in the `plugins` part.
   
    
   
   ### Expected Behavior
   
   The disabled plugin should not be enable.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. See above
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.1.0
   - 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`):
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to