Conversation
…plates Both the cloudscanner and DSPM instance templates lacked a shielded_instance_config block, so instances failed to create under org policies requiring Shielded VM with Secure Boot (e.g. HarborFreight), leaving the MIG with no running scanners. Add shielded_instance_config to both templates with vTPM and integrity monitoring always on, and Secure Boot gated behind a new enable_secure_boot variable (default true). The default Ubuntu LTS boot image is UEFI_COMPATIBLE and signed, so Secure Boot works out of the box. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
vTPM and integrity monitoring default to on in the provider and were already enabled for the UEFI_COMPATIBLE Ubuntu image, so drop the redundant explicit lines and configure only Secure Boot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The pinned TRIVY_VERSION v0.63.0 release was removed upstream (404 from the trivy releases), so the Security Scan job could no longer download the binary and failed on every run. Bump to the current latest release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ahumph
reviewed
Jun 19, 2026
| # they already were for the UEFI_COMPATIBLE default Ubuntu LTS image. | ||
| # Secure Boot requires that UEFI_COMPATIBLE, signed image. | ||
| shielded_instance_config { | ||
| enable_secure_boot = var.enable_secure_boot |
Contributor
There was a problem hiding this comment.
According to Google's docs, requireShieldedVm needs the other two, so I would maybe be explicit here to be safe?
shielded_instance_config {
enable_secure_boot = true
enable_vtpm = true
enable_integrity_monitoring = true
}
Contributor
Author
There was a problem hiding this comment.
That's what our friend Claude suggested to begin with - that's sorted now
Configure all three Shielded VM settings explicitly (Secure Boot, vTPM, integrity monitoring) rather than relying on provider defaults, to fully satisfy org policies requiring a complete Shielded VM configuration. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ahumph
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
HarborFreight had no scanners spinning up: the MIG could not create instances because both instance templates (UP-2441) lacked a
shielded_instance_configblock, failing an org policy requiring Shielded VM with Secure Boot (constraints/compute.requireShieldedVm).Change
Added
shielded_instance_configto both thecloudscannerand DSPM instance templates, with all three Shielded VM settings enabled explicitly:enable_secure_bootvariable (defaulttrue) so a customer on a non-UEFI customboot_imagecan opt out.Validation
UEFI_COMPATIBLE, signed boot image.ubuntu-os-cloud/ubuntu-2404-lts-amd64(live:ubuntu-2404-noble-amd64-v20260615) carries theUEFI_COMPATIBLEguest OS feature and Ubuntu LTS images are signed for Secure Boot. No image change needed.terraform fmt -checkandterraform validatepass.Also: CI fix (trivy)
The pinned
TRIVY_VERSIONv0.63.0was removed upstream (404 from the trivy releases), so the Security Scan job failed on every run. Bumped tov0.71.2(current latest).Rollout note
Applying replaces the instance templates and recreates the MIGs (
create_before_destroy/replace_triggered_by), so scanner VMs will cycle on rollout — expected.🤖 Generated with Claude Code