Skip to content

Isolate Roteiva DEV/PROD accounts, configuration and deployment - #111

Merged
EwertonMendes merged 4 commits into
masterfrom
codex/dev-prod-environments
Nov 11, 2026
Merged

EwertonMendes merged 4 commits into
masterfrom
codex/dev-prod-environments

Conversation

@EwertonMendes

@EwertonMendes EwertonMendes commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Centralizes the environment contract across Vite, Firebase, Worker, media URLs and workflows. Production builds and API requests reject cross-environment resources. DEV migrated to its dedicated branded Cloudflare account with existing Firebase users/data, 25 D1 tables/99 rows, encryption keys and OAuth clients preserved. The legacy endpoint forwards to the new DEV API without a competing Cron or writable database.

Provisions isolated free PROD accounts/projects, empty schema, independent OAuth credentials and protected GitHub environments. Adds immutable database identity, account-scope token checks, conservative migration guards, atomic secret bootstrap with sanitized validation failures, and privacy/terms/support pages. Patches the Firebase transitive re2js vulnerability (GHSA-gg6h-894w-4m9c) to 2.8.7.

Validation: 215 API tests, 75 frontend tests, TypeScript, 34 Firestore A/B tests, builds dev/prod/demo/emulator, Worker dry-runs, full Chromium desktop/mobile regression (145 passed, 5 pre-existing skips). Final PR checks: API 43023152654, frontend 43023152747, rules 43023152671 and isolated E2E 43023152754 passed. Production dependency audits are clean. DEV deployment 43022319789 validated the new token, rejected access to PROD D1 and passed health/CORS/auth/migration checks. Real DEV Google reconnect/list and existing Dropbox grant/list/PDF passed. PROD backend credential can read/list PROD Firestore but receives 403 in DEV; PROD user collection is empty.

Owner authorized completion and delegated activation decisions on 11 November. First PROD deployment is still to run through the protected manual workflow. Google restricted-scope verification and Dropbox production review remain external requirements; no provider approval is claimed. Console branding/scopes could not be completed after browser control stopped responding. No paid plan/billing enabled; no DEV business data copied to PROD.

@EwertonMendes EwertonMendes changed the title Isolar DEV e PROD e proteger configuração, D1 e promoção de ambientes Isolate Roteiva DEV/PROD accounts, configuration and deployment Nov 11, 2026
@EwertonMendes
EwertonMendes deployed to cloudflare-development November 11, 2026 12:40 — with GitHub Actions Active
@EwertonMendes
EwertonMendes marked this pull request as ready for review November 11, 2026 12:43
@EwertonMendes
EwertonMendes merged commit d599e24 into master Nov 11, 2026
7 checks passed
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