-
Notifications
You must be signed in to change notification settings - Fork 182
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
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
There was a problem hiding this 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.
3ae15d9
to
58b2d02
Compare
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? |
There was a problem hiding this 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.
58b2d02
to
0c01d09
Compare
https://github.com/coreos/coreos-assembler/pull/4181/files#r2190605106
|
0c01d09
to
9d569b8
Compare
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.
9d569b8
to
f38ba6e
Compare
Should be good now. |
There was a problem hiding this 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.
Ensure that setting up a LUKS device with FIPS incompatible algorithms will fail when FIPS mode is enabled.