workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🚀 Feature Request: [API tokens] describe the current permissions in `wrangler whoami`

Open petebacondarwin opened this issue 3 years ago • 1 comments
trafficstars

Describe the solution

When running wrangler whoami we should display a list of allowed permissions for the current authenticated user (or API token). This will help with scenarios where other commands fail with authorisation errors from the backend API.

petebacondarwin avatar Jun 29 '22 15:06 petebacondarwin

this requires change to internal permissions on API tokens, which isn't currently being pursued. but we may want to update messaging/logging to be more helpful

lrapoport-cf avatar Sep 07 '22 14:09 lrapoport-cf

As far as I know, this is implemented. Running wrangler whoami gives a list of scopes for the current token, and their permission level. Screenshot 2023-01-23 at 16 24 00

penalosa avatar Jan 23 '23 16:01 penalosa