Skip to content
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

RESTEasy Reactive - Perform eager security checks for JaxRS security #26579

Conversation

michalvavrik
Copy link
Contributor

fix: #26553

Same issue as with #23547, security checks with disabled proactive security on the IO thread performed by SecurityConstrainer leads to an exception as identity is accessed in a synchronous manner. Now these checks are performed eagerly in RR so by the time checks are performed by SecurityConstrainer, user is already authenticated - same situation as with RBAC annotations.

@quarkus-bot

This comment has been minimized.

@michalvavrik michalvavrik force-pushed the feature/fix-jaxrs-deny-unannotated-endpoints-nonblocking branch from 8b3aff0 to 69ac7cd Compare July 6, 2022 13:18
@sberyozkin sberyozkin merged commit dd78252 into quarkusio:main Jul 6, 2022
@quarkus-bot quarkus-bot bot added this to the 2.11 - main milestone Jul 6, 2022
@michalvavrik michalvavrik deleted the feature/fix-jaxrs-deny-unannotated-endpoints-nonblocking branch July 6, 2022 15:53
@gsmet
Copy link
Member

gsmet commented Jul 18, 2022

I'm not very comfortable backporting this to 2.10 as it relies on some other PR and put together the changes are rather involved and touch security.
Given 2.10.3.Final is released to fix a security issue, I don't want to cause other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

quarkus.security.jaxrs.deny-unannotated-endpoints=true blocking threads
3 participants