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/01/07 15:21:32 UTC

[GitHub] [apisix] leyuuu opened a new issue #6048: request help: Can I get route ID in ext-plugin-pre-req

leyuuu opened a new issue #6048:
URL: https://github.com/apache/apisix/issues/6048


   ### Issue description
   
   ![image](https://user-images.githubusercontent.com/50611440/148559922-45a1c0ca-148d-4e4e-8aa7-ba9a88f20876.png)
   
   Or can the `route id` only be accessed by build-in plugin with `ctx`?<sup>[Example](https://github.com/apache/apisix/blob/ef04e067c8044b98b261fd51149d9e8503b84d8a/apisix/utils/log-util.lua#L83)</sup>
   
   Any help is appreciated.
   
   ### Environment
   
   - apisix version 2.10.2
   


-- 
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 #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   +1


-- 
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] membphis commented on issue #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   @leyuuu I think this is a meaningful feature, if you need it, we can discuss how to implement it.
   
   pls feel free to reopen this issue if you 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] tzssangglass commented on issue #6048: request help: How to get Route ID in ext-plugin-pre-req

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


   > /docs/en/latest/apisix-variable.md δΈ­
   
   If you are successful in practice, you can submit a document PR to improve 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



[GitHub] [apisix] leyuuu commented on issue #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   Thanks for your answer.
   In my secondary development project, I want to use java-plugin-runner to do some authorization based on `route id`.


-- 
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] leyuuu closed issue #6048: request help: How to get Route ID in ext-plugin-pre-req

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


   


-- 
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] leyuuu commented on issue #6048: request help: How to get Route ID in ext-plugin-pre-req

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


   I found the solution in this document <https://github.com/apache/apisix/blob/master/docs/en/latest/apisix-variable.md>
   
   All I need to do is add a [`requiredVars`](https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/development.md#the-functions-must-be-implemented-of-filter-execution).
   
   Sorry for the confusion.
   
   
   


-- 
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 #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   No support yet. What is the purpose of getting the route id in the plugin runner?


-- 
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] leyuuu closed issue #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   


-- 
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] leyuuu commented on issue #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   Thanks for your answer.
   In my secondary development project, I want to use java-plugin-runner to do some authorization based on `route id`.


-- 
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 #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   No support yet. What is the purpose of getting the route id in the plugin runner?


-- 
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] leyuuu closed issue #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   


-- 
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] membphis commented on issue #6048: request help: Can I get route ID in ext-plugin-pre-req

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


   @leyuuu I think this is a meaningful feature, if you need it, we can discuss how to implement it.
   
   pls feel free to reopen this issue if you 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] leyuuu edited a comment on issue #6048: request help: How to get Route ID in ext-plugin-pre-req

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


   I found the solution in this document <https://github.com/apache/apisix/blob/master/docs/en/latest/apisix-variable.md>
   
   All I need to do is add a [`requiredVars`](https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/development.md#the-functions-must-be-implemented-of-filter-execution).
   
   Sorry for the misunderstanding.
   
   
   


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