question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JWT signature does not match locally computed signature only on some POD

See original GitHub issue

Describe the bug

We are using PS256 as signing algorithm with rotated keys. the app is running on java 11 and deployed in kubernetes. Recently we started to encounter signature verification issue, all jwt that passed through one pod will fail with JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted message, but further retry with different pod confirms that the jwt is not the problem. Our current resolution for this is to kill the pod, but this is not ideal.

To Reproduce We are not able to reproduce it locally yet, but let me know if there’s any info that might be helpful

Expected behavior Signature should be successfully verified, as it’s verifiable on similar pods.

Screenshots

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Fs02commented, Aug 25, 2021

It’s running on the same k8s deployment, so it should have the exact same configuration

0reactions
stale[bot]commented, Jul 10, 2022

This issue has been automatically marked as stale due to inactivity for 60 or more days. It will be closed in 7 days if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JWT signature does not match locally computed signature
It means that if you issue a JWT, it is only valid as long as the server does not reboot. The SignatureException you...
Read more >
Freshchat API responds with "JWT signature does not match ...
Freshchat API responds with "JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.
Read more >
jwtk - Bountysource
Returning null is not handled by the calling code in JJWT, so it appears ... JWT signature does not match locally computed signature...
Read more >
TheHive-Project/TheHive - Gitter
DefaultJWTCookieDataCodec - decode: cookie has invalid signature! message = JWT signature does not match locally computed signature. JWT validity cannot be ...
Read more >
Spring Boot JWT Setup with Frontend (VueJs)
If someone signed JWT with its private key, then it can only be opened by its ... JWT signature does not match locally...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found