-
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
Quarkus-security - there is no way of selecting providers from extensions #18615
Comments
/cc @sberyozkin |
I can try to provide a solution |
@JiriOndrusek Hi, can the single produce point do ? If the users are not expected to configure it manually then a custom extension producing it should work ? Sorry if I'm missing something |
@sberyozkin I probably don't understand you comment. Here is my case, where I can not find a solution with the current code (but I might be missing something):
I'm suggesting (if there is no other way of achieving this) to modify current |
@sberyozkin We can discuss also an option of creating a separate bouncycastle extension (or extending the current one) - based on camel-quarkus's one. I can work on it. |
Hi @JiriOndrusek - the reason no dedicated extension exists yet is that at a time the code was added there was no clear idea how BC FIPS could be supported at the product level - AFAIK - this is still an open question - so for now lets try to work around the existing code. So, what I meant, can your custom extension do:
? I think it should not be a multiple point producer - i.e either the user configures it manually or the custom extension like the one you are working on does it indirectly - in this case the code producing the same item in |
Even if both the custom extension does the above code and the user sets the property at the same time it should still work; if it is a multiple producer point then we'd have to accept a list of these items which given that there is only one BC provider instance would not be correct; so yes, please try the above code - hope it will be fine |
Hi @sberyozkin I originally used the same approach as you are suggesting. I tried it again (now) with
The result is an error:
I think that problem is caused by the fact, that build item |
Hi @JiriOndrusek, it can't be a list since there could be only a single BC instance - this build item also has a fips property so accepting a list would make it impossible to decide if FIPS must be enforced or not when one item has it on and another one - off. Though, can you please try to make it a multiple producer item as you suggested but also change Then we'd throw an exception if this set contains more than one item registration (say, If Can you try it please |
Edited: Sorry , the same thing is a part of your proposal, please ignore it. @sberyozkin Your proposal makes sense. I will try it. I see a small modification:
|
@JiriOndrusek Np at all, great we agree about the potential problem of having it as List. As far as I understand we agree with how to address it as well, let me know please if I misunderstood |
Description
I'm working on apache/camel-quarkus#2005. I'm trying to use quarkus-security from camel-quarkus extensions.
I'm facing a problem, when extensions knows, that bouncycastle provider has to be used. This could be achieved by config property
quarkus.security.security-providers=BC
. Unfortunatelly I haven't found a way how to define it in an extension at build time. The only possible solution (which I see) is to force users, to define this property in their apps.Implementation ideas
I can imagine several ways of providing this new configuration option.
For example:
BouncyCastleProviderBuildItem
could be changed to allow multiple produce points, which would allow to configure it in extension.In both cases this new configuration could be validated against property.
The text was updated successfully, but these errors were encountered: