env0 / env0/vscode-env0

Extension doesn't work for everyone who isn't an admin

Open
#69 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The extension crashes with a
```
failed to pull environments: forbidden, please check your credentials
```

error.

It seems that it's due to the fact that we fetch environments by the organizationId,
and anyone who isn't an admin gets permissions / role assigned to a specific project, so essentially they'd never have permissions for the whole org - which results in a `403 Forbidden` error.

**Steps to repro:**
1. Create an API key with `Deployer` permissions
2. Login to the env0 extension in vs-code with the given credentials
3. You should get the aforementioned error

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.