-
Notifications
You must be signed in to change notification settings - Fork 147
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
Remove ecdsa dependency #403
Remove ecdsa dependency #403
Conversation
@justinabrokwah-okta - I'm curious to get your thoughts here, I think you might be the most familiar with the current implementation. |
Thanks so much for this PR, sorry for the delay in response. I'll try to take a look at this today but skimming through, it looks like an overdue change to make. Also tagging @bryanapellanes-okta for visibility |
@agburch Thank you so much for your contribution! I'll review this week and consult with @justinabrokwah-okta . If no issues or concerns arise, I'll plan to merge and publish a new release by the end of next week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This PR proposes to remove the
ecdsa
dependency completely by refactoring to usejwcrypto
andpyjwt
. This change is motivated by the recent CVE that demonstrated the potential vulnerabilities inecdsa
. But regardless of any specific vuln, the maintainers of theecdsa
library have commented to suggest that it is not intended for "production use":https://github.com/tlsfuzzer/python-ecdsa?tab=readme-ov-file#Security
By removing
python-jose
this PR does remove functionality from thejwt
module (e.g. specifying alternate hash algorithms or JWT_OPTIONS). But as of today, these features appear to be unused. However please let me know if I'm mistaken here. As far as this PR is concerned though, the output ofJWT.create_token()
has not changed.I believe this PR extends the work done in PR #398 by fully removing the package in question. It should also address:
Issues #395
Issues #388