Skip to content

fix(policy): authenticate peer CoRIM for SVN lookups - #230

Merged
Haitao Huang (haitaohuang) merged 3 commits into
microsoft:integrationfrom
haitaohuang:squad/229-authenticated-peer-corim-svn-lookup
Aug 17, 2026
Merged

Haitao Huang (haitaohuang) merged 3 commits into
microsoft:integrationfrom
haitaohuang:squad/229-authenticated-peer-corim-svn-lookup

Conversation

@haitaohuang

Copy link
Copy Markdown
Collaborator

Summary

  • transport the peer signed ServTD CoRIM with policy pre-session data
  • verify and attach it using the authenticated peer signer anchor while retaining the local CRL as authoritative
  • resolve both current and initial source hashes through the peer mapping and fail closed on missing mappings
  • add unit coverage and an asymmetric source/destination CoRIM EMU scenario that reproduces the original failure

Compatibility

Legacy two-field peer blobs are still accepted. Peers sending the new CoRIM field must both use the updated decoder because older peers reject trailing bytes.

Closes #229

Comment thread .github/workflows/integration-emu.yml Outdated
Comment thread .github/workflows/integration-emu.yml Outdated
Comment thread .github/workflows/integration-emu.yml Outdated
Comment thread tools/servtd-corim-fixture-gen/src/main.rs Outdated
Comment thread tools/servtd-corim-fixture-gen/src/main.rs Outdated
@haitaohuang
Haitao Huang (haitaohuang) force-pushed the squad/229-authenticated-peer-corim-svn-lookup branch from a4b532b to ffcafd1 Compare August 15, 2026 04:34
return Some((policy, issuer_chain, None));
}

// New framing: a `u32` corim_len + corim bytes must follow exactly.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

no point saying something new/old in code comments

Comment thread src/policy/src/v2/policy.rs Outdated
Transport and verify the peer signed CoRIM against its signer anchor, retain the local CRL as authoritative, and resolve both current and initial source hashes through the peer mapping.

Refs: microsoft#229

Assisted-by: GitHub Copilot CLI:GPT-5.6 Sol
Signed-off-by: Haitao Huang <haitaohuang@microsoft.com>
Add pinned Azure/corim installation, signing, and signer-anchor helpers for repository test generation.

Assisted-by: GitHub Copilot CLI:GPT-5.6 Sol
Signed-off-by: Haitao Huang <haitaohuang@microsoft.com>
Generate distinct source and destination CoRIMs with the official CLI. Only the source maps the shared mock TDINFO hash, so the EMU scenario requires lookup through the authenticated peer mapping.

Assisted-by: GitHub Copilot CLI:GPT-5.6 Sol
Signed-off-by: Haitao Huang <haitaohuang@microsoft.com>
@haitaohuang
Haitao Huang (haitaohuang) merged commit 49920ae into microsoft:integration Aug 17, 2026
60 checks passed
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