feat: proxy-side Chutes attestation verification with dual-mode chain API#9
Open
mondaylord wants to merge 22 commits intomainfrom
Open
feat: proxy-side Chutes attestation verification with dual-mode chain API#9mondaylord wants to merge 22 commits intomainfrom
mondaylord wants to merge 22 commits intomainfrom
Conversation
…e verifier output
…stances->evidence)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR upgrades
vllm-proxyattestation chaining for Chutes into a dual-mode design with proxy-side verification by default.Goal:
vllm-proxyattestation in the common pathprivate-ai-verifierthemselvesMotivation
Previously, clients needed to consume and verify multiple artifacts (proxy + upstream + binding). This is powerful but heavier for product integration.
We now provide:
verify_mode=proxy(default): proxy verifies Chutes evidence internally and returns a signed verification receipt.verify_mode=passthrough: proxy returns full chain artifacts as before.API Changes
Endpoint
GET /v1/attestation/chainRequest params
model(required)nonce(required, min 16 chars)signing_algo(optional,ecdsaored25519)verify_mode(optional, defaultproxy)proxypassthroughResponse:
verify_mode=proxy(default)Returns:
proxy.attestationverification_receipt(proxy-signed)verification_receipt.payloadincludes:nonce,model,upstream_attestation_sha256, binding signature fields)pass)total_instancestdx_uptodate_instancesbinding_verified_instancesinstance_results):instance_idtdx_statustdx_error_presentdebug_mode_disabledbinding_verifiedgpu_token_checked,gpu_verifiedexpected_report_data,actual_report_dataerrorsResponse:
verify_mode=passthroughReturns full chain material:
proxy.attestationupstream.attestation(+attestation_sha256)binding_proofVerification Logic (proxy mode)
Implemented with fail-close semantics.
Per Chutes instance, proxy verifies:
dcap_qvl:UpToDatetd_attributes)sha256(nonce + e2e_pubkey)must equal quotereport_dataprefixeat_nonceequals expected report_dataIf any required check fails for any instance, request returns
chutes_verification_failed.Alignment with
private-ai-verifierThis PR follows the Chutes provider/verifier behavior in
private-ai-verifierand adds proxy-side online TDX verification, which is required to reliably surfaceUpToDatestatus in proxy mode.Dependency Changes
dcap-qvl>=0.3.13Other Improvements
tests/appfor:tests/app/verify_attestation_chain.py:VERIFY_MODE=bothdefault)How to Use
Proxy mode (default)
Expected consumer behavior:
verification_receipt.signatureverification_receipt.payload.result == "pass"Passthrough mode
Use this mode if client wants to run full custom verification externally.
Backward Compatibility Notes
proxy.upstream/binding_proofalways exist should explicitly requestverify_mode=passthrough.