You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
View proof: open the TEE Explorer report already verified, no pasting #277
Axel's request (12 Nov): in "The proof behind this reply", the Paste the quote in TEE Explorer link should open https://proof.t16z.com with the quote already checked, so the user doesn't have to paste anything.
What we found (checked 12 Nov)
Why pasting failed: pasting the whole proof (the JSON from "Copy the proof") into the Explorer answers "The quote is invalid". The Explorer takes only the Intel quote as hex.
No prefill URL: proof.t16z.com has no URL parameter that fills in a quote.
The upload API: its own Verify button calls POST https://proof.t16z.com/api/upload, multipart file = the quote's bytes, application/octet-stream. It answers { success, checksum, url, quote: { verified, … } }, and the report lives at https://proof.t16z.com/reports/<checksum>.
Live check: an Intel quote from a local run's run.verified proof returned verified: true and a report page reading VERIFIED, "The attestation is verified and safe to use".
No browser calls: the API sends no CORS headers, so the FE can't call it. The upload must go through the backend.
Plan
Backend:POST /v1/runs/{runId}/proof/tee-explorer, for the run's owner only.
Takes the Intel quote(s) from the stored proof (GET /v1/runs/{runId}/proof already has them) and uploads the bytes.
Errors: 404 run_not_found / no_proof / no_quote, and 503 tee_explorer_unreachable / tee_explorer_error when the Explorer fails.
What it does
Uploads each attestation's Intel quote (hex → bytes) to proof.t16z.com/api/upload as multipart file = quote.bin, application/octet-stream. That's the same request the Explorer's own Verify button sends.
Only the quote is sent: no steps, no signed text, no conversation.
20 s timeout and no redirects. The report URL is built from the checksum (it must be 64 hex), never taken from the answer.
tee_explorer_reports (migration 016) keeps the checksum per quote hash, so a second click doesn't upload again.
Docs updated: docs/api-contract.md (§5 + §7) and apps/be notes.
Tests (ct-dev-env)
apps/be typecheck clean.
bun run test: 133 pass, 0 fail, 1 skipped. A new case against a fake Explorer covers refused and bad-checksum answers, reuse, owner only, and no proof.
bun run load: 0 errors, 0 runs missing events.
Not checked against the live Explorer from this branch. Your live check on this issue used the same request shape.
@AncungAulia once this is merged: call it on the link click, opening the tab first and then setting its location to reports[0].url.
Done: backend route #279 and the "Check it in TEE Explorer" button #280 are merged and live; checked in Chrome (one click, one tab, a VERIFIED report).
Activity
Lin1er commentedon Nov 12, 2026
@Lexirieru the backend part is ready on branch
feat/be-tee-explorer(58de954). OK to open a PR to main?Route:
POST /v1/runs/{runId}/proof/tee-explorer, body{}, owner only.{ reports: [{ attestation, url, verified }] }.404 run_not_found/no_proof/no_quote, and503 tee_explorer_unreachable/tee_explorer_errorwhen the Explorer fails.What it does
proof.t16z.com/api/uploadas multipartfile=quote.bin,application/octet-stream. That's the same request the Explorer's own Verify button sends.tee_explorer_reports(migration 016) keeps the checksum per quote hash, so a second click doesn't upload again.docs/api-contract.md(§5 + §7) andapps/benotes.Tests (ct-dev-env)
bun run test: 133 pass, 0 fail, 1 skipped. A new case against a fake Explorer covers refused and bad-checksum answers, reuse, owner only, and no proof.bun run load: 0 errors, 0 runs missing events.@AncungAulia once this is merged: call it on the link click, opening the tab first and then setting its location to
reports[0].url.Merge pull request #279 from Hellonear-AI/feat/be-tee-explorer-link
fix(fe): formal wording for the TEE Explorer failure line (#277)
Merge pull request #280 from Hellonear-AI/feat/fe-tee-explorer-open
Lexirieru commentedon Nov 12, 2026
Done: backend route #279 and the "Check it in TEE Explorer" button #280 are merged and live; checked in Chrome (one click, one tab, a VERIFIED report).