Skip to content

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.

@travier
Copy link
Member Author

travier commented Aug 4, 2025

Let's start with this one and I'll make another PR for the Ignition testing parts.

@travier travier merged commit cfac216 into coreos:main Aug 4, 2025
6 checks passed
@travier travier deleted the main-fips-luks-argon2i branch August 4, 2025 14:24
aaradhak added a commit to aaradhak/coreos-assembler that referenced this pull request Aug 13, 2025
aaradhak added a commit to aaradhak/coreos-assembler that referenced this pull request Aug 13, 2025
aaradhak added a commit to aaradhak/coreos-assembler that referenced this pull request Aug 13, 2025
aaradhak added a commit to aaradhak/coreos-assembler that referenced this pull request Aug 13, 2025
@aaradhak
Copy link
Member

/cherrypick rhcos-4.16

@openshift-cherrypick-robot

@aaradhak: new pull request created: #4261

In response to this:

/cherrypick rhcos-4.16

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@aaradhak
Copy link
Member

/cherrypick rhcos-4.15
/cherrypick rhcos-4.14

@openshift-cherrypick-robot

@aaradhak: new pull request created: #4262

In response to this:

/cherrypick rhcos-4.15
/cherrypick rhcos-4.14

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-cherrypick-robot

@aaradhak: new pull request created: #4263

In response to this:

/cherrypick rhcos-4.15
/cherrypick rhcos-4.14

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@aaradhak
Copy link
Member

/cherrypick rhcos-4.19
/cherrypick rhcos-4.18
/cherrypick rhcos-4.17

@openshift-cherrypick-robot

@aaradhak: new pull request created: #4264

In response to this:

/cherrypick rhcos-4.19
/cherrypick rhcos-4.18
/cherrypick rhcos-4.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-cherrypick-robot

@aaradhak: new pull request created: #4265

In response to this:

/cherrypick rhcos-4.19
/cherrypick rhcos-4.18
/cherrypick rhcos-4.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-cherrypick-robot

@aaradhak: new pull request created: #4266

In response to this:

/cherrypick rhcos-4.19
/cherrypick rhcos-4.18
/cherrypick rhcos-4.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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.

4 participants