You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "cruftex (via GitHub)" <gi...@apache.org> on 2025/05/04 04:50:25 UTC

[I] bug: Apisix should reject configurations with missing plugin references [apisix]

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

   ### Current Behavior
   
   If a plugin is missing, the section simply is ignored.
   
   
   ### Expected Behavior
   
   Apisix should refuse operation for that specific route, since the configuration is not intact
   
   This is a possible security pitfall. In the example below, Apisix simply passed through traffic without user authentication.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   apisix docker image version 3.12.0-debian standalone mode (configuration via yaml file)
   
   route like:
   
   ````
   routes:
     - id: 1
       hosts:
         - my.domain.net
       uri: /*
       plugins:
         openid-connect:
           client_id: ...
           client_secret: ....
           discovery: ....
           scope: openid email
           bearer_only: false
           realm: ....
       upstream:
         type: roundrobin
         nodes:
           "httpbin.org": 1
   ````
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.12.0-debian
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

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


Re: [I] bug: Apisix should reject configurations with missing plugins in standalone mode [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12189:
URL: https://github.com/apache/apisix/issues/12189#issuecomment-2857420463

   Verify with the latest version that this problem does exist.


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] bug: Apisix should reject configurations with missing plugins [apisix]

Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #12189:
URL: https://github.com/apache/apisix/issues/12189#issuecomment-2853956497

   Weird that the configuration succeeded in standalone mode... 🤔  I remember if I try to configure a route with a plugin that's not enabled in the `config.yaml` using **Admin API** in traditional mode, the route creation will fail with an error msg along the time of xxx plugin not found.


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] bug: Apisix should reject configurations with missing plugins in standalone mode [apisix]

Posted by "moonming (via GitHub)" <gi...@apache.org>.
moonming commented on issue #12189:
URL: https://github.com/apache/apisix/issues/12189#issuecomment-2865797714

   @cruftex welcome to create a PR to fix this issue.


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] bug: Apisix should reject configurations with missing plugins [apisix]

Posted by "cruftex (via GitHub)" <gi...@apache.org>.
cruftex commented on issue #12189:
URL: https://github.com/apache/apisix/issues/12189#issuecomment-2853356497

   @Revolyssup Oops. I was a bit unspecific. I had the plugin not enabled, so the configured plugin was missing. I updated the initial report and title.
   


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] bug: Apisix should reject configurations with missing plugins [apisix]

Posted by "cruftex (via GitHub)" <gi...@apache.org>.
cruftex commented on issue #12189:
URL: https://github.com/apache/apisix/issues/12189#issuecomment-2856728008

   @kayx23 Thanks for the hint! So maybe this needs to be enforced in standalone mode. I'll add stand alone to the title.


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] bug: Apisix should reject configurations with missing plugin references [apisix]

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #12189:
URL: https://github.com/apache/apisix/issues/12189#issuecomment-2850071785

   @cruftex In the example you gave, I can see a configured plugin. What do you mean by "missing plugin references"?


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] bug: Apisix should reject configurations with missing plugins in standalone mode [apisix]

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek closed issue #12189: bug: Apisix should reject configurations with missing plugins in standalone mode
URL: https://github.com/apache/apisix/issues/12189


-- 
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: notifications-unsubscribe@apisix.apache.org

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