8000 Update bcpkix and bcprov dependencies · Issue #21360 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Update bcpkix and bcprov dependencies #21360

Description

@Pepo48

Description

In Keycloak we currently use bcpkix-jdk15on and bcprov-jdk15on dependencies. The Quarkus Platform BOM provides us with bcpkix-jdk18on and bcprov-jdk18on.

The difference is about APIs compatibility for JDK - 1.5 and up vs. 1.8 and up.

@mposolda @pedroigor are there any concerns when it comes to upgrading these two?

This task serves as an follow-up of #21078.

Activity

  1. sschu commented on Jun 30, 2023

    @sschu
    Contributor

    Just as a note, there is also a current version for jdk15to18 but that's apparently not what Quarkus is using.

  2. added this to the 22.0.0 milestone on Jun 30, 2023
  3. pedroigor commented on Jul 3, 2023

    @pedroigor
    Contributor

    @Pepo48 I don't think there is. See https://www.bouncycastle.org/latest_releases.html.

    Now we are based on JDK 17 we should be able to support multi-release JARs.

  4. self-assigned this
    on Jul 10, 2023
  5. modified the milestones: 22.0.0, 22.0.1 on Jul 10, 2023
  6. vmuzikar commented on Jul 10, 2023

    @vmuzikar
    Contributor

    This turned out to be a bigger change after all, so moving the milestone.

    I found out that adapters are using BC jdk15on dependencies through wildfly-feature-pack. AFAIK, they might clash with the jdk18on dependencies. At the same time, I'm not sure we can simply exclude the jdk15on alternatives. I tried it in #21543 but we'll need to run the full test pipelines with it.

    I set the milestone to a micro release for now. One thing to consider is if we can just remove the jdk15on deps in a micro release. We might need to wait for 23.

    @pedroigor @sschu WDYT?

  7. pedroigor commented on Jul 10, 2023

    @pedroigor
    Contributor

    @vmuzikar I think we can go with your changes in #21543. The adapters should be JDK 1.8+ compliant anyways even though not what is coming from the feature pack.

  8. sschu commented on Jul 11, 2023

    @sschu
    Contributor

    @vmuzikar +1 to what Pedro said. I am also wondering whether we should do the same with the bc-fips dependencies, they are also in Quarkus?

  9. vmuzikar commented on Jul 11, 2023

    @vmuzikar
    Contributor

    I am also wondering whether we should do the same with the bc-fips dependencies, they are also in Quarkus?

    @sschu I think we're not including the bc-fips deps any way as we instruct users to "sideload" them.

  10. 1 remaining item

  11. pedroigor commented on Jul 11, 2023

    @pedroigor
    Contributor

    We do not distribute those. See https://www.keycloak.org/server/fips#_bouncycastle_fips_bits.

    But I agree with you and those should be resolved from Quarkus, right?

  12. vmuzikar commented on Jul 11, 2023

    @vmuzikar
    Contributor

    -1 for resolving FIPS deps from Quarkus.

    Since those bits need to be provided by users, we'd need to monitor any version changes and them document in migration guides. User action is required, so I'd avoid any version changes if absolutely not required.

  13. pedroigor commented on Jul 11, 2023

    @pedroigor
    Contributor

    Isn't that a documentation issue? I mean, we are already referencing the BC version they should use.

    But I'm not hard on resolving from Quarkus. I can see it as beneficial to manage this one on our side too.

  14. vmuzikar commented on Jul 11, 2023

    @vmuzikar
    Contributor

    Since we'd need to (manually) monitor the version changes to give users a heads-up in docs and migration guide, aligning with Quarkus BOM doesn't give us too much benefit, IMHO.

  15. sschu commented on Jul 11, 2023

    @sschu
    Contributor

    Fine for me, I wasn't aware they are not actually shipped.

  16. modified the milestones: 22.0.1, 22.0.2 on Jul 17, 2023
  17. added 2 commits that reference this issue on Jul 20, 2023
    776bcbc
    f20052d
  18. added a commit that references this issue on Jul 26, 2023
    13893cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0