Adding or enabling trusted platform module (TPM) #4421
Replies: 9 comments 5 replies
-
Hi @veikkoeeva! |
Beta Was this translation helpful? Give feedback.
-
Hi, @miketimofeev!
Unfortunately no. Context: Today I saw https://techcommunity.microsoft.com/t5/azure-confidential-computing/announcing-general-availability-of-azure-trusted-launch-for/ba-p/2871755. I also read https://docs.microsoft.com/en-us/azure/virtual-machines/trusted-launch, but I don't know how up-to-date it is (e.g. considering VM images). So it looks to me it should be possible to enable TPM on Azure virtual machines if this is a prerequisite. I have some TPM related action code at https://github.com/lumoin/Verifiable/blob/main/.github/workflows/main.yml#L76. It asks from the system if TPM is enabled (the answer: no). I think I can't try to enable TPM in code since it would require a reboot. So, I thought about skipping Windows and to install a TPM simulator from a Linux repository, but I run into D-Bus errors as detailed at tpm2-software/tpm2-abrmd#778 (comment). I have been time-to-time wondering what would it take to automatically enable a TPM. As today I saw the aforementioned TPM link, I got myself finally on the move to write this discussion item here. I might think for testing purposes a simulator works just fine, but for a reason or another I can't get one installed on Linux, as noted in the other issue. A simulator for Windows is probably a bit more work since it'd need to be compiled from sources at https://github.com/microsoft/TSS.MSR. Summa summarum: I wonder if there would a reason to not to provide either a TPM or a simulator? If it'd be possible to go ahead, what would it require in practice to provide either one? |
Beta Was this translation helpful? Give feedback.
-
@veikkoeeva thanks for such a detailed explanation! I'm afraid we still use gen1 images as you can see from our packer templated (there should be So as a first step we need to migrate to g2 if it is possible and check whether TPM can be enabled after that or not. I'll try to check if we can switch to g2, but it will take some time, no ETA for now. |
Beta Was this translation helpful? Give feedback.
-
@veikkoeeva I tried to build g2 image and it turned out that unmanaged disks are not supported. This is a blocker for us as we can't migrate everything to managed disks at the moment. |
Beta Was this translation helpful? Give feedback.
-
from #6783 (comment) |
Beta Was this translation helpful? Give feedback.
-
from #5104 one comment
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Updating the link, it appears the image template line is now at https://github.com/actions/runner-images/blob/main/images/windows/templates/windows-2022.pkr.hcl#L160 . |
Beta Was this translation helpful? Give feedback.
-
We've bumped into a similar need for TPM testing in our Github Actions infrastructure. I stumbled across this discussion and just wanted to confirm that the work being done here would eventually be available in Github-hosted runners if it's able to be done, is that correct? |
Beta Was this translation helpful? Give feedback.
-
Hi!
Now that trusted platform modules (TPMs) are becoming more widely used, would it be possible to enable or configure a simular for them by default in virtual environments? This could help testing software and scripts that use them.
Beta Was this translation helpful? Give feedback.
All reactions