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

The terminal access-codes screen says when an admin's code acts as admin, and asks before minting one #12476

shipped production is serving it opened this has it

Landed in pull #12483 · run

opened this

Found while proving #12466. On the web, an admin's access codes now carry an "acts as admin" badge in the list, and minting any code as the admin needs the "I mean to give this access code admin" tick (src/web/pages/account.ts, tokenCreate). The terminal screen src/tui/screens/signins.ts does neither: its token rows read name · rw for an admin's code, which acts as admin whatever its scope, and askScope mints ro/rw for an admin with no confirm (only admin goes through confirmAdmin).

Done looks like:

Files: src/tui/screens/signins.ts, test/tui-signins.test.ts

commented

Reviewed pull #12483 at its head: ticked An admin's token rows in the terminal say they act as admin; an everyday account's do not.; An admin minting any scope in the terminal meets the same confirm as admin scope.; A test in test/tui-*.test.ts shows both..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs