rdmbair15m5-changelog-20260901-1216-eastcoastscience-net-apex-domain-and-oauth-remediation
rdmbair15m5-changelog-20260901-1216-eastcoastscience-net-apex-domain-and-oauth-remediation
Remediated apex domain routing for eastcoastscience.net (without www) and resolved Google OAuth configuration handling on Cloudflare Pages.
Scope
- Hosts:
rdmbair15m5(local test & build),rdmsm4x(canonical dev root & deployment). - Systems: Cloudflare Pages (
eastcoastscience-net), Cloudflare DNS (zoneb0a852be4eb841783823b7dc36a04881), Edge Middleware (functions/_middleware.ts), OAuth Gate (functions/api/auth/login.ts).
Exact Changes Made
- Cloudflare Apex Domain Routing:
- Replaced deactivated placeholder A record on zone
b0a852be4eb841783823b7dc36a04881with proxied CNAME flattening (eastcoastscience.net->eastcoastscience-net.pages.dev). - Re-activated and verified custom domain
eastcoastscience.neton Cloudflare Pages projecteastcoastscience-net.
- Replaced deactivated placeholder A record on zone
- Canonical Domain & HTTPS Normalization:
- Updated
functions/_middleware.tsto automatically 301 redirect allwww.eastcoastscience.netand plain HTTP requests to canonicalhttps://eastcoastscience.net.
- Updated
- OAuth Secrets & Error Grace:
- Injected production cryptographic
AUTH_SECRETinto Cloudflare Pages deployment configs via API. - Refactored
functions/api/auth/login.tsto render a styled configuration modal with exact setup guidance instead of unhandled 500 error responses.
- Injected production cryptographic
- Deploy & E2E Verification:
- Built and ran all 6 E2E and privacy boundary test suites (100% green).
- Deployed live build to Cloudflare Pages
eastcoastscience-net(deploymentee06a230). - Verified live curls on
https://eastcoastscience.net,https://www.eastcoastscience.net, and HTTP upgrade paths.
Verification Evidence
curl -sI https://eastcoastscience.net-> HTTP/2 401 Access Gatecurl -sI https://www.eastcoastscience.net-> HTTP/2 301 -> https://eastcoastscience.net/curl -sI http://eastcoastscience.net-> HTTP/1.1 301 -> https://eastcoastscience.net/npm test-> 65/65 tests passed across 6 test suites with 0 privacy leaks.