Add webhook auto-verify showcase page with live demo#253
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Motivation
examples/webhook-auto-verify.Description
public/webhook-auto-verify.htmlcontaining the required hero, webhook explanation, backend commands, trust-boundary guidance, cards, and grouped footer consistent with site styling.https://runtime.commandlayer.org/trust-verification/sign/v1.0.0to generate a receipt, posts receipts tohttps://runtime.commandlayer.org/verifyto auto-verify, and performs an in-page tamper (mutatingreceipt.result.payload.message) then re-verifies to show rejection; loading states andTRANSPORT_ERRORhandling are included and no success is faked.response.receiptwith fallback toresponse.final_receipt, only marks VERIFIED whendata.ok === trueordata.status === 'VALID'|'VERIFIED', and surfacesmetadata.prooffields (canonicalization, hash.alg, signature.alg, signature.kid, signer_id) plus compact raw JSON./webhook-auto-verify.htmlfrompublic/ambient-verification.html,public/api.html,public/docs.html,public/verify.html, andpublic/stack-proof-demo.htmland adjusted those footers to include the demo page.Testing
npm installat repo root which completed successfully in this environment.npm testat repo root which failed due to missing test fixture/examples/sample-receipt.json(two tests errored), unrelated to the new page.examples/webhook-auto-verify: rannpm installandnpm run check, wherenpm run checkpassed in this environment.npm run generate:samplesin the example which failed with DNS resolution error (getaddrinfo EAI_AGAIN runtime.commandlayer.org) in this environment, so sample generation could not complete here.npm run buildis not present in the rootpackage.jsonso no site build was run.Codex Task