-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Switch from dgrijalva/jwt-go to form3tech-oss/jwt-go. #12580
Conversation
3bf3aed
to
cc589ef
Compare
Looks like this was a timeout, Is there anyway to rerun it? |
Rebased, passing now! |
dgrijalva/jwt-go has been abandoned and contains several serious security issues. Most projects are now switching to the form3tech fork. See https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515 for info on the issues. Signed-off-by: Dan Lorenc <[email protected]>
Actually, most projects seem to prefer this package now: https://github.com/square/go-jose But even that has its own issues: square/go-jose#342 (comment) A third alternative I've seen mentioned is this one: https://github.com/lestrrat-go/jwx |
Thank you for the contribution. Digging deeper cd kubernetes
vs.
@dlorenc Do you have expertise why one of them might be better than the other ? |
I honestly can't tell :( The square one has some issues too as pointed out by @sagikazarmark. It doesn't seem to be maintained either, and has a different API from the one currently in use here. The form3-tech one is more of a drop-in replacement with just the security patches applied. But again, whether that will be maintained is up the air. |
That's compelling argument that this one does not require code-changes. Thank you. |
I agree this is a good fix for the short term, but I'd consider reviewing the available JWT libraries and replace the current one if necessary. |
dgrijalva/jwt-go has been abandoned and contains several serious
security issues. Most projects are now switching to the form3tech fork.
See https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515 for
info on the issues.