Red Hat shows how to verify a sealed RHEL root filesystem on EC2
The RHEL 10.2 Technology Preview walkthrough enrolls custom Secure Boot keys at AMI registration and checks file integrity on the running EC2 instance.
Red Hat Developer’s Dec. 3 walkthrough shows how to move a sealed RHEL image mode deployment from a local VM to an x86_64 Amazon EC2 instance. The goal is to verify more than the bootloader: the example ties the root filesystem’s integrity checks to the signed boot artifacts. It is a deployment example, not a product release announcement.
What changes on AWS
EC2 doesn’t expose UEFI variables in the same way as the local QEMU workflow. Instead of injecting keys into a local firmware variables file, Red Hat’s example builds an AWS-format UEFI variable store offline and supplies it when registering the Amazon Machine Image. The store enrolls the team’s own Secure Boot certificates. The example also builds an AWS-specific image: EC2 uses a different serial console device, and the image adds cloud-init so it can obtain the SSH key from instance metadata. Those build inputs matter because the console setting is embedded in the signed unified kernel image and adding cloud-init changes the root filesystem digest.
What to check after launch
For teams evaluating sealed bootc images on EC2, a successful SSH login is not the test. The walkthrough checks that Secure Boot is enabled in user mode, that the root is mounted as a composefs overlay with verity=require, and that the kernel command line carries the expected composefs digest. Each check answers a different question: whether firmware is enforcing the boot signature policy, whether the root mount requires file verification, and whether the signed kernel image passed the expected digest to early userspace.
Red Hat’s example recipes cover the path from building the image to creating the EBS snapshot, registering the AMI, launching an instance and checking the seal. The test recipe tears down the AWS resources after verification. Start with the guide’s UEFI-capable test configuration and verify both the firmware state and the root mount before treating a locally tested image as equivalent on EC2.
sources
comments · 0