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

Add Windows Secure Boot key upgrade tests #277

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

dinhngtu
Copy link
Member

As we're including more Secure Boot keys by default in varstored, add tests for upgrading guest keys from the old defaults to the new ones, using certificates provided by microsoft/secureboot_objects. Additionally, disable tests that aren't applicable any more with the variable changes.

Since the new SB variables each include multiple certificates, refactor the Certificate and EFIAuth classes to support them.

Finally, add some tweaks for running tests with VM UUIDs.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
Also make sure that the cloned VMs are deleted after testing.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
Separate a variable's owner key and non-owner certs.
This allows creating Secure Boot variables with multiple certificates inside.
Also make self-signed cert/key initialization explicit.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
We're now shipping more Secure Boot variables with varstored.
As such, the following tests have changed:

- test_start_vm_without_uefi_vars_on_pool_with_only_pk: No longer
  applicable.
- test_clear_custom_pool_certificates: Only check for symlink when
  clearing certs, as the condition that hosts only have PK after
  `secureboot-certs clear` is no longer true.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant