Skip to content

Upgrade BouncyCastle FIPS - #53090

Closed
stianst wants to merge 2 commits into
keycloak:mainfrom
stianst:update-fips
Closed

stianst wants to merge 2 commits into
keycloak:mainfrom
stianst:update-fips

Conversation

@stianst

@stianst stianst commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Closes #52974

Closes #52972

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

Copilot AI balanced review requested due to automatic review settings September 23, 2026 07:29
@stianst
stianst requested review from a team as code owners September 23, 2026 07:29

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.

Copilot review overview

🟡 Changes recommended

The FIPS documentation still shows the previous provider version.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Upgrades the Bouncy Castle FIPS dependency set to address two high-severity CVEs.

Changes:

  • Updates all Bouncy Castle FIPS artifacts to compatible releases.
  • Adjusts FIPS integration tests for the new provider version.
File Description
pom.xml Updates Bouncy Castle FIPS dependency versions.
FipsDistTest.java Expects the upgraded provider version.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pom.xml Resolved
Copilot AI review requested due to automatic review settings September 23, 2026 07:35

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.

Copilot review overview

🟢 Approval recommended

The dependency versions are compatible and the corresponding integration assertion is updated consistently.

Review effort: Balanced
Findings: 1 Low severity

Open (1)

Closes keycloak#52974

Closes keycloak#52972

Signed-off-by: stianst <stianst@gmail.com>
Copilot AI review requested due to automatic review settings September 23, 2026 07:53

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.

Copilot review overview

🟡 Changes recommended

Three configured dependency versions are unavailable from Maven Central and will prevent dependency resolution.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Low severity

Open (1)

@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 @stianst! Changes are OK but it seems that something is broken with the ldap tests. Maybe the certificate or something is not valid now for BCFIPS.

@rmartinc

Copy link
Copy Markdown
Contributor

@stianst It's the certificate used in the ldap has no SAN extension to localhost. It seems that BC now rejects the connection. For the moment we can add a System Property for it. If not we need to re-issue a certificate with localhost in the alternates. See this commit. I have tested it in my RHEL 9 VM with FIPS enabled.

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.

Copilot review overview

🟢 Approval recommended

The patched artifacts exist, are compatible, and all provider-version references were updated consistently.

Review effort: Balanced
Findings: None

Resolved since last review (1)

…and sets the

server hostname via SSLParameters.setServerNames().

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>

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.

Copilot review overview

🟡 Changes recommended

Dependency versions appear unavailable, and LDAP user-authentication StartTLS bypasses the new SNI handling.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

Comment on lines +109 to +112
// Wrap factory to ensure SNI hostname is set for endpoint verification
if (sslSocketFactory != null) {
sslSocketFactory = new SNIAwareSSLSocketFactory(sslSocketFactory);
}
@sguilhen

Copy link
Copy Markdown
Contributor

Closing in favor of #53139

@sguilhen sguilhen closed this Sep 24, 2026
@stianst
stianst deleted the update-fips branch October 1, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CVE-2026-13505 org.bouncycastle:bc-fips CVE-2026-8798 org.bouncycastle:bc-fips

4 participants