Repository navigation
Add a closed preview migration executor Worker - #339
Merged
Merged
Conversation
aRustyDev
temporarily deployed
to
preview-control-plane
November 19, 2026 06:52 — with
GitHub Actions
Inactive
aRustyDev
temporarily deployed
to
preview-control-plane
November 19, 2026 07:32 — with
GitHub Actions
Inactive
aRustyDev
marked this pull request as ready for review
November 19, 2026 07:39
This branch was previously deployed
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.
Add a closed-by-default migration Worker bound to one configured PR, commit, database and Hyperdrive user. It bounds and validates the request artifact, opens an exclusive connection and calls the transaction-scoped preview identity gate. It rejects stale ledgers and returns generic failures without logging SQL or credentials.
The template disables workers.dev and Preview URLs, contains no route and defaults to disabled. It is not an authentication or artifact-provenance boundary. Do not expose it until a trusted caller verifies the current PR and source commit, live Hyperdrive origin and database grants, and Cloudflare Access protects the route. Assess a preview login's ability to change its own role or password before accepting untrusted SQL. Live Hyperdrive remains untested.
Local validation: generated configuration and binding tests, wasm clippy, layout/dependency and CI planner checks, and the pinned Wrangler/worker-build runtime test. The runtime test covers disabled mode, a mismatched binding, malformed and empty artifacts, and an unavailable test database. Disabling the binding check made its mismatch control fail (expected 503, received 400). The runtime test is wired into the required PostgreSQL job, and the planner selects that job for executor changes.