Repository navigation
Remove OpenJDK 17 support on server side - #55610
Conversation
fd4ce8a to
6741fd7
Compare
fbf2edd to
61da7cf
Compare
| === OpenJDK 17 support removed | ||
|
|
||
| Keycloak server no longer supports running on OpenJDK 17, and the minimum supported version is now OpenJDK 21. | ||
|
|
There was a problem hiding this comment.
Suggestion: the upgrading guide could help users assess impact with a few lines. But if you would like to keep things concise, that's not a problem. Something like:
=== OpenJDK 17 support removed
Keycloak server no longer supports running on OpenJDK 17, and the minimum supported version is now OpenJDK 21.
The official container image already uses OpenJDK 21 and is not affected by this change.
Client libraries (`keycloak-admin-client`, `keycloak-authz-client`) continue to support Java 8.
FIPS 140-2 deployments no longer need the `kc.java.security` file or the manual `XMLDSig` provider configuration that was required with older OpenJDK 17 versions.There was a problem hiding this comment.
Might consider including something around FIPS 140-2 once we reach agreement on those; the rest I'm not including.
There was a problem hiding this comment.
Added some more comments. On top of that, there are a few more remaining issues.
- Threads Guide still contains Java 17 related paragraph.
testsuite/integration-arquillian/tests/pom.xml:431,:1422andAbstractQuarkusDeployableContainer.java:451– still reference the deletedkc.java.securityand pass it as-Djava.security.properties
| // BCFIPS require "SecureRandom.getInstanceStrong" to be available. But it may not be available on RHEL 8 on OpenJDK 17 due the https://bugzilla.redhat.com/show_bug.cgi?id=2155060 | ||
| private void checkSecureRandom(Runnable insertBcFipsProvider) { | ||
| try { | ||
| SecureRandom sr = SecureRandom.getInstanceStrong(); |
There was a problem hiding this comment.
AI claims SecureRandom.getInstanceStrong() is not enabled in true FIPS environment. That our CI misses it because the the kernel is not switched to FIPS, hence JDK is not switched to true FIPS mode either.
I think we might need some help from @mposolda on this.
Alternatively we could just revert this change to unblock Java 17 deprecation and tackle this clean up as a follow-up. That would be my preferred approach.
There was a problem hiding this comment.
Reverting this change
61da7cf to
4d5bd77
Compare
This comment was marked as outdated.
This comment was marked as outdated.
The above shouldn't need to be merged first, as we don't run any tests on OpenJDK 8 for the client libraries in either case. |
There was a problem hiding this comment.
Looks good to me in general. Just the two points that were already identified by copilot and the changes in the trust-store. I think that you better maintain the previous methods but saying BC/BCFIPS instead of jdk-17.
e4bea32 to
17d8d62
Compare
17d8d62 to
ed80db4
Compare
Closes keycloak#52369 Signed-off-by: stianst <stianst@gmail.com>
ed80db4 to
7ba306e
Compare
Yup, that's fixed in main now, rebased this PR, so should pass now |


Closes #52369
Signed-off-by: stianst stianst@gmail.com