Skip to content

fix(migtd): validate local quote against generated TD report - #1049

Open
sgrams wants to merge 1 commit into
intel:mainfrom
sgrams:fix/migtd-bind-local-quote-report
Open

sgrams wants to merge 1 commit into
intel:mainfrom
sgrams:fix/migtd-bind-local-quote-report

Conversation

@sgrams

@sgrams sgrams commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • verify that locally generated quote data matches the TD report supplied to the quote service
  • enforce the consistency check in both RA-TLS and SPDM quote generation paths
  • add focused coverage for matching, mismatched, and malformed evidence
  • preserve the explicit test-only quote bypass modes with clear warnings

Why

The local policy input should describe the same TD report generated for the current quote request. Rejecting inconsistent quote-service responses keeps the local evidence source aligned across RA-TLS and SPDM.

Testing

  • cargo test -p migtd --lib --features main
  • cargo check -p migtd --lib --features main
  • cargo check -p migtd --lib --features main,spdm_attestation
  • cargo check -p migtd --lib --features main,policy_v2
  • cargo check -p migtd --lib --features main,use-mock-quote
  • cargo check -p migtd --lib --features main,test_disable_ra_and_accept_all
  • cargo check -p migtd --lib --no-default-features --features AzCVMEmu,test_mock_report,test_disable_ra_and_accept_all

@sgrams
sgrams requested a review from jyao1 as a code owner September 22, 2026 10:20
@sgrams
sgrams force-pushed the fix/migtd-bind-local-quote-report branch from 61995bd to d8e48ee Compare September 22, 2026 10:27
Verify that locally generated quote data matches the TD report supplied to the quote service before using it in RA-TLS or SPDM flows. Cover matching, mismatched, and malformed evidence with focused tests while preserving explicit test-only bypass modes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
@sgrams
sgrams force-pushed the fix/migtd-bind-local-quote-report branch from d8e48ee to 4c7a33c Compare September 22, 2026 10:27
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.

1 participant