Add optional Cloudflare Workers deploy for veriflier#107
Open
heydemoura wants to merge 4 commits into
Open
Conversation
aed35e0 to
70e6735
Compare
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
POST /check/GET /statuscontract is fronted by a three-line Worker (deploy/workers/worker/index.ts) that dispatches to a Cloudflare Container instance via a Durable Object binding.ghcr.io/automattic/veriflier:latest(published by.github/workflows/docker-publish.ymlon every push tov2) instead of running a localdocker buildat deploy time.wrangler deployresolves the GHCR image, copies it into CF's container registry, and ships the Worker.VERIFIERSarray inconfig/config.json; rollback is removing that entry and SIGHUP'ing jetmon.Prerequisites before this can ship beyond staging
ghcr.io/automattic/veriflierGHCR package must be flipped from private to public (perdocs/docker-images.md), so Cloudflare can pull without credentials. Until thenwrangler deploywill fail with a pull-auth error.deploy/workers/README.md"Open questions before promoting beyond staging".Test plan
npm installindeploy/workers/worker/succeedswrangler devboots locally andcurl http://localhost:8787/statusreturns the same shape ascurl http://localhost:7803/statusagainst the Docker-compose veriflierwrangler deploy --env stagingsucceeds and the deployed Worker's/statusreturnsokVERIFIERSin a non-prod jetmon config, SIGHUP, and confirm the orchestrator includes it in quorum (visible in jetmon dashboard / logs)VERIFIERSentry and SIGHUP — confirm the remaining verifliers continue serving without disruption (rollback verification)🤖 Generated with Claude Code