-
Notifications
You must be signed in to change notification settings - Fork 3k
Added BeanArchiveIndexBuildItem to be used for searching for secured classes #5617
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
Conversation
...ions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java
Outdated
Show resolved
Hide resolved
3f4083a
to
f1e02a0
Compare
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.
We need a test.
And would it be an issue for constrained classes too? @mkouba ?
@gsmet what do you mean? |
f1e02a0
to
6e6268f
Compare
@gsmet added test case hope this is what is expected |
@mkouba I mean it's the second time we have this issue (see #2983) and I wonder if it could be an issue for other parts of the code (typically the constraint detection for the Hibernate Validator extension for instance). In the OpenAPI patch, IIRC, we had to consider both indexes so I'm a bit surprised this time only one is OK. All the potential security annotations occurrences will be in the new one? |
@gsmet in this case, we're talking about the |
That one, I ended up understanding the last time :). My question is:
About HV, I just wanted to be sure just using the (I'm hijacking this PR a bit, sorry, but it looks all related to me) |
It depends. If you only need to analyze bean classes then |
I don't think that the one failed job is related to the changes here. any feedback about the test case for this PR? |
@gsmet could the error be caused some stale artifacts? I think I heard of such problems before... @mswiderski maybe it's worth to rebase the PR on top of current master and try again? I retriggered the failed job and it failed again... |
6e6268f
to
26b7a1b
Compare
@michalszynkiewicz rebased and pushed ... let's see how it goes |
this time
again not really related |
@mkouba @mswiderski I'm wondering if this one should be backported to 1.0.0.Final? WDYT? |
@gsmet if possible I'd opt for having it as it essentially makes Kogito generated endpoints to not be secured even though the endpoints are properly annotated. |
…classes
generated classes such as REST resources that are intended to be secured (using
@RolesAllowed
annotation) are not processed by security extension and by that they are left unprotected.This PR introduces use of BeanArchiveIndexBuildItem to get hold of all the classes including generated.
@michalszynkiewicz tagging you as we just discussed over the topic, thanks for the help on this.