Skip to content

RFC: SBOM Discovery and Publication - #1868

Open
Javagedes wants to merge 3 commits into
OpenDevicePartnership:mainfrom
Javagedes:personal/joeyvagedes/sbom-discovery-rfc
Open

Javagedes wants to merge 3 commits into
OpenDevicePartnership:mainfrom
Javagedes:personal/joeyvagedes/sbom-discovery-rfc

Conversation

@Javagedes

Copy link
Copy Markdown
Contributor

Description

Initial RFC for SBOM discovery and publication mechanisms that can be supported in both the Patina and EDK II DXE Core.

RFC Status: Draft

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

N/A

Integration Instructions

N/A

@Javagedes Javagedes added the rfc A request-for-change proposal label Oct 12, 2026
@patina-automation

patina-automation Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

✅ QEMU Validation Passed

All QEMU validation jobs completed successfully.

Note: Q35 is only built on Windows hosts (QEMU boot is disabled due to a QEMU vfat issue).

Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/42872534295

Boot Time to EFI Shell

Platform Elapsed
ArmVirt (Linux Host) 16.8s
Q35 (Linux Host) 18.1s

Dependencies

Repository Ref
patina 3161dbb
patina-dxe-core-qemu a0a577f
patina-fw-patcher 820b0ae
patina-qemu firmware v4.1.4
patina-qemu build script e47cbba

Binary Size Report

Platform Commit Δ Debug Δ Release Δ Debug
(LZMA)
Δ Release
(LZMA)
Q35 (x86_64) Base:48f6718
PR:3161dbb
 
1.24 MB
1.24 MB
Δ 0.00 B
993.00 KB
993.00 KB
Δ 0.00 B
477.89 KB
477.50 KB
Δ -397.00 B
389.78 KB
389.81 KB
Δ +26.00 B
ArmVirt (aarch64) Base:48f6718
PR:3161dbb
 
1.12 MB
1.12 MB
Δ 0.00 B
904.50 KB
904.50 KB
Δ 0.00 B
388.48 KB
388.48 KB
Δ +3.00 B
319.66 KB
319.68 KB
Δ +16.00 B

Compressed sizes use LZMA-alone format at preset 6 (xz --format=lzma -6).

Shared QEMU integration: a0a577f.

This comment was automatically generated by the Patina QEMU PR Validation Post workflow.

@github-actions github-actions Bot added the impact:non-functional Does not have a functional impact label Oct 12, 2026
@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

| Format: vendor-defined | `0xFF` |
| Compression: none | `0x00` |
| Compression: zlib | `0x01` |
| Compression: LZMA | `0x02` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider adding the UEFI spec compression method

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can add this, but IIRC there was some pushback against adding the UEFI spec compression because the use case is for the OS and general OS users to be able to decompress an SBOM. UEFI / TIANO compression / decompression is not something that is readily available.

Like I mentioned, I'm not against adding it, however. It's not impossible for a tool that supports parsing this data to add that decompression functionality.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

i suggest not adding until needing it

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

i suggest not adding until needing it


typedef struct {
UINT8 Revision;
UINT16 HeaderLength;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think there would be value in having some sort of identifier (probably a GUID) in the structure to help parse these fields? As it stands, if I want to find the SBOM for Patina or OneCrypto specifically, I would have to decompress and parse each and every SBOM until I found it, right? It seems reasonable to take the file name (guid) or input GUID to make identifying and parsing distinct.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is this the same idea related to this conversation? #1868 (comment)

I'm not against an identifier, but I don't think a GUID is the right choice. anyone / anything can produce an SBOM entry that we will collect. This will make mapping the GUID back to something difficult. Someone somewhere would have to manage some lookup table of GUID to ID. I'd rather some sort of string or something if we are going to do that. We just need to be careful because SBOMs are supposed to be self-describing. I agree having something outside of the SBOM may be useful based off of your proposed issue where the SBOM is corrupt and cannot be parsed or cannot be decompressed. But we don't want too much information else we are duplicating information in the SBOM itself.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think a string makes sense given the goal is to not have a globally aligned id map.

GUID lets everyone make up their own with confidence that we shouldn't have a conflict. Well known guids can then get published in various forums.

Is there some key in the root of the SBOM that could be reused and doesn't have to be guaranteed unique but at least would make practical parsing/iterating compressed SBOMs faster?

@Javagedes
Javagedes force-pushed the personal/joeyvagedes/sbom-discovery-rfc branch 2 times, most recently from 8c28cdc to 99a2dd8 Compare November 10, 2026 17:43
Initial RFC for SBOM discovery and publication mechanisms that can be
supported in both the Patina and EDK II DXE Core.
@Javagedes
Javagedes force-pushed the personal/joeyvagedes/sbom-discovery-rfc branch from 99a2dd8 to 3161dbb Compare November 10, 2026 17:59
standalone SBOMs together as an N-entry list in one ACPI SBOM table. It does not build a single SBOM
from the various SBOM sources. The discovery mechanisms are:

1. An SBOM entry embedded in a PE/COFF image's `.sbom` section.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The protocol interface is one serialized SBOM table entry:

```c
#define EFI_SBOM_ENTRY_PROTOCOL_GUID \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

do you have UEFI / PI spec approval for EFI designation?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No. I am not taking it there until after RFC work is complete, but that is the intent. I can remove all usage of EFI_ until that time comes.


1. Parse the source PE/COFF image and search for a section named `.sbom`.
2. If the section is absent, continue without logging an error.
3. Parse one structurally well-formed serialized `EFI_ACPI_SBOM_TABLE_ENTRY`, including its payload,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same here with the EFI

@@ -0,0 +1,573 @@
# RFC: `Firmware SBOM Discovery and ACPI Publication`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

for your data layout you might try using mermaid
https://mermaid.ai/open-source/syntax/packet.html

@spbrogan spbrogan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

approved once comments are addressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact rfc A request-for-change proposal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants