Repository navigation
Pin the applied D1 deployment baseline - #13
Merged
Merged
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Contributor
There was a problem hiding this comment.
Pull request overview
Pins the production D1 schema deployment baseline to avoid unauthorized/over-scoped D1 operations during CI deploys, while keeping the production Cloudflare token limited to Pages and Workers permissions.
Changes:
- Updates the deploy workflow to assert a single migration file exists and matches a pinned SHA-256, and removes the previous
wrangler d1 migrations apply --remotestep. - Updates Worker documentation to reflect that the CI token intentionally has no D1 authority and that production schema changes are fail-closed pending a separately scoped credential.
- Updates the project plan to document the same operational constraint and baseline pinning approach.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
worker/README.md |
Clarifies token scope (no D1) and documents the pinned “migration 0001” production baseline and fail-closed behavior for future schema changes. |
docs/PROJECT_PLAN.md |
Updates Phase 2 deployment notes to remove D1 scope and document the operator-applied initial migration plus pinned hash gate. |
.github/workflows/deploy.yml |
Replaces remote D1 migration application with a local, byte-exact baseline assertion (file count + SHA-256) before deploying Pages/Worker. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
This follows deployment run 30373049414, where Pages deployed successfully and Cloudflare correctly rejected the GitHub token's D1 request with code 7403. Worker activation did not run. The production database already records migration 0001, and the workflow pins SHA-256
3f820cb7c1f8e76196e83f8bc8448dd9e72e840884fc39641c84e6b9d60ff27fplus an exact one-file migration count.Verification
git diff --checkpass