-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add invalid algorithm exception check #3399
Add invalid algorithm exception check #3399
Conversation
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.
NOTE: I don't think Jira will link this because it's "PBENCH-1136" not "PBENCH_1136"; but it's good enough for human readers, and we can add a manual link if necessary. (But if you have reason for edits or a rebase, changing the commit message to link would be good.)
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.
Just nits.
Intriguing: you have "real" unit test failures related to authentication. Did you run the full server unit test suite before submitting? Is this one of those bizarre differences between local and CI environments? 😦
|
This is very bizarre, I don't see it when I ran locally with |
I always do a |
Yeah, I usually do that but I didn't think that it's gonna break everything. However, what I don't understand is that the unit tests are failing on changes from the main branch as well so I not sure whether the failures here are related to these changes. 😨 |
Indeed. Riya's cache manager PR has similar failures; and running the test set locally now also fails. I wonder if we had another package upgrade behind our backs? 😦 In fact, something seems to have re-triggered every PR, and they've all failed. Wow. |
I just compared packages between a re-run that failed this afternoon and an earlier run that worked. The differences are:
I'm assuming So ... |
And ... the weird thing is that changing our flask dependency in |
Intriguing: there's suddenly a Flask 2.3.1 with the one change "Restore deprecated from flask import Markup. #5084". Hmm... |
Yes I was gonna say they just upgraded to 2.3.1, I'll try this version and see if it fixes everything. but... its not available on PyPi I guess. |
Yeah, I've been trying ... maybe it'll fix the problem ... and maybe it'll be available soon. Sigh. |
See this comment. |
Okay that explains. |
The context makes me fear that 2.3.1 is not a fix for whatever we're hitting. And for some reason I'm having no luck locking Flask to 2.2.x... it's ignoring me and using 2.3.0 anyway. |
We need to catch invalid algorithm error when we decode the SSO token and raise it as OpenIDTokenInvalid. This is because we are using HS256 for our internal api key encode-decode. PBENCH-1136
We need to catch an invalid algorithm error when we decode the SSO token and raise it as OpenIDTokenInvalid. This is because we are using HS256 for our internal api key encode-decode.
PBENCH_1136