Skip to content

Conversation

@danbia
Copy link
Collaborator

@danbia danbia commented Dec 9, 2025

Enable interaction with the transparency ecosystem for boot loading operation using the boot-transparency Go library functions.

@danbia danbia requested a review from abarisani December 9, 2025 23:15

// loadFromUefiRoot reads the transparency configuration files from
// the UEFI partition. The entry argument allows per-bundle configurations.
func (c *Config) loadFromUefiRoot(entryPath string) (err error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Per earlier comments, why UEFI specific?

@abarisani
Copy link
Contributor

To address #9 the patch should always honor forward slashes when constructing paths for fs.FS and os.PathSeparator for any eventual pkg honoring os (e.g. filepath).


// Boot transparency configuration root directory and filenames.
const (
transparencyRoot = `/transparency`
Copy link
Contributor

@abarisani abarisani Jan 13, 2026

Choose a reason for hiding this comment

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

As this is used only once in the code, it feels up to the caller rather than being hard coded here (hashPrefix or similar?). Also, what is the purpose of the leading /?

As this package has expectations on the file names to load these constants should probably be exported for documentation.

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