Skip to content

chore: migrate production to the internal Cloudflare account - #138

Merged
HazAT merged 6 commits into
masterfrom
chore/cloudflare-internal-migration
Aug 13, 2026
Merged

chore: migrate production to the internal Cloudflare account#138
HazAT merged 6 commits into
masterfrom
chore/cloudflare-internal-migration

Conversation

@HazAT

@HazAT HazAT commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

  • target the isolated Sentry Internal Cloudflare account and its WNAM D1/R2 resources
  • retain hackweek.sentry.new as the production application origin and Google OAuth callback
  • update deployment validation and generated Worker bindings for the new resources
  • deploy Cloudflare production automatically after verified pushes to master, with a master-only manual retry path
  • document the production workflow and required GitHub Actions secrets

Migration status

  • imported production application data into the new D1 with matching table content and no foreign-key violations
  • copied and verified all 440 available attachments, including eight files recovered from the original migration snapshot
  • intentionally left legacy video lifecycle test data out of the new account
  • deployed the Worker from this branch without a container rollout
  • removed the one-off migration tooling after successful cutover

Verification

  • actionlint .github/workflows/deploy.yml .github/workflows/test.yml
  • npm test
  • npm run typecheck
  • npm run lint
  • npm run format:check
  • npm run build
  • npm run deploy:dry-run

HazAT added 6 commits August 13, 2026 10:40
Point the production deployment configuration at the isolated Sentry Internal account, its WNAM D1 database, and the temporary workers.dev origin. Update the deployment guard and generated bindings so CI fails closed against accidental deployment to the former production account.
Add a fail-closed operator utility that inventories, copies, resumes, and verifies both Hackweek R2 buckets through the existing Wrangler OAuth login. Pin both account and database IDs, require explicit destination confirmation, preserve supported HTTP metadata, record custom metadata privately, and validate attachment checksums against source D1.
Allow operators to verify a unique cryptographically shuffled subset of migrated objects so large buckets can be checked quickly while retaining the existing full-verification mode.
Point the internal-account deployment at hackweek.sentry.new now that the custom domain has been cut over. Restore the matching Google OAuth callback while retaining the workers.dev deployment for pre-cutover validation history.
Remove the one-off cross-account copy and verification command now that all production attachments have been migrated and reconciled. Keep the permanent internal-account deployment configuration in the pull request.
Run the existing verified deployment pipeline automatically after changes land on master while retaining a master-only manual retry path. Document the required Cloudflare credentials and production deployment sequence so repository setup remains reproducible.
@HazAT
HazAT merged commit 94f7216 into master Aug 13, 2026
12 checks passed
@HazAT
HazAT deleted the chore/cloudflare-internal-migration branch August 13, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant