-
-
Notifications
You must be signed in to change notification settings - Fork 600
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
Key: permit empty keys only with ::empty()
factory method
#833
Conversation
I'd still label it as BC break, but better to have a broken system, than a compromised one. No need for CVE/security issue, since this is mis-configuration on the consumer side, if it happens: instructions on using safe randomly generated keys were already provided. |
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.
Awesome, thanks @Slamdunk!
::empty()
factory method
IHMO we shouldn't use the baseline to ignore errors we will never fix. That's why we have the annotations to ignore things. |
We should probably remove the exception, at some point, and only leave the types |
I consider this a security bug that should be addressed with urgent.
Before this PR, misconfigurations can easily lead to unsecured token issuance under the radar, expecially where creator = consumer.