Skip to content

Conversation

@martinuy
Copy link

@martinuy martinuy commented Oct 20, 2022

Search this PR in Red Hat Jira

As described in RH2134669 [1], I'd like to propose a fix for this issue that keeps the attributes for registered services and algorithms aligned between FIPS and non-FIPS modes. According to my assessment, the only security providers affected by this issue were SUN (SunEntries.java) and SunRsaSign (SunRsaSignEntries.java).

--
[1] - https://bugzilla.redhat.com/show_bug.cgi?id=2134669

@martinuy martinuy marked this pull request as ready for review October 25, 2022 00:58
@martinuy martinuy requested a review from franferrax October 25, 2022 00:58
franferrax
franferrax previously approved these changes Oct 27, 2022
Copy link

@franferrax franferrax left a comment

Choose a reason for hiding this comment

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

Hi @martinuy,

This looks good to me, I've also checked similar systemFipsEnabled lock-down usages in other providers but everything seems fine.

I left a comment in the test, but it doesn't block the approval, it's up to you if you want to simplify the code or not.


Just for reference, here is the comment where we identified this issue: rh-openjdk/jdk11u#5 (comment)

@martinuy
Copy link
Author

martinuy commented Nov 3, 2022

@franferrax please have a look again. Thanks.

Copy link

@franferrax franferrax left a comment

Choose a reason for hiding this comment

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

I've reviewed the new 1970368 changes, everything looks fine, thanks @martinuy for implementing the suggestions.

Copy link

@gnu-andrew gnu-andrew left a comment

Choose a reason for hiding this comment

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

Looks good to me too. We only need to block provider additions that would allow non-FIPS crypto to take place.

@gnu-andrew
Copy link

Test failures seem to be just a download issue on Windows and the known issue due to debugging output that was since resolved when we merged 17.0.5. Merging this.

@gnu-andrew gnu-andrew merged commit cc67466 into rh-openjdk:fips-17u Jan 13, 2023
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.

3 participants