You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/12/13 07:03:20 UTC

[GitHub] [apisix] Coderyangg opened a new issue, #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

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

   ### Description
   
   同一个插件配置,在路由中使用可以正常使用,在服务中配置不生效
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.15
   - 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: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347983251

   By the way, Are you config plugin at the router and service at the same time? Or are you forget to add the route to the service?


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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347857670

   Can you tell us what plugin you are using?  And share plugin config detail.


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


[GitHub] [apisix] Coderyangg commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
Coderyangg commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347961663

   > Can you tell us what plugin you are using? And share plugin config detail.
   
   all plugin when i use for route ,it`s working,whlie for service,it`s invalid,now i am using oidc plugin.
   this is my config
   {
     "bearer_only": true,
     "client_id": "xx",
     "client_secret": "xxxx",
     "disable": true,
     "discovery": "https://keycloak.icos.city/realms/dit/.well-known/openid-configuration",
     "realm": "xx",
     "scope": "openid profile"
   }


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


[GitHub] [apisix] Coderyangg commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
Coderyangg commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1348050407

   > Please try to remove this plugin from the router, not just disable it.
   
   ok ,thank you ,it it valid now


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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347975113

   Can you share the config detail like below? 
   1. Route config (with plugin), Service config (without plugin). Output detail.
   2. Route config (without plugin), Service config (with plugin). Output detail.


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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1348008349

   Are you config router and service at the same time, and setting the router plugin with `disable: true`?


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


[GitHub] [apisix] Coderyangg commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
Coderyangg commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347989646

   > By the way, Are you config plugin at the router and service at the same time? Or are you forget to add the route to the service?
   i am sure route in service,when i only use route plugin ,it can work,only use service plugin,the plugin can not work in route


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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347854043

   If you config plugin at service and router. Only config at the router will be used. In other words, the plugin configuration on the route takes precedence over the service. If both routes exist, the plug-in configuration of the route will overwrite them


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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1348026775

   
   If so, please try to remove the plugin from the router, not just disable it.
   
   > Are you config router and service at the same time, and setting the router plugin with `disable: true`?
   
   


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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347870614

   Can you describe in more detail about "not working" for us?


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


[GitHub] [apisix] Coderyangg commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
Coderyangg commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347966900

   > Can you describe in more detail about "not working" for us?
   
   when i use oidc plugin in route,request without authorization,it response 401,but it is useless in service,i can get response without authorization


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


[GitHub] [apisix] Coderyangg closed issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
Coderyangg closed issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效
URL: https://github.com/apache/apisix/issues/8510


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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347851812

   Hello, plugin only enable at ones


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


[GitHub] [apisix] Coderyangg commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
Coderyangg commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347993685

   > Can you share the config detail like below?
   > 
   > 1. Route config (with plugin), Service config (without plugin). Output detail.
   > 2. Route config (without plugin), Service config (with plugin). Output detail.
   
   1.{
     "uri": "/permission/getAccessToken",
     "name": "getAccessToken",
     "methods": [
       "POST"
     ],
     "plugins": {
       "ext-plugin-post-req": {
         "conf": [
           {
             "name": "TokenPluginPre",
             "value": "{\"clientSecret\":\"9rPo4Xf9DGEDvQnlzIrsfgmjW2L1zIe5\",\"redisHost\":\"192.168.0.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakUrl\":\"https://keycloak.icos.city\",\"dbValue\":\"1\"}"
           }
         ],
         "disable": true
       },
       "ext-plugin-post-resp": {
         "conf": [
           {
             "name": "TokenPluginPost",
             "value": "{\"clientSecret\":\"9rPo4Xf9DGEDvQnlzIrsfgmjW2L1zIe5\",\"redisHost\":\"172.31.48.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakUrl\":\"https://keycloak.icos.city\",\"dbValue\":\"1\"}"
           }
         ],
         "disable": true
       },
       "ext-plugin-pre-req": {
         "conf": [
           {
             "name": "TokenPluginPre",
             "value": "{\"clientSecret\":\"9rPo4Xf9DGEDvQnlzIrsfgmjW2L1zIe5\",\"redisHost\":\"192.168.0.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakUrl\":\"https://keycloak.icos.city\",\"dbValue\":\"1\"}"
           }
         ],
         "disable": true
       },
       "openid-connect": {
         "bearer_only": true,
         "client_id": "xx",
         "client_secret": "xx",
         "disable": false,
         "discovery": "https://keycloak.icos.city/realms/dit/.well-known/openid-configuration",
         "realm": "xx",
         "scope": "openid profile"
       },
       "request-id": {
         "disable": true
       }
     },
     "service_id": "434742871157899976",
     "status": 1
   }
   2.
   {
     "name": "permission",
     "upstream": {
       "nodes": [
         {
           "host": "172.31.247.53",
           "port": 8091,
           "weight": 1
         }
       ],
       "timeout": {
         "connect": 6,
         "send": 6,
         "read": 6
       },
       "type": "roundrobin",
       "scheme": "http",
       "pass_host": "pass",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 320
       }
     },
     "plugins": {
       "ext-plugin-post-resp": {
         "conf": [
           {
             "name": "TokenPlugin",
             "value": "{\"clientSecret\": \"grPo4Xf9DGEDQnlzIrsfgmjw2L1zIe5\",\"redisHost\":\"172.19.64.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakurl\":\"https://keycloak.icoscity\",\"dbvalue\":\"1\"}"
           }
         ],
         "disable": true
       },
       "ext-plugin-pre-req": {
         "conf": [
           {
             "name": "TokenPluginPre",
             "value": "{\"clientSecret\":\"xx\",\"redisHost\":\"192.168.0.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakUrl\":\"https://keycloak.icos.city\",\"dbValue\":\"1\"}"
           }
         ],
         "disable": true
       },
       "openid-connect": {
         "bearer_only": true,
         "client_id": "xx",
         "client_secret": "xx",
         "disable": false,
         "discovery": "https://keycloak.icos.city/realms/dit/.well-known/openid-configuration",
         "realm": "xx",
         "scope": "openid profile"
       },
       "request-id": {
         "disable": false
       }
     }
   }


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


[GitHub] [apisix] Coderyangg commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
Coderyangg commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1348038046

   > Are you config router and service at the same time, and setting the router plugin with `disable: true`?
   
   no,i just display the config,while i use it,it is not config the same time
   


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


[GitHub] [apisix] mscb402 commented on issue #8510: help request: 在apisix-dashboard中,同样的插件配置,对路由使用插件生效,对服务使用插件不生效

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1348040950

   Please try to remove this plugin from the router, not just disable it.


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