-
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
server/auth: fix panic a malformed jwt generation and add test-cases #15639
server/auth: fix panic a malformed jwt generation and add test-cases #15639
Conversation
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
96d9c72
to
386aede
Compare
Thanks @ArkaSaha30 . Please take this as a high priority, because it's planned to be included in 3.5.8. |
Hi @ahrtr , just wanted to confirm if I need to create |
Can you reuse the existing certificate and key files? Please refer to |
In |
You need to intentionally generate a JWT token without |
@ArkaSaha30 Please remove |
46b6da0
to
1b903d7
Compare
This PR is blocking v3.5.8 release, please provide fixes as fast you can. Plan is to release next week, so please provide fixes till Monday or we will need to finish the PR. Sorry for not making clear earlier. |
I will work with @ArkaSaha30 to get it done next Monday. See also #15585 (comment) |
I'm already working on it, I will push the changes for review ASAP. |
@ArkaSaha30 Please follow #15676 |
Usually we fix issue on main branch firstly, and then backport to 3.5 and 3.4. But we have no time to wait, because we need to release both 3.5.8 and 3.4.25 soon to resolve some CVEs. So I delivered two PRs myself for both 3.5 and 3.4 before this one is approved/merged. Sorry for the confusion. Anyway, please follow the same way to update this PR. |
Thank you @ahrtr, I am updating this PR accordingly. |
1b903d7
to
971f732
Compare
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.
LGTM. Thanks @ArkaSaha30.
minor comment: please consider to squash the second and third commits. |
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
971f732
to
a1fa3bf
Compare
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.
LGTM
LGTM, thanks @ArkaSaha30 ! |
This PR is to fix panic on identical JWT token generation and authentication as well as add test cases for the same.
Extension of #15002
Fixes: #14931