relax portal gate to grant-holding admins; student audit access on development only (2026-11-17 ruling)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- authentication, authorization
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 0
- Merge trung bình
- 13 phút
- Pull request đã merge (30 ngày)
- 62
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nyjc-computing/campus-admin
-
chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
nyjc-computing/campus-admin#105 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nyjc-computing/campus-admin#96 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nyjc-computing/campus-admin#16 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ops: replace the Procfile with a platform-side startCommand override (Railpack deprecates Procfiles)Đang mởchore
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
nyjc-computing/campus-admin#100 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
nyjc-computing/campus-admin#83 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nyjc-computing/campus-admin
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 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)Có thể đã có người làm @rahul05ranjan đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
pallets-eco/croniter#309 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AOSSIE-Org/Gitcord-GithubDiscordBot#248 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[Bug]: MLX text downloads omit the requested Hub token and cache directoryCó thể đã có người làm @abhijithneilabraham đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/vllm-metal#1423 ·
Maintainer thường phản hồi trong vòng 1 ngày