Skip to content

US1216212: Default to UseJvmDefault when FIPS is detected - #26

Closed
anshuman0799 wants to merge 2 commits into
mainfrom
US1216212
Closed

anshuman0799 wants to merge 2 commits into
mainfrom
US1216212

Conversation

@anshuman0799

Copy link
Copy Markdown
Contributor

@anshuman0799
anshuman0799 requested a balanced review from Copilot September 25, 2026 16:01
@buildmachine-sou-jenkins2

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown

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 public API break and fail-open FIPS detection could cause compatibility and compliance failures.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 High severity · 1 Medium severity

Open (3)
What changed in this PR

Adds FIPS-aware TLS provider selection so default policies avoid non-certified PQC providers.

Changes:

  • Detects Linux FIPS mode and defaults to JVM providers.
  • Adds policy tests and consolidated documentation.
  • Advances modules to version 2.1.0.
File Description
release-notes-2.1.0.md Documents FIPS behavior.
release-notes-2.0.2.md Removes obsolete release template.
README.md Consolidates provider-policy guidance.
pom.xml Updates parent project version.
caf-ssl-core/​pom.xml Updates core parent version.
caf-ssl-dropwizard/​pom.xml Updates Dropwizard parent version.
caf-ssl-spring/​pom.xml Updates Spring parent version.
caf-ssl-core/​src/​main/​java/​com/​github/​cafapi/​ssl/​core/​SslProviderConfigurator.java Implements FIPS detection and policy resolution.
caf-ssl-core/​src/​test/​java/​com/​github/​cafapi/​ssl/​core/​SslProviderConfiguratorTest.java Tests FIPS policy decisions.

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

Comment on lines +148 to +149
public static boolean shouldUseBouncyCastle(final String policy, final boolean runtimePqcSupported,
final boolean fipsEnabled)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fixed in 4c92729.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Addressed in 9b5b385.

Comment on lines +103 to +107
@Test
void isFipsEnabledNeverThrows()
{
// Fail-safe contract: probing for FIPS mode must never abort startup.
SslProviderConfigurator.isFipsEnabled();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Addressed in 1c33e22.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fixed in afbc0df.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

4 participants