Skip to content

kola/tests: Add failing test for FIPS & LUKS #4181

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

travier
Copy link
Member

@travier travier commented Jul 4, 2025

Ensure that setting up a LUKS device with FIPS incompatible algorithms will fail when FIPS mode is enabled.

Copy link

openshift-ci bot commented Jul 4, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

gemini-code-assist[bot]

This comment was marked as outdated.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a negative test case to ensure that LUKS setup with FIPS-incompatible algorithms fails correctly when FIPS mode is enabled. There are compilation errors due to undefined variables and mismatched function names. Renaming functions and extracting the Ignition config into a package-level variable will resolve these issues.

@travier travier force-pushed the main-fips-luks-argon2i branch 3 times, most recently from 3ae15d9 to 58b2d02 Compare July 4, 2025 15:18
@travier travier marked this pull request as ready for review July 4, 2025 15:18
@travier travier requested a review from jlebon July 4, 2025 15:18
@travier
Copy link
Member Author

travier commented Jul 4, 2025

Looks like the test waits until the timeout if it does not fail, so maybe I should add a "poweroff" command to execute in the host to the test to make it fail quicker?

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

Nice, thanks for doing this!

Looks like the test waits until the timeout if it does not fail, so maybe I should add a "poweroff" command to execute in the host to the test to make it fail quicker?

Honestly also fine if it only delays in the failure case. OTOH, it's not hard either so up to you.

@travier travier force-pushed the main-fips-luks-argon2i branch from 58b2d02 to 0c01d09 Compare July 7, 2025 16:47
@travier
Copy link
Member Author

travier commented Jul 7, 2025

Looks like the test waits until the timeout if it does not fail, so maybe I should add a "poweroff" command to execute in the host to the test to make it fail quicker?

Honestly also fine if it only delays in the failure case. OTOH, it's not hard either so up to you.

https://github.com/coreos/coreos-assembler/pull/4181/files#r2190605106

Looks like this sets the timeout to 4 minutes so that should be fine. Will have to check as I copied this from the other failure tests.

@travier travier force-pushed the main-fips-luks-argon2i branch from 0c01d09 to 9d569b8 Compare July 7, 2025 16:59
Ensure that setting up a LUKS device with FIPS incompatible algorithms
will fail when FIPS mode is enabled.

Only run this on QEMU as it should behave the same way on all platforms.
@travier travier force-pushed the main-fips-luks-argon2i branch from 9d569b8 to f38ba6e Compare July 9, 2025 09:58
@travier
Copy link
Member Author

travier commented Jul 9, 2025

Should be good now.

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

LGTM! Feel free to merge when ready.

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.

2 participants