8000 Remove OpenJDK 17 support on server side by stianst · Pull Request #55610 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Remove OpenJDK 17 support on server side - #55610

Merged
stianst merged 1 commit into
keycloak:mainfrom
stianst:remove-openjdk-17-support
Dec 4, 2026
Merged

stianst merged 1 commit into
keycloak:mainfrom
stianst:remove-openjdk-17-support

Conversation

@stianst
@stianst stianst commented Nov 27, 2026
Copy link
Copy Markdown
Contributor

Closes #52369

Signed-off-by: stianst stianst@gmail.com

@stianst
stianst requested review from a team as code owners November 27, 2026 09:21
Copilot AI balanced review requested due to automatic review settings November 27, 2026 09:21
@stianst stianst added this to the 27.0 Development Milestone milestone Nov 27, 2026

This comment was marked as outdated.

vmuzikar

This comment was marked as outdated.

@stianst
stianst marked this pull request as draft November 27, 2026 11:07
@stianst
stianst force-pushed the remove-openjdk-17-support branch 2 times, most recently from fd4ce8a to 6741fd7 Compare November 27, 2026 11:14
@stianst
stianst requested review from mposolda and rmartinc November 27, 2026 11:17
@stianst
stianst force-pushed the remove-openjdk-17-support branch 2 times, most recently from fbf2edd to 61da7cf Compare November 27, 2026 11:30
@stianst
stianst requested a review from vmuzikar November 27, 2026 11:40
abstractj
abstractj previously approved these changes Nov 27, 2026
Comment thread rest/admin-v2/api/pom.xml Resolved
Comment on lines +7 to +10
=== OpenJDK 17 support removed

Keycloak server no longer supports running on OpenJDK 17, and the minimum supported version is now OpenJDK 21.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might consider including something around FIPS 140-2 once we reach agreement on those; the rest I'm not including.

@vmuzikar vmuzikar left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some more comments. On top of that, there are a few more remaining issues.

Comment thread docs/guides/server/fips.adoc Resolved
// 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();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverting this change

Comment thread docs/documentation/tests/pom.xml Resolved

This comment was marked as outdated.

@keycloak-github-bot

This comment was marked as outdated.

keycloak-github-bot[bot]

This comment was marked as outdated.

@stianst
stianst requested review from a team as code owners December 4, 2026 06:42
@stianst
stianst requested review from vmuzikar and a balanced review from Copilot December 4, 2026 06:42
@stianst
stianst commented Dec 4, 2026
Copy link
Copy Markdown
Contributor Author

PR to remove OpenJDK 8 support on the client side: keycloak/keycloak-client#269 - this should probably be merged first to prevent issues in keycloak-client

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.

Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The FIPS configuration uses Kerberos instead of the JCA provider name SunJGSS, preventing the provider from loading and leaving Kerberos unavailable.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread docs/guides/server/fips.adoc Resolved
@rmartinc rmartinc left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docs/guides/server/fips.adoc Resolved
@stianst
stianst force-pushed the remove-openjdk-17-support branch from e4bea32 to 17d8d62 Compare December 4, 2026 08:33
Copilot AI balanced review requested due to automatic review settings December 4, 2026 08:33
@stianst
stianst requested a review from rmartinc December 4, 2026 08:35
@stianst
stianst force-pushed the remove-openjdk-17-support branch from 17d8d62 to ed80db4 Compare December 4, 2026 08:36
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Java 21 minimum-version update.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings December 4, 2026 08:37
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the update raising the server’s minimum Java version to 21.

No open issues 🎉

Review effort: Balanced

@rmartinc rmartinc left a comment •
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes @stianst! LGTM!

There is an error now in the docs but it's because the nodejs pages are removed. But it's unrelated.

Closes keycloak#52369

Signed-off-by: stianst <stianst@gmail.com>
@stianst
stianst force-pushed the remove-openjdk-17-support branch from ed80db4 to 7ba306e Compare December 4, 2026 10:24
Copilot AI balanced review requested due to automatic review settings December 4, 2026 10:24
@stianst
stianst commented Dec 4, 2026
Copy link
Copy Markdown
Contributor Author

Thanks for the changes @stianst! LGTM!

There is an error now in the docs but it's because the nodejs pages are removed. But it's unrelated.

Yup, that's fixed in main now, rebased this PR, so should pass now

@vmuzikar vmuzikar left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the update to a Java 21 server minimum.

No open issues 🎉

Review effort: Balanced

@mposolda mposolda left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The direction of the PR LGTM. I did not reviewed in details. For more detailed review, I am happy with reviews from @vmuzikar and @rmartinc

@stianst
stianst enabled auto-merge (squash) December 4, 2026 10:32
@stianst
stianst merged commit b607b84 into keycloak:main Dec 4, 2026
98 of 168 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop support for OpenJDK 17 on the server side

7 participants

0