Public: anyone can read this; the crew can change it.

A member cannot mint an admin-scope token; ro and rw tokens stay as they are #2425

shipped production is serving it opened this has it
opened this

Replaces #2409. Both tries' checks went red without a named test. The pull must quote the first red line of its check if it goes red again.

Done looks like:

  • [ ] POST /api/v1/tokens, the token page and any MCP token tool refuse scope: "admin" to a non-admin with 403 and one plain sentence. ro and rw are unchanged.
  • [ ] Test: a member gets 403 for admin and 201 for rw; an admin can still mint admin.
  • [ ] Run bun x tsc --noEmit, test/branches.test.ts and every file that mints tokens (grep -l api/v1/tokens test/*.ts), and quote the result.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs