feat(admin): submissions JSON payload exposure — document sensitive-data guidance

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
postgresql, typescript

調査の方向性

Read §5 of docs/superpowers/specs/2026-05-20-events-announcements-forms-design.md alongside the submissions response in packages/api/src/routes/admin/forms/submissions.ts. If per-field sensitivity remains in scope, inspect packages/api/src/lib/forms/schemaTypes.ts. Done means the access-control or redaction decision is resolved and the spec documents the resulting guidance.

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

説明

Summary

GET /admin/forms/:id/submissions returns the raw payload jsonb for each submission. If a form author ever captures sensitive data (medical questions, contact info, etc.), this surfaces unredacted to anyone who can access the form's admin detail page (staff + the form author).

Requirements

  • Decide whether to add a staff_only_submissions boolean column on forms (only staff with systemTier >= 2 see payloads when true) OR rely entirely on form scope for access control
  • If keeping current behavior, document in the spec §5 that form authors must use `scope='staff_only'` for sensitive data
  • Consider per-field marking in the schema (e.g., `sensitive: true` on a field) that triggers payload redaction on the JSON list (but not CSV export which staff can already access)

Context

Plan 4 review follow-up. Not a v1 blocker; raised because forms are the first artifact where user-submitted payloads bear on this question.

Files

  • packages/api/src/routes/admin/forms/submissions.ts (JSON list response shape)
  • packages/api/src/lib/forms/schemaTypes.ts (if adding per-field sensitive marker)
  • docs/superpowers/specs/2026-05-20-events-announcements-forms-design.md §5
主要言語
HTML
スター
33
フォーク
107
平均マージ
14時間 6分
マージ済み PR(30日)
19

環境構築

はじめの一歩

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

USRSE/usrse.github.io のほかの issue

USRSE/usrse.github.io の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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