pidrang init: pre-select sensitive columns in the hide question

オープン
#171 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

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

@fetrarij がすでに取り組んでいます。

2026年11月11日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
78/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
angular, supabase, typescript
領域
cli, security

調査の方向性

Start in libs/cli/src/lib/wizard.ts and trace how schema field names populate the hide question; check the schema providers under libs/cli-supabase/src/lib/ for the field shape. Add coverage for the listed name cases and update docs/reference/cli.md; done when sensitive-looking names are pre-selected with an explanation, remain user-editable, and --plan still uses explicit hiddenFields.

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

説明

enhancement good first issue layer: library pkg: cli

What is wrong

pidrang init asks "Any fields to hide from the list/edit views?" with nothing pre-selected. On a real table, an apiKey column was then shown in plain text in the list page of the admin. Secrets on screen can leak through screenshots, screen sharing or a shoulder.

What we want

  • In the hide question, pre-select columns whose name looks sensitive: it contains key, secret, token, password, hash or salt (case-insensitive, camelCase and snake_case). The user can still unselect them.
  • Print one line that says why they are pre-selected.
  • --plan keeps its explicit hiddenFields: no guessing there.

Where to look

  • The wizard: libs/cli/src/lib/wizard.ts.
  • Field names come from the schema providers in libs/cli-supabase/src/lib/.

Done when

  • Sensitive-looking columns are pre-selected in the hide question.
  • Unit tests cover the name matching (for example apiKey, api_key, password_hash, and monkey must not match, so match whole words).
  • docs/reference/cli.md explains it.
主要言語
TypeScript
スター
2
フォーク
2
平均マージ
9時間 17分
マージ済み PR(30日)
48

環境構築

はじめの一歩

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

pidrang/pidrang のほかの issue

pidrang/pidrang の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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