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

chore: enable TPM2 by default in CI #9783

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

Conversation

dsseng
Copy link
Member

@dsseng dsseng commented Nov 22, 2024

With some tests requiring TPM and others benefitting from it (SELinux label test) it's better to always enable it as our CI has swtpm installed.

Do not automatically enable TPM2 in talosctl as it might be a breaking change to users who do not have swtpm available.

Partially reverts: a13f82c regarding tests

Signed-off-by: Dmitry Sharshakov [email protected]

With some tests requiring TPM and others benefitting from it (SELinux label test) it's better to always enable it as our CI has swtpm installed.

Do not automatically enable TPM2 in talosctl as it might be a breaking change to users who do not have swtpm available.

Partially reverts: a13f82c regarding tests

Signed-off-by: Dmitry Sharshakov <[email protected]>
Copy link
Member Author

@dsseng dsseng left a comment

Choose a reason for hiding this comment

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

From @frezbo:

also we might need some tests with tpm2 disabled so that we know our skip PCR extension works

We need to know what test must be run without TPM2 available and add a param to them

@@ -24,7 +24,7 @@ case "${FACTORY_BOOT_METHOD:-iso}" in
QEMU_FLAGS+=("--ipxe-boot-script=${FACTORY_SCHEME}://${PXE_FACTORY_HOSTNAME}/pxe/${FACTORY_SCHEMATIC}/${FACTORY_VERSION}/metal-amd64")
;;
secureboot-iso)
QEMU_FLAGS+=("--iso-path=${FACTORY_SCHEME}://${FACTORY_HOSTNAME}/image/${FACTORY_SCHEMATIC}/${FACTORY_VERSION}/metal-amd64-secureboot.iso" "--with-tpm2" "--encrypt-ephemeral" "--encrypt-state" "--disk-encryption-key-types=tpm")
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure why it got removed here

Copy link
Member Author

Choose a reason for hiding this comment

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

If we run all tests with TPM2 we don't need it here. However we shouldn't do it for all

Copy link
Member

Choose a reason for hiding this comment

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

ah, I see it now

Copy link
Member

Choose a reason for hiding this comment

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

we have at least in the misc section the test with UEFI disabled (BIOS mode), this could be a good place with disabled tpm2

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.

3 participants