Skip to content

Remove the API for verifying archived attestations - #118

Open
ameba23 wants to merge 1 commit into
mainfrom
peg/remove-achived-validation
Open

ameba23 wants to merge 1 commit into
mainfrom
peg/remove-achived-validation

Conversation

@ameba23

@ameba23 ameba23 commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

This removes the functionality for verifying archived (old) attestations against archived (old) collateral. This is no longer needed and removing it simplifies the API and prevents a footgun.

  • Remove AttestationVerifier::verify_attestation_archived and dcap::verify_dcap_attestation_archived. Their only in-repo callers were tests.
  • Remove replay-specific errors and tests, and simplify the synchronous verification path.
  • Keep reporting the collateral and evaluation timestamp in live verification results. The DCAP and GCP fixture tests still use fixed timestamps.

Copilot AI left a comment

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.

🟢 Approval recommended

No active review issues are identified for the removal of archived-attestation verification APIs.

No open issues 🎉

What changed in this PR

Removes archived-attestation verification from the attestation crate, simplifying the public API while preserving collateral and evaluation timestamps in live verification results.

Changes:

  • Removes archived verification APIs, replay-specific errors, and associated tests.
  • Simplifies synchronous verification and updates DCAP and GCP fixture tests to use the internal collateral helper with fixed timestamps.
  • Updates documentation to remove archived-replay guidance.
File Description
crates/​attestation/​src/​lib.rs Removes the archived verifier API and simplifies synchronous dispatch.
crates/​attestation/​src/​gcp/​firmware.rs Updates the GCP fixture test to call the collateral helper directly.
crates/​attestation/​src/​dcap.rs Removes archived DCAP APIs and adapts mock verification and fixture tests.
crates/​attestation/​README.md Replaces replay guidance with a brief description of reported collateral and timestamps.

Review effort: Balanced

@ameba23
ameba23 requested a review from alexhulbert November 27, 2026 11:04
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