fix(auth): keep sign-up invite only when the auth hook is not enabled
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 50/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- next.js, playwright, postgresql, supabase, typescript
調査の方向性
Read #143 first because it determines where the open-sign-up setting lives, then inspect the user trigger migration, src/app/auth/, and src/app/super-admin/page.tsx. Add the invite check, admin status, pgTAP coverage, and the Playwright refusal-message test with an axe scan. Done means the acceptance criteria pass; run the listed typecheck, lint, database tests, and sign-in e2e spec.
索引モデルが issue の本文から書いたものです。
説明
Context
Decide together with #143: this is the guard that makes opening sign-up a deliberate act rather than a missed toggle.
Found by the Fable pre-production review on 2026-12-02 (main at cedc1914; every line reference below re-checked on main at cde5aa3b). Source: deploy readiness report, new issue 8.
The before-user-created hook is the only gate on sign-up: hook_before_user_created admits an email only when it is in public.access_invites (supabase/migrations/20261031090300_jobs_and_invites.sql:136-162). On a hosted project the hook is a dashboard switch (docs/operations/deploy.md:115-122). Sign-ups are on (supabase/config.toml:194), the user trigger creates a personal workspace for every new user regardless (supabase/migrations/20261031090000_tenancy.sql:295-296), and no app code reads access_invites at sign-in (only account deletion and the demo seed touch it).
Impact: if the hook is missed at setup or turned off later, any GitHub account can sign up, get a workspace, and connect providers, and nothing in the app shows that the instance is open. #756 adds a deploy check; this makes the app itself refuse.
Plan
- Decide with #143 where the second check lives: the user trigger refusing an uninvited email unless an explicit "open sign-up" setting is on, or a check in the sign-in callback before a workspace is created.
- Implement it so that with the hook off, an uninvited sign-up is refused, and with the setting that #143 introduces, sign-up opens on purpose.
- Show "Sign-up is open" or "Invite only" on
/app/admin.
Acceptance criteria
- With the hook off locally, an uninvited sign-up is refused and an invited one passes (pgTAP).
- With the #143 setting on, an uninvited sign-up passes.
-
/app/adminsays whether sign-up is open. - Playwright e2e for the refusal message, with an axe scan.
Files and areas
A migration on the user trigger or the sign-in callback (src/app/auth/), src/app/super-admin/page.tsx, pgTAP tests, docs/operations/deploy.md.
Non-goals: abuse protection (#91 part c), the sign-up copy changes listed on #143.
Verification
npm run typecheck, npm run lint, npm run test:db, the sign-in e2e spec.
Branch: <issue-number>-invite-only-without-hook
Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown
- 主要言語
- TypeScript
- スター
- 13
- フォーク
- 2
- 平均マージ
- 5時間 20分
- マージ済み PR(30日)
- 287
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eddiejaoude/StackDash のほかの issue
-
area: integrations documentation priority: P2 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eddiejaoude/StackDash#798 ·
メンテナーはふだん 1 日以内に返信
-
area: ops documentation priority: P3 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
eddiejaoude/StackDash#796 ·
メンテナーはふだん 1 日以内に返信
-
area: docs documentation impact: low priority: P3 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eddiejaoude/StackDash#790 ·
メンテナーはふだん 1 日以内に返信
-
area: ops bug impact: low priority: P3 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eddiejaoude/StackDash#785 ·
メンテナーはふだん 1 日以内に返信
-
area: connections enhancement impact: low priority: P3 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
eddiejaoude/StackDash#768 ·
メンテナーはふだん 1 日以内に返信
eddiejaoude/StackDash の issue をすべて見る
似ている issue
-
bot:ai-assisted component:midnight-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
midnightntwrk/midnight-js#1790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area:vscode bug has repro platform:macos platform:vscode regression
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
effort/l priority/p1 risk/high triage/core
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
iflytek/skillhub#1188 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信