-
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
Fix HTTP Security policies when OIDC tenant is selected with the @Tenant annotation on Jakarta REST resources #38772
Fix HTTP Security policies when OIDC tenant is selected with the @Tenant annotation on Jakarta REST resources #38772
Conversation
This comment has been minimized.
This comment has been minimized.
🙈 The PR is closed and the preview is expired. |
This comment has been minimized.
This comment has been minimized.
Thanks @michalvavrik, I did look earlier, and thought it was good, but I'll need to go through it again, thanks |
If you have any questions, please shoot. Personally, I'd suggest area covered by |
Probably a good idea to have @geoand having a look. |
Sure, I'll have a look tomorrow
…On Wed, Feb 14, 2024, 20:48 Michal Vavřík ***@***.***> wrote:
Probably a good idea to have @geoand <https://github.com/geoand> having a
look.
@geoand <https://github.com/geoand> please have a look if you find a time
—
Reply to this email directly, view it on GitHub
<#38772 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBMDP7QCKBMDV4E75LGRH3YTUBIHAVCNFSM6AAAAABDHLST5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGQYDGMZZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
RR part LGTM |
Thanks for the review |
...ions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/PolicyMappingConfig.java
Outdated
Show resolved
Hide resolved
...ions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/PolicyMappingConfig.java
Outdated
Show resolved
Hide resolved
...ions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/PolicyMappingConfig.java
Outdated
Show resolved
Hide resolved
...ions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/PolicyMappingConfig.java
Outdated
Show resolved
Hide resolved
docs/src/main/asciidoc/security-openid-connect-multitenancy.adoc
Outdated
Show resolved
Hide resolved
...ions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/PolicyMappingConfig.java
Outdated
Show resolved
Hide resolved
6b1a8dc
to
81386fd
Compare
Status for workflow
|
Thanks @michalvavrik Let me do one more round in the next few days, enjoy the weekend. |
Status for workflow
|
@michalvavrik I've looked again, I believe a good part of this PR is about the general refactoring as well, the code related to checking if the JAXRS permission checker should be applied or not appears to be quite simple, thanks |
We are in the difficult situation with HTTP Security policies as we need to run authentication and authorization as the first thing, but when the policies are used with the Jakarta REST stack and authentication feature that require endpoint match is used, we would need to postpone authN/authZ to when RESTEasy Reactive starts processing. That can be done, but there can (and are) filters with higher priority that can preceed RR processing and needs to be secured as well. Just imagine that request is consumed by gRPC but we postponed check to JAX-RS phase. That is why for now, this PR propose explicitly marking HTPT Security policies that are only applied on JAX-RS. This feature is closely couple with use cases - it will work for
@Tenant
and for other annotations resolved toEagerSecurityInterceptor
s, but it doesn't make sense and is not supported to just delay it for no reason (in short: we need build time detection of annotations to know we should add respective REST handlers).