Skip to content

Azure policy and build update#815

Open
haitaohuang wants to merge 2 commits intointel:mainfrom
haitaohuang:azure_update
Open

Azure policy and build update#815
haitaohuang wants to merge 2 commits intointel:mainfrom
haitaohuang:azure_update

Conversation

@haitaohuang
Copy link
Copy Markdown
Contributor

  • Added a use-mock-quote feature to enable testing on real TDX hw but by-passing GetQuote
  • Misc build script improvements
  • Switch to SPDM build by default
  • Update policy

haitaohuang and others added 2 commits April 27, 2026 23:24
Add a use-mock-quote build feature that lets MigTD run on a real TDX
platform but bypass the GetQuote vmcall path to the host, returning a
canned mock quote instead. This is useful for testing and development
when the host infrastructure does not yet fully support real quote
generation.

Code changes:
- attestation: add use-mock-quote feature with mock TD report and quote
  generation, mutually exclusive with igvm-attest (compile_error guard)
- attestation/tdreport: new wrapper module that overrides tdcall_report()
  to return a mock TdxReport when use-mock-quote is enabled, and
  re-exports the rest of tdx-tdcall's tdreport API unchanged
- migtd: add use-mock-quote Cargo feature plumbing through to attestation
- event_log: bypass RTMR verification in use-mock-quote mode (mock quote
  cannot match the live event log)
- ratls: bypass public-key-hash check in TD report under use-mock-quote
- spdm: add use-mock-quote cfg guards in verify_report_data_binding and
  in v1/v2 peer attestation REPORTDATA binding checks

Build and test infrastructure:
- Azure/Makefile: add build-igvm-mock-quote and
  build-igvm-mock-quote-allow-all build targets and supporting
  generate-policy-mock-quote* recipes
- build_azure_mock_test.sh: end-to-end policy generation from mock data
  with auto-generated default templates when not present

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Haitao Huang <haitaohuang@microsoft.com>
- Add allow-all policy config for accept-all migration testing
- Fix reject-all build to use IGVM_FEATURES_BASE
- Set tcbDate for migTD in policy_data_raw.json
- Add spdm_attestation to IGVM_FEATURES_BASE for SPDM support
- Add early preflight checks for AzCVMEmu build dependencies:
  check cargo, pkg-config, tss2-sys, nasm, unzip, autoreconf,
  ocamlbuild and print actionable install commands when missing;
  fix azcvm-extract-report binary path resolution (local vs
  workspace target); replace build output filtering with
  explicit error reporting so the build fails fast with clear
  messages instead of cryptic tool-not-found errors.

Co-authored-by: mvasantarao <mvasantarao@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Haitao Huang <haitaohuang@microsoft.com>
@haitaohuang
Copy link
Copy Markdown
Contributor Author

build failure was network caused

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