-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
fix(cfg): fix borked /v1/security/*token
API endpoints by disabling verify sub claim in JWT to be string type in PyJWT >= 2.10
#32244
base: master
Are you sure you want to change the base?
Conversation
…>= 2.10 Signed-off-by: hainenber <[email protected]>
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.
I've completed my review and didn't find any issues.
Files scanned
File Path | Reviewed |
---|---|
superset/config.py | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Need a new review? Comment
/korbit-review
on this PR and I'll review your latest changes.Korbit Guide: Usage and Customization
Interacting with Korbit
- You can manually ask Korbit to review your PR using the
/korbit-review
command in a comment at the root of your PR.- You can ask Korbit to generate a new PR description using the
/korbit-generate-pr-description
command in any comment on your PR.- Too many Korbit comments? I can resolve all my comment threads if you use the
/korbit-resolve
command in any comment on your PR.- Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
- Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.
Customizing Korbit
- Check out our docs on how you can make Korbit work best for you and your team.
- Customize Korbit for your organization through the Korbit Console.
Current Korbit Configuration
General Settings
Setting Value Review Schedule Automatic excluding drafts Max Issue Count 10 Automatic PR Descriptions ❌ Issue Categories
Category Enabled Documentation ✅ Logging ✅ Error Handling ✅ Readability ✅ Design ✅ Performance ✅ Security ✅ Functionality ✅ Feedback and Support
Note
Korbit Pro is free for open source projects 🎉
Looking to add Korbit to your team? Get started with a free 2 week trial here
/v1/security/*token
API endpoints by disabling verify sub claim in JWT to be string type in PyJWT >= 2.10
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #32244 +/- ##
===========================================
+ Coverage 60.48% 83.45% +22.96%
===========================================
Files 1931 546 -1385
Lines 76236 39098 -37138
Branches 8568 0 -8568
===========================================
- Hits 46114 32630 -13484
+ Misses 28017 6468 -21549
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I don't know the implications of this change, so I'll just tag @dpgaspar :) |
fix(cfg): fix borked /v1/security/*token API endpoints by disabling verify sub claim in JWT to be string type in PyJWT >= 2.10
SUMMARY
Fixes #32241 by adding a sane default config while waiting for upstream packages to resolve breakages.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
![image](https://private-user-images.githubusercontent.com/41283691/412797895-4f863797-bdb7-4de3-9fbd-1a3d026c93dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDI2NDAsIm5iZiI6MTczOTYwMjM0MCwicGF0aCI6Ii80MTI4MzY5MS80MTI3OTc4OTUtNGY4NjM3OTctYmRiNy00ZGUzLTlmYmQtMWEzZDAyNmM5M2RjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA2NTIyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVkYmU1Yzc4YjZkOTA1YTY0NGRjMTY3NDYxNWIwOWQ5ZTNjNjAzMWM1ZDc2NWVkYzc0ZTA4OTk4Nzg5OTlhNDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lVsM3lbMZUY1zBGk2rGErJzwskv0cCY6mygOZftN1wc)
After
![image](https://private-user-images.githubusercontent.com/41283691/412797141-13733348-126f-4568-b363-f2430ebb1d54.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDI2NDAsIm5iZiI6MTczOTYwMjM0MCwicGF0aCI6Ii80MTI4MzY5MS80MTI3OTcxNDEtMTM3MzMzNDgtMTI2Zi00NTY4LWIzNjMtZjI0MzBlYmIxZDU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA2NTIyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxZGUyODk2MGNhN2ZmNjcyOGVhN2JkOGI3NmVlOWI3MWU3ODYwYWRmYzUyYzgxM2M5ZGJkZDA5Y2VjM2IxYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JYN3AlTqWazA1M2NH9L0FU19oafbXNJ5m97gTlkB47Q)
TESTING INSTRUCTIONS
/api/v1/security/csrf_token
with proper Authorization header.ADDITIONAL INFORMATION