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 2021/09/08 08:29:38 UTC

[GitHub] [apisix] wjmmjr opened a new issue #5015: plugin-interceptors 不生效

wjmmjr opened a new issue #5015:
URL: https://github.com/apache/apisix/issues/5015


   ### Issue description
   
   根据apisix文档设置plugin-interceptors不生效
   文档链接:https://www.bookstack.cn/read/apisix-2.7-zh/plugin-interceptors.md#eidwhu
   **错误如下:**
   开启ip-restriction全局插件情况下:
   ![cd8d01eac27d1f8b799c6a602d0ff63](https://user-images.githubusercontent.com/18857921/132473902-395e9324-227f-48f0-803d-b9376f94ddaa.png)
   不开启ip-restriction全局插件情况下:
   ![image](https://user-images.githubusercontent.com/18857921/132474127-6fb9b789-1086-4ae1-9ce4-0371a4ea283d.png)
   当前地址没问题,是可用的:
   ![44374807bb9c9489a0d0cb662a643a7](https://user-images.githubusercontent.com/18857921/132474284-1cd8bfee-7e3c-4f56-a435-563a4a69f879.png)
   那如何修改能解决问题?
   
   ### Environment
   
   Environment:K8S
   ![image](https://user-images.githubusercontent.com/18857921/132474562-fd4d4c93-c3fb-4c2c-8c3d-61586751762d.png)
   


-- 
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] tokers commented on issue #5015: plugin-interceptors does not work

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


   > the CIDR in whitelist check the IP of client, not the IP of APISIX, so your example is invalid.
   > 
   > if you deploy APISIX in k8s, I think the client ip that APISIX sees is the ip of the k8s gateway?
   > 
   > similar as #4485, #4767
   
   It depends on where the k8s cluster deploying and where the user sending the request.


-- 
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] spacewander commented on issue #5015: plugin-interceptors does not work

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


   Closed as lack of response. Feel free to reopen it if need.


-- 
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] spacewander closed issue #5015: plugin-interceptors does not work

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #5015:
URL: https://github.com/apache/apisix/issues/5015


   


-- 
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] Zheaoli commented on issue #5015: plugin-interceptors 不生效

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


   Would you mind to tell us with version of APISIX you use?


-- 
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] tzssangglass commented on issue #5015: plugin-interceptors does not work

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


   the CIDR in whitelist check the IP of client, not the IP of APISIX, so your example is invalid.
   
   if you deploy APISIX in k8s, I think the client ip that APISIX sees is the ip of the k8s gateway?
   
   similar as https://github.com/apache/apisix/issues/4485, https://github.com/apache/apisix/issues/4767


-- 
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] Zheaoli edited a comment on issue #5015: plugin-interceptors 不生效

Posted by GitBox <gi...@apache.org>.
Zheaoli edited a comment on issue #5015:
URL: https://github.com/apache/apisix/issues/5015#issuecomment-915069200


   Would you mind telling us with the version of APISIX you use?


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