-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Custom plugin clashing with a Kong plugin #14144
Comments
Hi @rodolfobrunner , could you give the configuration schema of your custom plugin? Also the reproduce steps would be helpful, like:
Thanks. |
Hello @ProBrian
this was our deck output after the we detected the problem, this was our attempt to reconfigure the our plugin with a matching name :
About your questions:
|
Hi @rodolfobrunner,
Make sure the plugin name also changed to new name redirect-custom in kong.yml, then use deck to try again. Then the service will target to your custom plugin, not the built in redirect plugin. |
close this one, since we have a workaround and will handle the migrations enhancement with other task in future. |
Is there an existing issue for this?
Kong version (
$ kong version
)3.9.0
Current Behavior
We have a custom plugin developed in-house called "redirect" that we have been using for mock responses when a configured header is present.
When Kong introduced the official Redirect plugin, it caused a conflict with our custom plugin. Specifically, the introduction of the official plugin resulted in the loss of partial configuration for our plugin. Consequently, all requests began being redirected to our mock server, regardless of whether the configured header was present.
When attempting to reconfigure our custom plugin using deck, we encountered the following error:
Expected Behavior
It seems reasonable to expect that Kong should fail the migration process when such a conflict arises, providing an opportunity to fix the problem before rolling out the new version. We are open to start prefixing our custom plugin names to avoid clashes, but I believe we won't be alone with this problem.
Steps To Reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: