You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "pavlenkodev (via GitHub)" <gi...@apache.org> on 2023/11/15 10:19:21 UTC
[I] help request: Is it possible to use plugins inside the serverless-pre/post-function plugin? [apisix]
pavlenkodev opened a new issue, #10497:
URL: https://github.com/apache/apisix/issues/10497
### Description
1. When requesting, I get the Authorization header with an jwttoken in my serverless-post/pre-plugin function and get the `payload.sub`. Can I somehow pass the received `sub` value to the logging parameters of kafka logger?
2. I am also interested in whether I can get `payload.sub` in consumer and use the sub value as a key in the key-auth plugin? Is it possible to configure key-auth inside my `sub `receiving function?
Please tell me if such options are possible? Maybe such functionality can be implemented in some other way
### Environment
- APISIX version (run `3.5-debian`):
- etcd version 3.4.15
- APISIX Dashboard 3.0.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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: Is it possible to use plugins inside the serverless-pre/post-function plugin? [apisix]
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #10497:
URL: https://github.com/apache/apisix/issues/10497#issuecomment-1812458650
you can start from the following example which shows how you can register a custom variable and then use it in proxy-rewrite.
<img width="813" alt="image" src="https://github.com/apache/apisix/assets/61597896/dbc81ca4-6460-463e-a8d0-3d71f985d7ad">
In a similar way you can register a variable and use it in kafka logger's [log format.](https://apisix.apache.org/docs/apisix/plugins/kafka-logger/#metadata)
--
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] help request: Is it possible to use plugins inside the serverless-pre/post-function plugin? [apisix]
Posted by "pavlenkodev (via GitHub)" <gi...@apache.org>.
pavlenkodev closed issue #10497: help request: Is it possible to use plugins inside the serverless-pre/post-function plugin?
URL: https://github.com/apache/apisix/issues/10497
--
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] help request: Is it possible to use plugins inside the serverless-pre/post-function plugin? [apisix]
Posted by "pavlenkodev (via GitHub)" <gi...@apache.org>.
pavlenkodev commented on issue #10497:
URL: https://github.com/apache/apisix/issues/10497#issuecomment-1812517672
I am very grateful to you for the answer! Thank you very much.
--
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