relax portal gate to grant-holding admins; student audit access on development only (2026-11-17 ruling)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- authentication, authorization
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 13m
- Merged PRs (30d)
- 62
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nyjc-computing/campus-admin
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
nyjc-computing/campus-admin#105 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nyjc-computing/campus-admin#96 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nyjc-computing/campus-admin#16 ·
Maintainers usually reply within 1 day
-
ops: replace the Procfile with a platform-side startCommand override (Railpack deprecates Procfiles)Openchore
Difficulty 4/5 3-5 days Newbie friendliness 42/100
nyjc-computing/campus-admin#100 ·
Maintainers usually reply within 1 day
-
documentation enhancement
Difficulty 4/5 3-5 days Newbie friendliness 43/100
nyjc-computing/campus-admin#83 ·
Maintainers usually reply within 1 day
All issues in nyjc-computing/campus-admin
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day