feat(audit): unscoped key-introspection endpoint (whoami)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- api, authentication
Research direction
Start by tracing the campus API route and its authentication middleware, which already resolves the key record, then review the referenced campus-api-python AuditRoot and CLI login.py:203-276 entry points. The proposal spans three repositories; done means a scope-less whoami endpoint returns only the authenticated key’s record, and the Python client and CLI use it for online login verification and status.
Written by the indexing model from the issue text.
Description
Summary
CLI login verification is best-effort via apikeys.list, so a viewer-role key (no apikeys:read) can never be verified online, and campus audit status is purely local. Proposed: a scope-less GET endpoint (e.g. /audit/v1/whoami) authenticated by key possession alone — no @require_scopes — returning the resolved key record the middleware already loads (id, owner label, scopes, expires_at, rate_limit, last_used).
Why scope-less is safe
The endpoint reveals nothing beyond what possessing the key already proves; it is the Bearer analogue of the web sign-in's in-process verify() (#916). It must NOT accept the operator-seed exemption or anything broader — one identity, its own record.
Three-repo chain
campus route → campus-api-python method (AuditRoot.whoami) → campus-cli: online verification in campus audit login for keys of any role, and an online campus audit status (local today, login.py:203-276).
Idea carried from the 2026-10-21 end-state gap review (bullet 6).
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 39m
- Merged PRs (30d)
- 235
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the 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
-
enhancement for-collaborators for-contributors
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nyjc-computing/campus#451 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
nyjc-computing/campus#1320 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
nyjc-computing/campus#1309 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
nyjc-computing/campus#1300 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 5/100
nyjc-computing/campus#1295 · 4 comments ·
Maintainers usually reply within 1 day
All issues in nyjc-computing/campus
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