Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need support for HeaderFilter and BodyFilter phases #197

Closed
0angelic0 opened this issue Apr 2, 2024 · 3 comments
Closed

Need support for HeaderFilter and BodyFilter phases #197

0angelic0 opened this issue Apr 2, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@0angelic0
Copy link

Need support for HeaderFilter and BodyFilter phases.

Since I use serverless plugin (AWS Lambda) and the plugin's Response phase is not called. But from a lua plugin header_filter and body_filter will be called. So, I need go plugin to support HeaderFilter and BodyFilter phases as well.

Thank you.

@jschmid1
Copy link

jschmid1 commented Apr 8, 2024

pinging @gszr and @StarlightIbuki for effort estimation and initial assessment

@gszr
Copy link
Member

gszr commented Apr 9, 2024

Hi @0angelic0,

Thanks for opening this issue and welcome to the Kong community.

The header_filter and body_filter phases do not support the socket API Kong uses to communicate with the pluginserver; this is a known limitation, by design.

The goal of the Go PDK is not to replace the Lua PDK entirely, but to allow you to tap into the Go ecosystem when there isn't a Lua equivalent library available; therefore, we recommend you to write your plugin in Lua if it's paramount to use the header and body filters.

We have a planned task to improve our docs and make this (and other) limitations clearer.

As always, happy to answer questions. For now, I will leave this issue open.

Happy Konging! 🦍

@gszr gszr added the enhancement New feature or request label Apr 9, 2024
@jschmid1
Copy link

Answered, closing.

@jschmid1 jschmid1 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants