fix(ops): print which supabase project invite and keys:rotate wrote to

オープン 初心者向け
#785 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
next.js, supabase, typescript
領域
devops

調査の方向性

scripts/invite.ts と scripts/rotate-encryption-key.ts を読み、続いてそれらのテストと docs/operations/deploy.md の手順 4 を確認してください。各スクリプトが NEXT_PUBLIC_SUPABASE_URL をどのように読み込み、出力を表示するかを追跡してください。各出力行にプロジェクトのホストと .env.local がその値を提供したかどうかを追加し、remove コマンドをその変数で更新して、ユニットテストで出力行を 1 つ検証してください。

索引モデルが issue の本文から書いたものです。

説明

area: ops bug impact: low priority: P3 size: XS

Context

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 7.

Both operator scripts load .env.local when it exists (process.loadEnvFile(".env.local"), scripts/invite.ts:43, scripts/rotate-encryption-key.ts:43); variables already in the shell win, so a command without them acts on whatever .env.local points at. The output never says which project: Invited <email> and Removed <email> (scripts/invite.ts:49, :59), and keys:rotate prints only the key id and counts (rotate-encryption-key.ts:47-49). docs/operations/deploy.md:196 shows the remove command without the variables ("same variables" is only a comment).

Impact: low, operator only. From a dev checkout, npm run invite -- [email protected] --remove as printed edits the local database and still prints "Removed", so Eddie believes a production invite was withdrawn when it was not.

Plan

  1. Print the Supabase project host (from NEXT_PUBLIC_SUPABASE_URL, host only, never a key) in every line both scripts print, and whether .env.local supplied it.
  2. Repeat the variables on the remove command at deploy.md:196.
  3. Unit test the output line.

Acceptance criteria

  • invite and keys:rotate output names the project host.
  • deploy.md:196 repeats the variables.
  • A unit test covers the output.
  • Playwright e2e: none needed, scripts only.

Files and areas

scripts/invite.ts, scripts/rotate-encryption-key.ts, their tests, docs/operations/deploy.md (step 4 only).

Non-goals: rotation coverage (#{n8}).

Verification

npm run typecheck, npm run lint, npx vitest run scripts.


Branch: <issue-number>-script-project-host

Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown

主要言語
TypeScript
スター
13
フォーク
2
平均マージ
5時間 20分
マージ済み PR(30日)
287

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eddiejaoude/StackDash のほかの issue

eddiejaoude/StackDash の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。