Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-131233 / 25.04 / Update to test for FIPS 3.0.9 #14629

Merged
merged 36 commits into from
Oct 23, 2024
Merged

NAS-131233 / 25.04 / Update to test for FIPS 3.0.9 #14629

merged 36 commits into from
Oct 23, 2024

Conversation

aiden3c
Copy link
Contributor

@aiden3c aiden3c commented Oct 8, 2024

This is the test for verifying our FIPS version, as well as checking that middleware reports the proper reboot reasons upon FIPS being enabled.

Enabling/disabling FIPS takes some time, so I also had to up the SSH command timeout through an optional argument.

This is paired with this PR to actually apply the new FIPS changes.

Passing tests as always

@aiden3c aiden3c requested a review from a team October 8, 2024 17:39
@bugclerk bugclerk changed the title Update to test for FIPS 3.0.9 NAS-131233 / 25.04 / Update to test for FIPS 3.0.9 Oct 8, 2024
@bugclerk
Copy link
Contributor

bugclerk commented Oct 8, 2024

@aiden3c aiden3c requested review from sonicaj and a team October 9, 2024 14:58
@aiden3c aiden3c force-pushed the NAS-131233 branch 3 times, most recently from 1d033c5 to 560f799 Compare October 11, 2024 18:09
@aiden3c aiden3c force-pushed the NAS-131233 branch 2 times, most recently from 7e513ee to 6bcd5aa Compare October 14, 2024 11:33
@aiden3c aiden3c requested review from yocalebo and a team October 14, 2024 11:49
@aiden3c
Copy link
Contributor Author

aiden3c commented Oct 14, 2024

@sonicaj just pinging for review's sake

@pytest.mark.skipif(not ha, reason='Test only valid for HA')
def test_fips_version():
# The reason we have a set of commands in a payload is because of some annoying FIPS technicalities.
# Basically, when FIPS is enabled, we can't use SSH because the SSH key used by root isn't using a FIPS provided algorithm. (this might need to be investigated further)
Copy link
Member

Choose a reason for hiding this comment

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

Btw you should be able to pull that off with -c aes128-ctr iirc flag (not saying it's necessary but just sharing here)

tests/api2/test_openssl.py Show resolved Hide resolved
@aiden3c aiden3c merged commit 8007cf9 into master Oct 23, 2024
7 checks passed
@aiden3c aiden3c deleted the NAS-131233 branch October 23, 2024 18:53
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants