edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

`EDGEDB_SECRET_KEY` is sometimes ignored by the CLI

Open raddevon opened this issue 1 year ago • 0 comments

When trying to connect to an EdgeDB Cloud instance via CLI providing the secret key via the EDGEDB_SECRET_KEY env var and the instance name via CLI option, the user receives an error: edgedb error: NoCloudConfigFound: connecting cloud instance requires a secret key

If you instead provide both via environment variable, the CLI connects as expected.

  • EdgeDB Version: 4.2
  • EdgeDB CLI Version: 4.0.2+500be79
  • OS Version: macOS 14.0

Steps to Reproduce:

  1. Create an EdgeDB Cloud instance
  2. Create (and capture) a secret key
  3. Run edgedb cloud logout
  4. Try to connect to your instance with this:
EDGEDB_SECRET_KEY="<key>" edgedb -I <instance-name>

raddevon avatar Dec 11 '23 19:12 raddevon