cli icon indicating copy to clipboard operation
cli copied to clipboard

Error: "pscale org" cmd producing "Requires authentication" error with service-token & service-token-id present

Open drakedeatonuk opened this issue 3 years ago • 2 comments

Currently, I'm unable to use PlanetScale's service tokens to authenticate any "pscale org" commands.

In any "pscale org" CLI command, if I use the --service-token & --service-token-id flags, I get a "Requires authentication" error.

See the service token here: Screenshot 2022-07-10 at 11 48 43

And some examples of "pscale org" cli commands: Screenshot 2022-07-10 at 11 47 21 Screenshot 2022-07-10 at 12 01 58

Maybe this is by design, but it was fairly ambiguous to me as to why that'd be the case, particularly as in the org cli docs it specifies that you can use service token flags.

drakedeatonuk avatar Jul 10 '22 11:07 drakedeatonuk

Thank you! We'll check on this.

I believe this is a mistake in our documentation/error messages. Service tokens are limited to accessing databases only.

mscoutermarsh avatar Jul 10 '22 13:07 mscoutermarsh

Good to know thanks for clearing that up :)

drakedeatonuk avatar Jul 16 '22 11:07 drakedeatonuk