Skip to content

feat(web): turn on Google sign in and link the privacy page - #44

Merged
musa-kal merged 2 commits into
mainfrom
feat/google-sign-in-v2
Nov 16, 2026
Merged

musa-kal merged 2 commits into
mainfrom
feat/google-sign-in-v2

Conversation

@musa-kal

Copy link
Copy Markdown
Member

Intent

Turn on Sign in with Google in production and link the privacy page from sign in and the landing page.

  • supabase/config.toml: new [remotes.production.auth.external.google] with enabled = true, the public client id, and secret = env(SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET) (set in the GitHub production environment and passed by deploy.yml). Email confirmation stays on (enable_confirmations = true): seats (claim_placeholders_for_email) and email-bound invites trust email_confirmed_at, so confirmation off would let anyone claim another person's seat.
  • Migration 20261116230000_google_sign_in_on.sql sets app_config google_auth to true; supabase/seed.sql sets it back to false so local stacks (no provider) keep the button hidden and 01_schema's seed expectation holds.
  • A shared PrivacyNote (auth-parts.tsx) shows the guide's privacy link on sign in and sign up; the landing footer links the privacy page too (Google brand verification wants a privacy link on the home page), in five languages.
  • docs/security.md, deployment.md, launch-checklist.md and splitwise-parity.md describe the new state.
    No secret may be committed. Apple stays off.

What Changed

  • Turns on Google sign in for production. supabase/config.toml gets a [remotes.production.auth.external.google] block with the public client id. The secret is read from env(SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET) and is not committed. A new migration, 20261116230000_google_sign_in_on.sql, sets app_config.google_auth to true. supabase/seed.sql sets it back to false, so local stacks, which have no Google provider, keep the button hidden.
  • Moves the sign up privacy link into a shared PrivacyNote in auth-parts.tsx. It now shows on both sign in and sign up, with a new sign in test checking that the link opens the guide's privacy page in a new tab. The landing page footer also links the privacy page, with a new app.landing.footer.privacy string in de, en, es, fr and pt.
  • Updates docs/security.md, deployment.md, launch-checklist.md and splitwise-parity.md to say Google sign in is on, including the production secret setup.

Risk Assessment

✅ Low: The change is small and matches the intent: no secret is committed, email confirmation stays on, Apple stays off, seed.sql keeps the 01_schema expectation, and PrivacyNote is a straight extraction. The only risk is the deploy order between the flag migration and the provider config push.

Testing

  • ⏭️ Test - skipped

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 warning
  • ⚠️ supabase/migrations/20261116230000_google_sign_in_on.sql:3 - Rollout ordering: deploy.yml runs supabase db push (applies 20261116230000_google_sign_in_on.sql, turning google_auth on so OAuthButtons shows Google) before supabase config push (which enables the provider from [remotes.production.auth.external.google]). If config push fails (e.g. SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET missing or wrong in the production environment), production keeps a visible Google button whose signInWithOAuth returns 'provider is not enabled'. Even on success there is a short window with the same effect. Options: run config push before db push in .github/workflows/deploy.yml:57-58, or confirm the secret is set before merging. deploy.yml is outside this change, so this needs the author's call.
⏭️ **Test** - skipped

Step was skipped.

✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

musa-kal and others added 2 commits November 16, 2026 17:28
Production gets the Google provider (client id in config.toml, secret from the GitHub
production environment) and the google_auth flag turns on in a migration; seed.sql keeps it
off locally, where there is no provider. Email confirmation stays on: seats and email-bound
invites trust a confirmed address, and the security and deployment docs now say so. The
sign-up privacy note becomes a shared PrivacyNote, shown on sign in too, and the landing
footer links the privacy page.

Co-authored-by: Ferrin <[email protected]>
Co-authored-by: noorelmosrati <[email protected]>
@musa-kal
musa-kal force-pushed the feat/google-sign-in-v2 branch from c772368 to b85c778 Compare November 16, 2026 22:58
@musa-kal
musa-kal merged commit 8990b3f into main Nov 16, 2026
7 checks passed
@musa-kal
musa-kal deleted the feat/google-sign-in-v2 branch November 16, 2026 23:13

This branch was successfully deployed

1 active deployment
preview — b85c7783 Deployed Nov 16, 2026 by musa-kal via Deploy web to Cloudflare #120
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