relax portal gate to grant-holding admins; student audit access on development only (2026-11-17 ruling)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Read docs/environment-access-policy.md and docs/audit-tracing.md first, then trace the portal gate and the can_manage_keys check to identify their entry points. The issue describes a grants existence check and environment-specific AUDIT_ADMINS configuration; verify both environments and the acceptance cases, including that key management stays superadmin-only.
索引モデルが issue の本文から書いたものです。
説明
Ruling being implemented (2026-11-17)
Recorded on campus#1129 (closed) and encoded in docs/environment-access-policy.md on campus#1120:
- Relax the portal gate: any account holding one or more access grants may use campus-admin — instead of the current campus-admin-circle/superadmin-only membership. The campus#883 grants store (
GET /auth/v1/grants, the "who can administer what" matrix) is the gate source: signed-in user has ≥ 1 grant row → portal access. Fail-closed like the current gate. - Student audit access is development-only: students may use the audit views/queries on the development environment; the production audit trail stays superadmin/admin-only (
AUDIT_ADMINSon prod unchanged).
Implementation sketch
- Portal gate: replace the circle-membership check with a grants-existence check (a cheap "any grant row where grantee matches the signed-in user" query against the auth service).
- Audit views keep gating on
AUDIT_ADMINSper environment (that var lives on the portal deployment and must be present at portal start — see campus docs/audit-tracing.md "Browser access"): seed the dev portal'sAUDIT_ADMINSwith the students who should get dev audit access; leave prod as the superadmin list. No code change needed for this half. can_manage_keysstays superadmin-only in both environments regardless of the gate relaxation — key management never opens to students.- Verify the two environments actually diverge: dev portal redeploy with the student-inclusive list, prod untouched; smoke on both.
Acceptance
- A grant-holder who is not in the campus-admin circle can sign into the portal.
- A student on the dev portal can open audit views; the same account cannot open them on prod (403/redirect).
- Key management (
can_manage_keys) remains superadmin-only on dev and prod.
- 主要言語
- Python
- スター
- 0
- フォーク
- 0
- 平均マージ
- 13分
- マージ済み PR(30日)
- 62
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nyjc-computing/campus-admin のほかの issue
-
chore
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
nyjc-computing/campus-admin#105 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nyjc-computing/campus-admin#96 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nyjc-computing/campus-admin#16 ·
メンテナーはふだん 1 日以内に返信
-
ops: replace the Procfile with a platform-side startCommand override (Railpack deprecates Procfiles)オープンchore
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
nyjc-computing/campus-admin#100 ·
メンテナーはふだん 1 日以内に返信
-
documentation enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 43/100
nyjc-computing/campus-admin#83 ·
メンテナーはふだん 1 日以内に返信
nyjc-computing/campus-admin の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 73/100
-
day_or=True union silently becomes the ISC cron AND bug when a day field expands to its full range (e.g. '0 0 */1 * */2' fires only Sun/Tue/Thu/Sat)対応中かも @rahul05ranjan が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
pallets-eco/croniter#309 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/Gitcord-GithubDiscordBot#248 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
[Bug]: MLX text downloads omit the requested Hub token and cache directory対応中かも @abhijithneilabraham が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vllm-project/vllm-metal#1423 ·
メンテナーはふだん 1 日以内に返信