diff --git a/apps/web/src/features/auth/auth-parts.tsx b/apps/web/src/features/auth/auth-parts.tsx
index 81f15e1..2f9f19c 100644
--- a/apps/web/src/features/auth/auth-parts.tsx
+++ b/apps/web/src/features/auth/auth-parts.tsx
@@ -4,7 +4,9 @@ import { Button, IconButton, Input, toast, type InputProps } from '@potluck/ui'
import { useQuery } from '@tanstack/react-query'
import { Eye, EyeOff } from 'lucide-react'
import { forwardRef, useState } from 'react'
+import { HELP_PAGES } from '@/features/help/topics'
import { authCallbackUrl } from '@/lib/auth'
+import { docsUrl } from '@/lib/docs'
import { errorMessage } from '@/lib/errors'
import { supabase } from '@/lib/supabase'
@@ -135,3 +137,20 @@ export function CheckEmail({
)
}
+
+/** Potluck has no separate terms: the guide's privacy page says what is kept and who sees it. */
+export function PrivacyNote() {
+ return (
+
+ {t('auth.signUp.privacy')}{' '}
+
+ {t('auth.signUp.privacyLink')} ({t('help.newTab')})
+
+
+ )
+}
diff --git a/apps/web/src/features/auth/sign-in-page.test.tsx b/apps/web/src/features/auth/sign-in-page.test.tsx
index ed26f4d..d0423e4 100644
--- a/apps/web/src/features/auth/sign-in-page.test.tsx
+++ b/apps/web/src/features/auth/sign-in-page.test.tsx
@@ -2,7 +2,9 @@ import { t } from '@potluck/i18n'
import { Toaster } from '@potluck/ui'
import { act, fireEvent, screen, waitFor } from '@testing-library/react'
import { beforeEach, describe, expect, it, vi } from 'vitest'
+import { HELP_PAGES } from '@/features/help/topics'
import { confirmSession, endEndedSession } from '@/lib/auth'
+import { docsUrl } from '@/lib/docs'
import { renderWithProviders } from '@/test/render'
import { authCallsTo, resetDb, respondAuth } from '@/test/supabase'
import { SignInPage } from './sign-in-page'
@@ -73,6 +75,15 @@ describe('SignInPage', () => {
expect(await screen.findByText(t('auth.signIn.sessionEnded'))).toBeInTheDocument()
})
+ it("links to the guide's privacy page in a new tab", async () => {
+ renderPage()
+ const link = await screen.findByRole('link', {
+ name: `${t('auth.signUp.privacyLink')} (${t('help.newTab')})`,
+ })
+ expect(link).toHaveAttribute('href', docsUrl(HELP_PAGES.privacy))
+ expect(link).toHaveAttribute('target', '_blank')
+ })
+
it('never redirects off site after signing in', async () => {
const { router } = renderPage({ redirect: 'https://evil.example' })
await fill('ava@example.test', 'hunter22')
diff --git a/apps/web/src/features/auth/sign-in-page.tsx b/apps/web/src/features/auth/sign-in-page.tsx
index c6beb47..06502a4 100644
--- a/apps/web/src/features/auth/sign-in-page.tsx
+++ b/apps/web/src/features/auth/sign-in-page.tsx
@@ -13,7 +13,7 @@ import { errorMessage } from '@/lib/errors'
import { detectTimezone } from '@/lib/locale'
import { supabase } from '@/lib/supabase'
import { AuthLayout } from './auth-layout'
-import { CheckEmail, OAuthButtons, PasswordInput } from './auth-parts'
+import { CheckEmail, OAuthButtons, PasswordInput, PrivacyNote } from './auth-parts'
export interface AuthPageProps {
redirect?: string
@@ -86,16 +86,19 @@ export function SignInPage({ redirect, notice }: AuthPageProps) {
subtitle={t('auth.signIn.subtitle')}
notice={notice ?? (ended ? t('auth.signIn.sessionEnded') : undefined)}
footer={
-
- {t('auth.signIn.noAccount')}{' '}
-
- {t('auth.signIn.createAccount')}
-
-
+
+
+ {t('auth.signIn.noAccount')}{' '}
+
+ {t('auth.signIn.createAccount')}
+
+
+
+
}
>
diff --git a/apps/web/src/features/auth/sign-up-page.tsx b/apps/web/src/features/auth/sign-up-page.tsx
index fa9f501..5315662 100644
--- a/apps/web/src/features/auth/sign-up-page.tsx
+++ b/apps/web/src/features/auth/sign-up-page.tsx
@@ -2,14 +2,12 @@ import { Link, useNavigate } from '@tanstack/react-router'
import { currentLocale, t } from '@potluck/i18n'
import { Button, Field, Input, toast } from '@potluck/ui'
import { useState, type FormEvent } from 'react'
-import { HELP_PAGES } from '@/features/help/topics'
import { authCallbackUrl, safeRedirect } from '@/lib/auth'
-import { docsUrl } from '@/lib/docs'
import { errorMessage } from '@/lib/errors'
import { detectTimezone } from '@/lib/locale'
import { supabase } from '@/lib/supabase'
import { AuthLayout } from './auth-layout'
-import { CheckEmail, OAuthButtons, PasswordInput } from './auth-parts'
+import { CheckEmail, OAuthButtons, PasswordInput, PrivacyNote } from './auth-parts'
import type { AuthPageProps } from './sign-in-page'
export const MIN_PASSWORD = 8
@@ -92,18 +90,7 @@ export function SignUpPage({ redirect, notice }: AuthPageProps) {
{t('auth.signUp.signInLink')}
- {/* Potluck has no separate terms: the guide's privacy page says what is kept and shown. */}
-
- {t('auth.signUp.privacy')}{' '}
-
- {t('auth.signUp.privacyLink')} ({t('help.newTab')})
-
-
+
}
>
diff --git a/apps/web/src/features/shell/landing-page.tsx b/apps/web/src/features/shell/landing-page.tsx
index 5d72ba3..9b9131b 100644
--- a/apps/web/src/features/shell/landing-page.tsx
+++ b/apps/web/src/features/shell/landing-page.tsx
@@ -3,6 +3,7 @@ import { Button } from '@potluck/ui'
import { Link } from '@tanstack/react-router'
import { ArrowRightLeft, CalendarHeart, Receipt } from 'lucide-react'
import { lazy, Suspense, type ReactNode } from 'react'
+import { HELP_PAGES } from '@/features/help/topics'
import { docsUrl } from '@/lib/docs'
import { Wordmark } from './brand'
import { heroFrame } from './hero-frame'
@@ -150,6 +151,15 @@ export function LandingPage() {
{t('help.guide')} ({t('help.newTab')})
{'. '}
+
+ {t('app.landing.footer.privacy')} ({t('help.newTab')})
+
+ {'. '}
Secrets and variables > Actions**. Variables are vi
| `SUPABASE_DB_PASSWORD` | Optional. The pinned CLI signs in with a temporary role made from the access token |
| `SUPABASE_URL` | `keepalive.yml` daily ping |
| `SUPABASE_PUBLISHABLE_KEY` | `keepalive.yml` daily ping |
-| `SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET` | `supabase config push`, once Google sign in is enabled (`production` environment secret) |
+| `SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET` | `supabase config push` for Google sign in, which is on (`production` environment secret) |
| `SUPABASE_AUTH_EXTERNAL_APPLE_SECRET` | `supabase config push`, once Apple sign in is enabled (`production` environment secret) |
Missing credentials do not fail the workflow. Without `CLOUDFLARE_API_TOKEN` the web job builds and skips the upload. Without `SUPABASE_ACCESS_TOKEN` the `migrate` job logs a notice and skips. That keeps forks green.
@@ -65,7 +65,8 @@ Migrations go first so the database is never behind the client. Because migratio
`supabase/config.toml` holds local settings at the top and production overrides under `[remotes.production]`. `supabase config push` applies the overrides when the linked project's ref matches `remotes.production.project_id`. Production differs from local in:
- `auth.site_url` is the custom domain. `additional_redirect_urls`: the custom domain, the old workers.dev URL, every `*-potluck.potluck-web.workers.dev` preview, and localhost.
-- `minimum_password_length = 8`, email confirmations on, one email per 60 s per address.
+- `minimum_password_length = 8`, email confirmations on (seats and email-bound invites rely on it, see [security](security.md#sign-in)), one email per 60 s per address.
+- Google sign in on (`[remotes.production.auth.external.google]`, client secret from `SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET`).
- Security notice email subjects (password, email address and verification method changes) are Supabase's defaults, because the built-in sender refuses custom ones. They go once a custom SMTP provider is set ([launch checklist](launch-checklist.md#3-email)).
- TOTP MFA enroll and verify on.
- Pooler sizes, and the vector bucket feature off.
diff --git a/docs/launch-checklist.md b/docs/launch-checklist.md
index b1727f4..f49c122 100644
--- a/docs/launch-checklist.md
+++ b/docs/launch-checklist.md
@@ -35,7 +35,7 @@ The `migrate` job skips until `SUPABASE_ACCESS_TOKEN` exists (Supabase dashboard
### 3. Email
-Auth email uses Supabase's built-in sender, which is rate limited and meant for testing. Email confirmation is on in production, so sign-ups beyond the limit wait. Notification email (new expenses, payments, the monthly summary, with one-click unsubscribe) is built but off: `app_config.email_notifications` is `false`, so nothing is queued. To send from `fermulate.com`:
+Auth email uses Supabase's built-in sender, which is rate limited and meant for testing. Email confirmation is on in production and must stay on (seats and email-bound invites trust a confirmed address). The built-in sender only delivers to members of the Supabase team, so until custom SMTP is set, people signing up with email never get their confirmation link; Google sign in works without it. Notification email (new expenses, payments, the monthly summary, with one-click unsubscribe) is built but off: `app_config.email_notifications` is `false`, so nothing is queued. To send from `fermulate.com`:
1. Create a Resend account and verify the domain.
2. Supabase dashboard, Authentication, SMTP settings: enter Resend's SMTP details (auth email).
@@ -61,7 +61,9 @@ Both buttons are hidden behind `app_config` flags (`google_auth`, `apple_auth`).
secret = "env(SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET)"
```
-4. `update public.app_config set value = 'true' where key = 'google_auth';` (or `apple_auth`).
+4. Turn the flag on in a migration, `update public.app_config set value = 'true' where key = 'google_auth';` (or `apple_auth`), and set it back to `false` in `supabase/seed.sql`, so local stacks, which have no provider, keep the button hidden.
+
+Google is on (client "Potluck web (production)" in the Google Cloud project `fermulate-potluck-prod`, flag set by `20261116230000_google_sign_in_on.sql`). Apple is still off.
### 5. Calendar import
diff --git a/docs/security.md b/docs/security.md
index 1d2d79f..9caeab6 100644
--- a/docs/security.md
+++ b/docs/security.md
@@ -54,7 +54,7 @@ These are real today. Each should become an issue.
## Sign in
-- **Methods.** Email and password, a magic link, and Google or Apple once their flags are on. Production requires a confirmed email before the first sign in.
+- **Methods.** Email and password, a magic link, Google, and Apple once its flag is on. Production requires a confirmed email before the first sign in: seats and email-bound invites trust a confirmed address, so turning confirmation off would let anyone claim another person's seat by signing up with their email.
- **Two-step sign in.** An authenticator app (TOTP) from the Me page. Signing in with any method then asks for a code. The database enforces it ([ADR 13](adr/0013-two-step-sign-in-enforced-in-the-database.md)): until the code is in, every REST and RPC call fails with `mfa_required`, Storage reads and writes nothing in any bucket, and Realtime sends nothing. Supabase Auth refuses that session's email, password and factor changes. Turning it off needs a fresh code.
- **Recovery codes.** Ten one-time codes are shown once at setup (and again whenever they are replaced); the dialog only closes once the person says they saved them. They are stored as SHA-256 hashes, which is enough because they are random. One code, together with the first sign in step, removes the authenticator so the person can set it up again. Five tries per account per fifteen minutes, then `too_many_attempts`. Turning two-step sign in off clears them. Without the codes, an operator has to remove the factor by hand after checking who is asking.
- **Changing the email** sends a link to the old and to the new address (`double_confirm_changes`); in production the switch happens only when both are opened, so a stolen session cannot quietly move the account to another inbox. (The local stack auto-confirms email, and Supabase then takes either link as enough.) A pending change can be called off from Me (`cancel-email-change`), which voids its links.
diff --git a/docs/splitwise-parity.md b/docs/splitwise-parity.md
index 93d163c..0d4b2a0 100644
--- a/docs/splitwise-parity.md
+++ b/docs/splitwise-parity.md
@@ -146,7 +146,7 @@ What Splitwise Free holds back today: 4 new expenses per day, ads, and the Pro f
| App passcode lock | Free (apps) | skip | the PWA uses the device lock; revisit for the native app |
| Two-factor authentication | not in Splitwise | exists | authenticator app, recovery codes, enforced in the database (ADR 13) |
| Log out on all devices | Free | exists | also after a password change, for every other device |
-| Sign in with Google (Splitwise also has Facebook) | Free | partial | Google and Apple built, flagged off until OAuth clients exist |
+| Sign in with Google (Splitwise also has Facebook) | Free | partial | Google on; Apple built, flagged off until its OAuth client exists |
| Merge two accounts | Free (support) | skip | rare; handle by hand if it comes up |
| Delete account | Free | exists | tombstones the profile, shared history kept |
| Download my data | Free by emailing support; JSON self-serve is Pro | exists | Me, Your data: JSON backup and spreadsheets, self-serve (Batch 5) |
diff --git a/packages/i18n/src/de/shell.ts b/packages/i18n/src/de/shell.ts
index 6b2d3ac..3be7c29 100644
--- a/packages/i18n/src/de/shell.ts
+++ b/packages/i18n/src/de/shell.ts
@@ -58,6 +58,7 @@ export const app = {
license: 'Freie Software unter der AGPL-3.0.',
source: 'Quellcode',
madeBy: 'Ein Projekt von Fermulate',
+ privacy: 'Datenschutz',
},
},
offline: {
diff --git a/packages/i18n/src/en/shell.ts b/packages/i18n/src/en/shell.ts
index 9dab602..4ec1ecf 100644
--- a/packages/i18n/src/en/shell.ts
+++ b/packages/i18n/src/en/shell.ts
@@ -55,6 +55,7 @@ export const app = {
license: 'Free software under the AGPL-3.0.',
source: 'Source code',
madeBy: 'A Fermulate project',
+ privacy: 'Privacy',
},
},
offline: {
diff --git a/packages/i18n/src/es/shell.ts b/packages/i18n/src/es/shell.ts
index d457e47..6f6b8bf 100644
--- a/packages/i18n/src/es/shell.ts
+++ b/packages/i18n/src/es/shell.ts
@@ -58,6 +58,7 @@ export const app = {
license: 'Software libre bajo la AGPL-3.0.',
source: 'Código fuente',
madeBy: 'Un proyecto de Fermulate',
+ privacy: 'Privacidad',
},
},
offline: {
diff --git a/packages/i18n/src/fr/shell.ts b/packages/i18n/src/fr/shell.ts
index 3692838..1b95547 100644
--- a/packages/i18n/src/fr/shell.ts
+++ b/packages/i18n/src/fr/shell.ts
@@ -58,6 +58,7 @@ export const app = {
license: 'Logiciel libre sous licence AGPL-3.0.',
source: 'Code source',
madeBy: 'Un projet Fermulate',
+ privacy: 'Confidentialité',
},
},
offline: {
diff --git a/packages/i18n/src/pt/shell.ts b/packages/i18n/src/pt/shell.ts
index 5f29e73..6729682 100644
--- a/packages/i18n/src/pt/shell.ts
+++ b/packages/i18n/src/pt/shell.ts
@@ -58,6 +58,7 @@ export const app = {
license: 'Software livre sob a AGPL-3.0.',
source: 'Código-fonte',
madeBy: 'Um projeto da Fermulate',
+ privacy: 'Privacidade',
},
},
offline: {
diff --git a/supabase/config.toml b/supabase/config.toml
index 4d89e91..3b3ebe0 100644
--- a/supabase/config.toml
+++ b/supabase/config.toml
@@ -507,6 +507,12 @@ verify_enabled = true
[remotes.production.auth.sms]
enable_confirmations = true
+[remotes.production.auth.external.google]
+enabled = true
+client_id = "939770238734-0hf3vsdsq1uv7n01mvfb0j8pu248j6un.apps.googleusercontent.com"
+# DO NOT commit the secret: the deploy passes it from the GitHub production environment.
+secret = "env(SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET)"
+
[remotes.production.db.pooler]
default_pool_size = 15
max_client_conn = 200
diff --git a/supabase/migrations/20261116230000_google_sign_in_on.sql b/supabase/migrations/20261116230000_google_sign_in_on.sql
new file mode 100644
index 0000000..50f14f7
--- /dev/null
+++ b/supabase/migrations/20261116230000_google_sign_in_on.sql
@@ -0,0 +1,3 @@
+-- Google sign in is configured for production (supabase/config.toml, [remotes.production.auth.external.google]),
+-- so show its button. supabase/seed.sql turns it back off for local stacks, which have no Google provider.
+update public.app_config set value = 'true'::jsonb where key = 'google_auth';
diff --git a/supabase/seed.sql b/supabase/seed.sql
index b68c1ed..c05edc5 100644
--- a/supabase/seed.sql
+++ b/supabase/seed.sql
@@ -329,3 +329,7 @@ update public.activity a set created_at = ev.created_at
from public.events ev where a.verb = 'event.created' and a.subject_id = ev.id;
select set_config('request.jwt.claims', '', false);
+
+-- Local stacks have no Google provider, so keep its button hidden here
+-- (20261116230000_google_sign_in_on.sql turns it on for production).
+update public.app_config set value = 'false'::jsonb where key = 'google_auth';