Skip to content

serializer: support checked SNP ID block replacement - #137

Merged
Chris Oo (chris-oo) merged 1 commit into
microsoft:mainfrom
mingweishih:legacy-hcl-endorsements
Oct 29, 2026
Merged

Chris Oo (chris-oo) merged 1 commit into
microsoft:mainfrom
mingweishih:legacy-hcl-endorsements

Conversation

@mingweishih

Copy link
Copy Markdown
Contributor

Preserve image identity and directive order when applying externally signed ID-block authentication. Validate policy, launch digest, and unambiguous SNP context, and recheck appended directives at serialization.

@chris-oo Chris Oo (chris-oo) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks fine other than the cargo.toml change i don't think is needed anymore

Comment thread Cargo.toml Resolved
Preserve image identity and directive order when applying externally signed ID-block authentication. Validate policy, launch digest, and unambiguous SNP context, and recheck appended directives at serialization.

Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
@chris-oo
Chris Oo (chris-oo) merged commit 568e271 into microsoft:main Oct 29, 2026
6 checks passed
Ming-Wei Shih (mingweishih) added a commit to mingweishih/openvmm that referenced this pull request Nov 3, 2026
Support external signing workflows for existing IGVM images without
rebuilding them or substituting image identity defaults. Keep CoRIM
endorsement preparation separate from SNP ID-block signing.

- Add prepare-endorsement and verify-endorsement for SNP, TDX, and VBS,
  with signing artifacts, hash provenance, and verification of the
  selected endorsement without permitting unrelated image changes.
- Add prepare-snp-id-block with an optional decoded JSON dump and
  add-snp-id-block --replace-existing for identity-preserving external
  signatures. Validate existing signatures or unsigned placeholders.
- Derive SNP endorsement SVN from an existing ID block, or require an
  explicit SVN when absent, as for TDX/VBS. Reject mismatches in both
  CoRIM preparation and ID-block addition or replacement.
- Allow explicit firmware DLL resource and language selection for
  inspection and finalized endorsement verification.
- Pin igvm and igvm_defs to upstream revision 568e2719972e, including
  checked SNP ID-block replacement from microsoft/igvm#137.
- Document the independent signing workflows and trust boundaries in
  the igvmfilegen tool guide. Signature verification does not establish
  signer authorization or certificate trust.

Validation: igvmfilegen Clippy (all targets), rustdoc, all 96 unit tests,
cargo xtask fmt --fix, and git diff --check passed. Hardware acceptance
was not tested.

Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
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