Repository navigation
Add C3 template - #3
Merged
Merged
Conversation
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.
Adds
template/, a Cloudflare C3 template for an x401 Verifier built on@proof.com/x401-workers:What's in it
src/: a Worker serving the CIMD at/.well-known/proof-client.jsonand protecting/protectedwithwithX401andd1NonceStore.wrangler.jsonc:sandboxandproductionenvironments, each with its own D1 database, vars and requiredSIGNING_JWKsecret.scripts/setup.mjs(npm run setup, also run when you answer yes to C3's deploy prompt). It can be rerun and resumes where it stopped:Enrollment state is kept per environment, and
--freshstarts an environment over.scripts/smoke.mjs: checks the CIMD and the401+PROOF-REQUESTchallenge.test/: Vitest in workerd (CIMD, challenge, malformed response, missing config, 404).Uses
@proof.com/proof-vc-server0.6.3, whoseenrollchecks the email domain only in production.Repo changes
templatejob that tests the template against this repo's source (wrangler types --check, typecheck, dry-run deploy of both environments, tests).template/;*.jsoncfiles are formatted without trailing commas.Not covered
setup.mjshas no automated tests.templatejob needs to be added as a required check onmain.🤖 Generated with Claude Code