-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Branch/Environment/Version
- Branch/Version: Release
v5.9.0
, pulled in as part of thev4.0.0
helm chart - Environment: On-prem hosting
Describe the bug
Upon upgrading to v5.9.0
, our JWT fails to parse (we use Keycloak as our IDP and JWT provider, if needed for replication). Reverting to v5.8.6
solves the issue and the JWT parses as expected.
Messages from Tyk, in order:
level=error msg="Couldn't get token" error="illegal base64 data at input byte 5" mw="JWTMiddleware"
level=info msg="Attempted JWT access with non-existent key." mw=JWTMiddleware
- `level=error msg="JWT validation error" error=illegal base64 data at input byte 5"
Nothing in our environment has changed besides the Tyk helm chart, and associated Tyk version, upgrade. We've also managed to reproduce this issue with helm chart v3.0.0
and bumping Tyk to v5.9.0
.
Reproduction steps
Steps to reproduce the behavior:
- Add api using JWT based authentication
- Add Security Policy
- Send request to API
Actual behavior
JWT fails to parse. Reverting to v5.8.6
resolves the issue.
Expected behavior
JWT parses as expected.
Configuration (tyk config file):
probelabs, sedkis and KarolyBujtor