Yaak Logo
Yaak
Feedback/Buggy interaction of Env variable and disabled API Key

Buggy interaction of Env variable and disabled API Key

Pulkit Sinha·3 months ago
ReleasedBug

Here’s my setup - I have a dev server which does not need auth, and a staging serving which takes API Key. I’ve set up a variable for the API key in the “staging” environment and use it in workspace settings for API key.

When I switch to the “dev” environment, any request correctly errors on the API key variable not being available.

At this point, I disable the API key in the workspace settings and expect requests to work, as this is simplest way to switch between the two environments (I’ll enable it again when I switch to the staging environment)

Instead, requests still complain about the missing API key variable.


Comments (4)

Sign in to leave a comment.

Gregory Schier

Workin’ on a solution for this!

Gregory Schier
Pulkit SinhaOP

This is a better solution than what I had in mind, thank you!

Gregory Schier
Type to search feedback...