Add support for extending admin api in go plugins #7298
Replies: 4 comments
-
Can I ask, why you would want to do this? Admin API endpoint functionality generally revolves around talking to the datastore, for which there is already extensive functionality in Kong via Lua. |
Beta Was this translation helpful? Give feedback.
-
You develop a complex functionality in go that it's not easy to do in LUA, normally there are many libraries in go but LUA lacks of this... |
Beta Was this translation helpful? Give feedback.
-
Yes I understand what you're saying. :) Can you provide specific examples of where using Go to extend the Admin API would be useful? |
Beta Was this translation helpful? Give feedback.
-
I have implemented a go plugin to decrypt JWE tokens. There is not any library in LUA for doing this, but in go you find a go-jose implementation that makes easy to decrypt the tokens. |
Beta Was this translation helpful? Give feedback.
-
Summary
It would be nice that you can implement an extension to the administration api in go, similarly as you may do with a LUA plugin (e.g. defining an api.go and implementing a custom interface).
Beta Was this translation helpful? Give feedback.
All reactions