-
Notifications
You must be signed in to change notification settings - Fork 557
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
base: main
Are you sure you want to change the base?
Conversation
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]>
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.
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") |
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.
I'm not sure why it got removed here
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.
If we run all tests with TPM2 we don't need it here. However we shouldn't do it for all
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.
ah, I see it 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.
we have at least in the misc
section the test with UEFI disabled (BIOS mode), this could be a good place with disabled tpm2
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]