CP-12697 Enable SB for AWS on first boot (no shim) #543
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.
Secure boot have keys (auth files) enrolled in the instance's EFI firmware. Given we deliver an VM image, we want to enroll the keys on the instance's first boot.Background
A new delphix-sb-enroll.service that enrolls the keys and immediately reboots the system. This way our appliance will boot with secure boot as early as possible, before delphix-platform.service runs for the first time.Solution
The delphix-sb-enroll service will activate secure-boot only for VMs running on AWS, i.e. does nothing for VMs on other cloud platforms. And enrollment is done only once, subsequent reboots have no effect.
Testing Done
Secure boot is enabled after reboot
Verified service ran and rebooted
Verify service does nothing on start (not AWS)