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
Breaking change on JS middleware drivers in 4.2.2 #4422
Comments
@ca-simone-chiorazzo This is not a bug and is now a requirement. Part of the change was because some users wanted to use go plugins but the driver was automatically set to JavaScript and the gateway would implode.
I believe so. I don't think have I seen any implementation like this. Maybe you can explain the goal or design decision? |
Closing, as Olu has answered the original question. If you have any further questions or can describe the use case you're looking to implement then please don't hesitate to comment and we can reopen the ticket. Thank you for supporting Tyk! |
FWIW - We're coming across this late, but both 4.3 release notes and 4.2 release notes indicate 'Follow the standard upgrade guide, there are no breaking changes in this release.', but this change broke our upgrade when we moved from 4.0.x to 4.3.2 and our API requests started to fail for no obvious reason (missing auth middleware). So while this may have been done by design as an enhancement, I think the call-out here is for better documentation, review and acknowledgement of potential breaking changes. |
Branch/Environment/Version
Describe the bug
In 4.2.2, a breaking change related to JS middleware driver has been released.
Basically, now you have to define
"driver": "otto
in each of the
custom_middleware
section of every API definition.If you don't do that (it was not required until 4.2.1), you get the following error during the startup of the gateway:
tyk-webapp-1 | time="Nov 25 08:47:28" level=error msg="Unsupported driver ''" prefix=coprocess
Reproduction steps
Steps to reproduce the behavior:
Actual behavior
A clear and concise description of what you expected to happen.
Expected behavior
If the change was expected, we would expect to be released as a breaking change.
Configuration (tyk config file):
Additional context
We were not aware of the
driver
configuration. Since it's defined as a root property ofcustom_middleware
section, does this mean that you can't have a Python middleware and a JS middleware running on the same API definition?The text was updated successfully, but these errors were encountered: