@davoodmehraban89 / LifeMate / commits / 40bd07d
Fork 0

LifeMate — Personal, Family & Learning Companion

docs(qa): stage github.io repo-path smoke before separately authorized QA DNS

davoodmehraban89 committed Oct 15, 2026 at 09:33 UTC 40bd07d24177e48491fdfc06669f0d3eb22a3e32
1 file changed +10 -9
docs/operations/GITHUB_PAGES_IRAN_QA.md
+10 -9
@@ -36,21 +36,22 @@ Independent live public DNS+HTTP checks from **six Iranian probe networks (Tehra
36
37 - GitHub public repo `davoodmehraban89/LifeMate`: `has_pages=false` on inspection, so GitHub Pages itself still needs **Settings → Pages → Build and deployment → Source = GitHub Actions** from the owner; the current connector has no Pages enabling action.
38 - Isolated branch: `infra/lifeguide-github-pages-qa`, forked from `infra/lifeguide-cloudflare-qa`. No merge to `main`, no effect on FactorEasy.
39 -- `scripts/build-github-pages-qa.sh`: reuse prior verified Flutter 3.47.6 self-contained build, output `apps/lifemate/build/web`, strip Cloudflare-only `_headers`, create `.nojekyll` and a public `site-check.txt` indicating **STATIC_ONLY** and safe commit provenance. Verify `/api` config has **no fallback** to Railway or any other unverified API.
40 -- `.github/workflows/lifeguide-github-pages-qa.yml`: automatically builds branch (GitHub Actions) and attempts Pages publication only to `github-pages` environment. Until repo Pages is enabled, the deploy may fail by design. Build may pass independently; check latest Actions logs.
39 +- `scripts/build-github-pages-qa.sh`: reuse Flutter 3.47.6 self-contained build, output `apps/lifemate/build/web`, strip Cloudflare-only `_headers`, create `.nojekyll` and public `site-check.txt` indicating **STATIC_ONLY**, commit provenance and selected base. **For the initial GitHub project Pages URL, explicitly build with `/LifeMate/` as Flutter base and point the unavailable API to `/LifeMate/api` (404).** For an owner-approved verified `qa.lifeguide.ir` custom domain, the workflow base must be changed to `/` and a new build tested. In either mode there is **no API fallback**, Railway origin or user sign-in backend.
40 +- `.github/workflows/lifeguide-github-pages-qa.yml`: when on the QA branch, **checks `actions/configure-pages` before** the lengthy Flutter download/build, then uploads/publishes to `github-pages`. Until repo Pages is enabled, workflow should fail early by design. To test the new config, owner-approved integration of dependent draft PRs and a fresh QA branch push are required; check real Actions logs.
41 - GitHub Pages is static hosting. It does NOT run the Node/Express+Argon2 backend, Kavenegar OTP, Pages Functions or Supabase SQL. On GitHub Pages, `/api/*` should stay absent (**HTTP 404**, not successful user operations). **Do NOT** add a SPA 200 fallback for `/api/*`. A browser UI may render but sign-in/family sync still fails until server-side API is built.
42 - Don't put `DATABASE_URL`, DB admin role, `SUPABASE_SERVICE_ROLE_KEY`, JWT secret or Kavenegar API key into repository secrets used in a static front-end bundle.
43
44 ## Safe manual owner handoff; PHASE ONE only
45
46 1. Open `https://github.com/davoodmehraban89/LifeMate/settings/pages`, under **Build and deployment** set **Source: GitHub Actions**. No new GitHub plan or payment card; GitHub Docs support public repositories on GitHub Free.
47 -2. Check workflow `LifeGuide GitHub Pages QA (static only)` under Actions. If branch-triggered deploy previously failed due Pages disabled, trigger a new QA-only push after configuration or re-run it; do not enable production `main` auto-deployment.
48 -3. In the same Pages settings, **before creating external DNS**, set **Custom domain = `qa.lifeguide.ir`** and Save; this may require GitHub's domain ownership/DNS verification and Let's Encrypt issuance. GitHub warns DNS-before-domain could create subdomain-takeover risk.
49 -4. Once Github UI accepts the custom hostname, go to **Arvan's `lifeguide.ir` DNS only** and add a new `CNAME`: name **`qa`**, value **`davoodmehraban89.github.io`**, **Arvan CDN/proxy disabled (DNS-only)**. Confirm zero incremental charges/plan changes before saving. Use a short TTL. **Do not touch** the current `app`, root `lifeguide.ir`, nameservers, mail or other applications.
50 -5. Wait for DNS and GitHub Pages certificate provisioning to complete; Enforce HTTPS if/when it becomes available. This can require hours.
51 -6. Verify `https://qa.lifeguide.ir/site-check.txt` and root `https://qa.lifeguide.ir/` with LTE VPN OFF on owner's iPhone, and independent Iranian probe locations. Make sure static HTML and Flutter scripts/icons load without third-party blocked CDN.
52 -7. Verify `https://qa.lifeguide.ir/api/health` **does NOT return HTTP 200 / index.html**. It must not claim backend readiness. Sign-in and registration are intentionally NOT operational.
53 -8. If any problem, remove only the **new `qa`** DNS record and unset the new QA custom hostname. The existing `app.lifeguide.ir` remains as-is.
47 +2. After reviewing and authorizing integration of the QA fix PRs, recheck `LifeGuide GitHub Pages QA (static only)` after a **new QA branch push**. The workflow is not on the default branch, so its `workflow_dispatch` button may not be offered until it exists there; a push to the QA branch is the supported trigger. Do not enable production `main` auto-deployment. Confirm the build artifact's `site-check.txt` declares `BASE=/LifeMate/`.
48 +3. Initial smoke (no Arvan DNS edits): open `https://davoodmehraban89.github.io/LifeMate/site-check.txt` and `https://davoodmehraban89.github.io/LifeMate/` after a successful GitHub Pages deployment. The default `github.io` host may share an origin with other repositories; **use only synthetic/demo content, never actual child/family accounts or secrets on this hostname**. Check manifest, JS/CSS, CanvasKit, icons, PWA startup and that `/LifeMate/api/health` does not return a real API or app index. This is **static transport only**; no real user login or family data.
49 +4. For a separate owner-approved custom-domain trial, **first** set **Custom domain = `qa.lifeguide.ir`** in Pages and Save. This may require GitHub ownership/DNS verification. Do NOT create DNS first; GitHub warns of subdomain takeover risk. Rebuild with `LIFEGUIDE_PAGES_BASE_HREF: /` **only after the custom hostname is accepted**, and verify root paths before saying Flutter is usable.
50 +5. Once GitHub UI accepts the custom hostname and the owner gives separate explicit DNS approval, go to **Arvan's `lifeguide.ir` DNS only** and add a new `CNAME`: name **`qa`**, value **`davoodmehraban89.github.io`**, **Arvan CDN/proxy disabled (DNS-only)**. Confirm zero incremental charges/plan changes before saving. Use a short TTL. **Do not touch** the current `app`, root `lifeguide.ir`, nameservers, mail or other applications.
51 +6. Wait for DNS and GitHub Pages certificate provisioning to complete; Enforce HTTPS if/when it becomes available. This can require hours.
52 +7. Verify `https://qa.lifeguide.ir/site-check.txt` and root `https://qa.lifeguide.ir/` with LTE VPN OFF on owner's iPhone, and independent Iranian probe locations. Make sure static HTML and Flutter scripts/icons load without third-party blocked CDN.
53 +8. Verify `https://qa.lifeguide.ir/api/health` **does NOT return HTTP 200 / index.html**. It must not claim backend readiness. Sign-in and registration are intentionally NOT operational.
54 +9. If any problem, remove only the **new `qa`** DNS record and unset the new QA custom hostname. The existing `app.lifeguide.ir` remains as-is.
55
56 No application/DNS cutover, SMS approval/review, live accounts or data migration are authorized by this test preparation.
57