Skip to content

[RFE] Support Secure Boot #501

@jepio

Description

@jepio

Current situation

Flatcar currently does not support Secure Boot. We use a really old fork of shim and grub, and our artifacts are not signed in a way that works on machines with official UEFI CA keys.

Impact

Users can't run UEFI with Secure Boot enabled. This doesn't only affect bare metal installs but also some VMs (e.g. Azure Trusted Launch https://azure.microsoft.com/en-us/blog/announcing-preview-of-azure-trusted-launch-for-virtual-machines/).

Ideal future situation

Flatcar images contain EFI boot firmware signed with official UEFI CA keys, which make them compatible with Secure Boot on default provisioned UEFI firmware.

Implementation options

We still have https://github.com/kinvolk/flatcar-scripts/blob/main/image_inject_bootchain around. Our grub and kernel binaries are signed for secure boot but only with a dev key. We'll need to:

  • upgrade grub (with our patches - I believe most are obsolete)
  • upgrade shim
  • set up signing infrastructure with an offline CA key, and an online signing key
  • follow https://github.com/rhboot/shim-review to get a shim binary with our CA certificate signed
  • set up a pipeline to sign grub and kernel and inject them into release artifacts

Additional information

[ Please Add any information that does not fit into any of the above sections here ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🪵Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions