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

   ### Current Behavior
   
   APISIX can start successfully when plugins are not enabled in the 
`config.yaml` file but are used in Route/Service resources. However, the 
plugins will not take effect.
   
   
   <img width="2704" height="732" alt="Image" 
src="https://github.com/user-attachments/assets/dd11dad4-7d05-427a-b3c3-051f9103c123";
 />
   
   <img width="2840" height="926" alt="Image" 
src="https://github.com/user-attachments/assets/e5379076-05fc-4f5b-a46e-b79a6f591cf5";
 />
   
   ### Expected Behavior
   
   1. If a plugin is not enabled in `config.yaml`, an error should be 
shown/thrown when that plugin is used in resources such as Routes or Services. 
   2. Whether or not to allow APISIX to start should be discussed.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Run APISIX in Standalone mode 
(https://docs.api7.ai/apisix/production/deployment-modes#standalone-mode)
   2. Use Standalone File-Driven mode
   3. Remove/Disable `key-auth` plugin (as an example)
   4. Enable `key-auth` plugin in `apisix.yaml` file
   
   ```yaml
   routes:
   -
     uri: /hello
     plugins:
       key-auth:
     upstream:
       nodes:
         "10.244.1.5:1980": 1
       type: roundrobin
   #END
   ```
   
   5. Start APISIX successfully
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.13


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