-
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
Use OIDC Tenant annotation to resolve tenants #34833
Use OIDC Tenant annotation to resolve tenants #34833
Conversation
🙈 The PR is closed and the preview is expired. |
This comment has been minimized.
This comment has been minimized.
Tests failing in CI didn't fail locally when I run them, I'll have a look. |
Alright, Sergey had PRs and made changes in OIDC wiremock module since I started developing. I'll do same changes in OIDC Wiremock reactive. |
4a32964
to
e7adf16
Compare
Hi @michalvavrik Thanks, do we really need to have |
Issue #34692 would not happen if we tested it with RESTEasy Reactive. Considering RR is our preferred REST stack, it needs to be tested. Also it is additional 30 seconds (on my workstation) per JVM, so no big deal.
You mean like change RESTEasy Classic to RESTEasy Reactive in
Yeah, I agree with that, but principles how it works under the hood are different. If I change deps RC -> RR, than we don't test whether RC work (more specifically it is just about Jakarta REST filter in RESTEasy Classic, so chance it does not is pretty small!). @sberyozkin I think I understand and agree, just please confirm, thank you. |
@michalvavrik Question about using In this PR, So we have 2 slightly different cases backed up by the same annotation. I'm not seeing any obvious problem with it right now, but wonder id there could be some problems, if we decide to add some attributes which make sense only for one of these 2 cases... |
I realize that. I decided to use it because after reading |
@michalvavrik Updating |
Good point, sure lets use |
e7adf16
to
c541595
Compare
extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java
Outdated
Show resolved
Hide resolved
@michalvavrik PR is perfect, thanks, lets discuss more though how to deal with this annotation ambiguity |
This comment has been minimized.
This comment has been minimized.
@michalvavrik Would you like to rename this PR to something like |
@sberyozkin sure thing |
Thanks, added a noteworthy feature label |
c541595
to
d5debd6
Compare
This comment has been minimized.
This comment has been minimized.
JDK 17 on Windows is IMHO flaky because I saw that before |
Very likely |
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.
Thanks @michalvavrik
@michalvavrik Hi Michal, can you please give it one more try and rerun ? This PR updates the vertx-http deployment sequence, I don't see how it can affect the timeout though, but please run one more time |
d5debd6
to
a5daa31
Compare
JDK 17 Windows test failed again but it is grpc and reactive messaging, definitely not related |
Failing Jobs - Building a5daa31
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 17 Windows #- Failing: extensions/grpc/deployment extensions/smallrye-reactive-messaging-amqp/deployment
! Skipped: extensions/micrometer-registry-prometheus/deployment extensions/micrometer/deployment extensions/opentelemetry/deployment and 51 more 📦 extensions/grpc/deployment✖
📦 extensions/smallrye-reactive-messaging-amqp/deployment✖
✖
✖
✖
✖
|
Should be good to go now |
fixes: #34692
Now all that users need to do when they want to link certain resource method with tenant (both in RESTEasy Reactive and RESTEasy Classic) is to annotate the method with
@Tenant("my-tenant")
. I did that by completely avoiding CDI interceptors, which is necessary for RR scenario.Also addingUsing Jakarta REST filter in RESTEasy Classic enabled usage ofoidc-wiremock-reactive
module as reported issue proved value of that. However I didn't add it to native runs, so additional time required in CI is about 30 seconds per JVM.@Tenant
annotation for this purpose (as we avoid CDI interceptors over token customizers).