geldata / geldata/gel-cli

`EDGEDB_SECRET_KEY` is sometimes ignored by the CLI

Open
#1,186 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
175
Forks
32
PR merge metrics
No merged PRs in 30d

Description

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="" edgedb -I
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.