-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
WebSockets Next: Security cleanup #43882
Conversation
mkouba
commented
Oct 15, 2024
- do not force authentication in a dedicted handler so that it's possible to capture the SecurityIdentity before the HTTP upgrade but use the deferred identity instead
- also change the HttpUpgradeContext to consume Uni instead of SecurityIdentity
- do not force authentication in a dedicted handler so that it's possible to capture the SecurityIdentity before the HTTP upgrade but use the deferred identity instead - also change the HttpUpgradeContext to consume Uni<SecurityIdentity> instead of SecurityIdentity
This is a breaking change in the |
Status for workflow
|
No, but this context is used there without identity - https://quarkus.io/version/main/guides/websockets-next-reference#inspect-andor-reject-http-upgrade. I think it is breaking change that has very low impact since the HTTP checks are reactive so it is easy change |
Agreed. Also the WS Next API is still "experimental" :D |
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 is right change as in the past we proactively authenticated even though proactive auth was disabled. WS Next behavior will be similar to what other stacks do.
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 @mkouba, and @michalvavrik for answering the question I was about to ask Martin :-), what impact this change would have...
@mkouba is it something you want for 3.16? If so, we need to add the backport label as it missed the CR1 train. |