Skip to content

Quarkus manages org.bouncycastle:bctls-jdk18on dependency in the applicaton BOM even though it doesn't use it #47174

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

Closed
michalvavrik opened this issue Apr 4, 2025 · 9 comments
Labels
area/security kind/bug Something isn't working

Comments

@michalvavrik
Copy link
Member

Describe the bug

Quarkus manages dependency org.bouncycastle:bctls-jdk18on here:

And it uses the dependency in a integration test module here:

And documents this dependency usage here:

When downstream builds of Quarkus (like the Red Hat one I am interested in) builds this project from source, they need to solve a dilemma that this dependency is not used but managed, should they ship it as well? Now, if it was something regular I'd not mind, but Quarkus QE has a tool that detect such a cases and this is the only issue (for which we don't have an exception). I'd like to check, this is intentional and desirable?

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Copy link

quarkus-bot bot commented Apr 4, 2025

/cc @pedroigor (bearer-token), @sberyozkin (bearer-token,jwt,security)

@michalvavrik
Copy link
Member Author

I think @gsmet and @aloubyansky are the most knowledgeable people on this topic, so CC-ing them.

@geoand
Copy link
Contributor

geoand commented Apr 4, 2025

Might be useful to get the info @aloubyansky produced for the JGit here

@aloubyansky
Copy link
Member

@michalvavrik could you clarify what the actual issue is?

Now, if it was something regular I'd not mind, but Quarkus QE has a tool that detect such a cases and this is the only issue

What do you mean by "regular" and not regular in this case?

@aloubyansky
Copy link
Member

AFAICS, there are a multiple artifacts from BC aligned on the same version, so this looks good to me.
The same would apply to Jackson, Vert.x, Netty, etc. We don't necessarily use all their components but we still import their complete BOMs in the quarkus-bom.

@aloubyansky
Copy link
Member

It looks like the doc also shows it'd be useful to have this dependency managed

@michalvavrik
Copy link
Member Author

michalvavrik commented Apr 4, 2025

What do you mean by "regular" and not regular in this case?

We have a tool analyzing this and this (let alone some native artifacts and gradle API) was the only artifact that was reported as managed but not used. I presume there are some exceptions to this, but it is definitely not like 100 of artifacts.

It looks like the doc also shows it'd be useful to have this dependency managed

Fine with me, I just wanted to check.

AFAICS, there are a multiple artifacts from BC aligned on the same version, so this looks good to me.
The same would apply to Jackson, Vert.x, Netty, etc. We don't necessarily use all their components but we still import their complete BOMs in the quarkus-bom.

Alright thank you. I'll close this issue tonight. @rsvoboda can reopen if he sees a different point of a view.

@gsmet
Copy link
Member

gsmet commented Apr 4, 2025

I think the idea was to make sure BC artifacts would be consistent when people use them.

Now the BC dependencies look like a landmine with various artifacts for various JDK versions. I'm not sure it makes sense to keep this one but I wouldn't want to break apps either.

@michalvavrik
Copy link
Member Author

Understood, thank you for all your feedback.

@michalvavrik michalvavrik closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/security kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants