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

Execution fails when shielded VMs org policy is enforced #1834

Open
peterschen opened this issue Jan 20, 2022 · 3 comments
Open

Execution fails when shielded VMs org policy is enforced #1834

peterschen opened this issue Jan 20, 2022 · 3 comments

Comments

@peterschen
Copy link
Contributor

When the constraints/compute.requireShieldedVm organization policy is enforced the execution fails as the helper VMs that are created by daisy do not enable secure boot and there is no flag to enable it.

@peterschen
Copy link
Contributor Author

peterschen commented Jan 20, 2022

Only external IP address constraints are handled by daisy:

[windows-2019-dc-uefi-byol]: 2022-01-18T17:44:19+01:00 Error running workflow: step "windows-build" run error: step "run-bootstrap" run error: googleapi: Error 412: Constraint constraints/compute.vmExternalIpAccess violated for project [REDACTED]. Add instance projects/[REDACTED]/zones/europe-west4-b/instances/bootstrap-windows-2019-dc-uefi-byol-windows-build-n1jlb to the constraint to use external IP with it.
More details:
Reason: conditionNotMet, Message: Constraint constraints/compute.vmExternalIpAccess violated for project [REDACTED]. Add instance projects/[REDACTED]/zones/europe-west4-b/instances/bootstrap-windows-2019-dc-uefi-byol-windows-build-n1jlb to the constraint to use external IP with it.
Reason: conditionNotMet, Message: Constraint constraints/compute.requireShieldedVm violated for project projects/[REDACTED]. Secure Boot is not enabled in the 'shielded_instance_config' field. See https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints for more information.

[windows-2019-dc-uefi-byol]: 2022-01-18T17:44:19+01:00 Workflow "windows-2019-dc-uefi-byol" cleaning up (this may take up to 2 minutes).

@zoran15
Copy link
Contributor

zoran15 commented Jan 21, 2022

Hi Peter,
Thansk for the report.

Can you please include steps to reproduce this issue? compute-image-tools project contains many different tools so we need to know which tool failed and what where the flags/configuration for it.

@peterschen
Copy link
Contributor Author

@zoran15 Sorry for the late reply. I'm building a Windows BYOL base image using this guide. The project I've been using for the build has organization policies set that enforce no external IPs and Shielded VMs.

@peterschen peterschen removed their assignment May 5, 2022
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

No branches or pull requests

2 participants