Skip to content

fix(verifier): coalesce AMD collateral fetches and report dependency outages - #1484

Merged
h4x3rotab merged 1 commit into
nextfrom
deploy-parallel-attestation
Oct 25, 2026
Merged

h4x3rotab merged 1 commit into
nextfrom
deploy-parallel-attestation

Conversation

@h4x3rotab

@h4x3rotab h4x3rotab commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Coalesce concurrent AMD KDS CA/VCEK cache misses with moka::future::Cache::try_get_with, avoiding duplicate collateral downloads during parallel CVM admission.
  • Preserve a typed collateral-unavailability error through verification and return HTTP 503 when collateral cannot be retrieved.
  • Keep malformed collateral and invalid signatures as verification failures. No trust checks are bypassed and unavailable collateral is not cached as a successful verification result.

Previously, an AMD collateral download failure could become is_valid=false, causing a healthy CVM's admission to fail permanently. Callers can now distinguish a dependency outage from invalid evidence.

Validation

  • After syncing with current next, all 63 tests passed across verifier library (39), binary/config (4), and SEV-SNP QVL (20).
  • cargo fmt --check --all and targeted Clippy with the CI warning policy passed on the integrated source.
  • 64 concurrent VCEK requests share one fetch; a 429 remains a typed, non-successful result and a later successful fetch recovers.
  • HTTP fixture tests distinguish missing-collateral/429 (503) from a tampered signature with supplied valid collateral (200, is_valid=false).
  • The original pre-sync verifier binary was used in a fresh eight-CVM prod14/prod15 service-mesh deployment with attestation admission enabled. The newly synchronized source has not been redeployed.

Source sync

Synced with next at 250334c26a97a579fe26d911d89e8e90256d8572. The combined source passes the local tests and checks above. Subsequently rebased the change onto that same base to add the missing DCO sign-off; verified the Git tree is identical to the tested merge result (2329ecd64). DCO now passes and CI reruns on the signed commit.

…nvalid quotes

Signed-off-by: Hang Yin <h4x3rotab@gmail.com>
@h4x3rotab
h4x3rotab force-pushed the deploy-parallel-attestation branch from 2329ecd to a508d1f Compare October 25, 2026 16:51
@h4x3rotab
h4x3rotab enabled auto-merge (squash) October 25, 2026 16:54
@h4x3rotab
h4x3rotab merged commit 920fdaf into next Oct 25, 2026
12 checks passed
@h4x3rotab
h4x3rotab deleted the deploy-parallel-attestation branch October 25, 2026 16:56
kvinwang added a commit that referenced this pull request Nov 16, 2026
Since #1484 a request the verifier fails to process returns HTTP 500
(503 when collateral is unavailable) with is_valid = false, instead of
200. A request without a quote or attestation is such a request.

Signed-off-by: Kevin Wang <wy721@qq.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.

1 participant