Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

gcp: Add UEFI_COMPATIBLE and SECURE_BOOT - #1060

Merged
arithx merged 1 commit into
coreos:masterfrom
cgwalters:gcp-uefi-secure-boot
Oct 8, 2019
Merged

arithx merged 1 commit into
coreos:masterfrom
cgwalters:gcp-uefi-secure-boot

Conversation

@cgwalters

Copy link
Copy Markdown
Member

For FCOS we support both. Mainly I'm adding these because
they seem to be prerequisites for accessing the "vTPM" which
is part of the "Shielded Cloud" umbrella. We want access to the vTPM
to enable support for LUKS bound to vTPM for example. Also,
for OpenShift, I think at some point we want to enable using TPM
as a "strong identity" for nodes.

@jlebon jlebon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't played much with GCP, but this looks reasonable to me!

@cgwalters

Copy link
Copy Markdown
Member Author

This gets me a vTPM, though for some reason it still doesn't seem to be booting in UEFI mode with Secure Boot.

&compute.GuestOsFeature{
Type: "UEFI_COMPATIBLE",
},
&compute.GuestOsFeature{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bgilbert do you know if CL+GCE supports this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UEFI should work. Secure Boot does not.

@bgilbert bgilbert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SECURE_BOOT will need to condition on the OS.

@bgilbert

Copy link
Copy Markdown
Contributor

Actually, let's condition both flags on the OS. We shouldn't change the CL image configuration at this point.

@cgwalters

cgwalters commented Oct 1, 2019 •

Copy link
Copy Markdown
Member Author

How do we condition on the OS? Does that imply adding a new CLI argument here and passing it from cosa?

(When can we create a cl-stable branch for mantle and not have to think about possibly breaking CL in mantle PRs?)

@bgilbert

bgilbert commented Oct 1, 2019

Copy link
Copy Markdown
Contributor

How do we condition on the OS? Does that imply adding a new CLI argument here and passing it from cosa?

plume, which we should be using, already knows what OS it's releasing. For ore we'd have to add a CLI argument.

For FCOS we support both.  Mainly I'm adding these because
they seem to be prerequisites for accessing the "vTPM" which
is part of the "Shielded Cloud" umbrella.  We want access to the vTPM
to enable support for LUKS bound to vTPM for example.  Also,
for OpenShift, I think at some point we want to enable using TPM
as a "strong identity" for nodes.
@cgwalters
cgwalters force-pushed the gcp-uefi-secure-boot branch from 947b6fc to 01ef893 Compare October 1, 2019 18:49
@cgwalters

Copy link
Copy Markdown
Member Author

OK updated to pass an arg.

plume, which we should be using, already knows what OS it's releasing.

Yeah...it just hurts my head to even try to think about adding a fourth case for plume. It's really the opposite direction for RHCOS anyways, where the "release" is not directly to users but through the installer or a release image.

@arithx

arithx commented Oct 2, 2019

Copy link
Copy Markdown
Contributor

(When can we create a cl-stable branch for mantle and not have to think about possibly breaking CL in mantle PRs?)

We talked about this OOB and are going to start preparing to branch mantle for CL.

@bgilbert
bgilbert dismissed their stale review October 8, 2019 03:37

Superseded

@arithx

arithx commented Oct 8, 2019

Copy link
Copy Markdown
Contributor

We had some OOB discussions around whether this should be gated post branching for CL. There were some concerns raised about whether or not Fedora Cloud Base would have similar restrictions on those options. Going to merge this as is and we can revisit it at a later date.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants