Skip to content

Conversation

@gerblesh
Copy link

@gerblesh gerblesh commented Dec 2, 2025

add autoenroll to sdboot

installs .auth files from /usr/lib/bootc/keys into ESP/loader/keys/auto. Currently uses cfs file APIs and is a little rough. Not sure if this should be in composefs-boot rather than bootc. The directory /usr/lib/bootc/keys probably isn't the best choice although at least it means that the auth files are "measured" when the cfs digest is taken.

Note that this is missing some of the bits from CI for this to be properly tested. I will try to get that done when I can though

Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>

add autoenroll to sdboot

Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>

asdf

Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for auto-enrolling Secure Boot keys for sd-boot from .auth files located in /usr/lib/bootc/keys within a composefs image. The changes look good overall. My review includes a suggestion to make the key discovery process more robust by handling cases where the keys directory does not exist, and a minor performance improvement to avoid an unnecessary allocation within a loop.

Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>
Gareth Widlansky added 4 commits December 2, 2025 13:32
Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>
Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>
Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>
Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants