You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m writing a custom go plugin to validate scopes in JWT.
The plugin takes the “allowed scopes” for a given path as plugin configuration.
Although the plugin configuration is loaded correctly the first time, subsequent updates to the config are not picked up. Is there a way to rollout config changes or somehow send a signal to the plugin to reload its config?
Besides deleting the KongPlugin configuration CR has no effect either, so it does seem that the plugin configuration is cached for the duration of the plugin server at least.
In fact looking at instance.go, there is a comment suggesting here that a new instance should be started in case of plugin config changes and the old one stopped. Are there any examples/guides on how to do that? How can I retrieve the current instance status to stop the old instance and how to generate a new instance status to start a new one?
I posted this question in the discuss.konghq.com too, but realise this might be more sensible to have it here instead.
I'm using kong docker image 3.6.0-ubuntu and go-pdk v0.11.0
Here is what the custom plugin configuration looks like.
Hi,
I’m writing a custom go plugin to validate scopes in JWT.
The plugin takes the “allowed scopes” for a given path as plugin configuration.
Although the plugin configuration is loaded correctly the first time, subsequent updates to the config are not picked up. Is there a way to rollout config changes or somehow send a signal to the plugin to reload its config?
Besides deleting the KongPlugin configuration CR has no effect either, so it does seem that the plugin configuration is cached for the duration of the plugin server at least.
In fact looking at
instance.go
, there is a comment suggesting here that a new instance should be started in case of plugin config changes and the old one stopped. Are there any examples/guides on how to do that? How can I retrieve the current instance status to stop the old instance and how to generate a new instance status to start a new one?I posted this question in the discuss.konghq.com too, but realise this might be more sensible to have it here instead.
I'm using kong docker image
3.6.0-ubuntu
and go-pdkv0.11.0
Here is what the custom plugin configuration looks like.
Many thanks
The text was updated successfully, but these errors were encountered: