Skip to content

feat(star-tracker): operator /_admin tenant list#67

Merged
wavekat-eason merged 1 commit into
mainfrom
feat/star-tracker-admin
May 20, 2026
Merged

feat(star-tracker): operator /_admin tenant list#67
wavekat-eason merged 1 commit into
mainfrom
feat/star-tracker-admin

Conversation

@wavekat-eason
Copy link
Copy Markdown
Contributor

Summary

  • Adds /_admin — operator-only page listing every registered tenant (newest first) with owner, repo counts, total stars, last event, last ping, plus aggregate totals at the top. Lets us tell at a glance whether anyone is using the tool.
  • Gated by a new ADMIN_USERNAMES env var (comma-separated GitHub logins). Non-admins (and signed-out users) get 404 rather than 403 so the page isn't advertised. Leave unset to disable the page entirely.
  • Path uses an underscore prefix so it can't collide with a valid GitHub slug (SLUG_RE requires [a-z0-9] as the first char).

Test plan

  • Set ADMIN_USERNAMES via wrangler secret put ADMIN_USERNAMES (prod) or .dev.vars (local).
  • Signed out → GET /_admin returns 404.
  • Signed in as a non-admin user → GET /_admin returns 404.
  • Signed in as a listed admin → page renders with summary strip + tenant list, newest first.
  • Unset ADMIN_USERNAMES → all /_admin requests 404 even for previously-listed users.

🤖 Generated with Claude Code

Adds an operator-only page that lists every registered tenant
(newest first) with owner, repo counts, total stars tracked, and
last event/ping — so we can tell at a glance whether anyone is
using the tool.

Gated by ADMIN_USERNAMES (comma-separated GitHub logins, set via
`wrangler secret put`). Non-admins 404 so the page isn't
advertised. Path uses an underscore prefix so it can't collide
with a valid GitHub slug.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

@wavekat-eason wavekat-eason merged commit 2663192 into main May 20, 2026
4 checks passed
@wavekat-eason wavekat-eason deleted the feat/star-tracker-admin branch May 20, 2026 07:40
wavekat-eason pushed a commit that referenced this pull request May 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.0.24](wavekat-com-v0.0.23...wavekat-com-v0.0.24)
(2026-05-21)


### Features

* **star-tracker:** operator /_admin tenant list
([#67](#67))
([2663192](2663192))


### Bug Fixes

* **gha-runners:** restore cargo PATH after sudo re-exec
([#69](#69))
([15f8f2c](15f8f2c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant