Add environment variables on workspaces

Description of the limitation and why it is relevant to address

As a developer I want to add environment variables to a workspace rather than an app so that I can assign API credentials specific to a project on a workspace, rather than an app

I think this is relevant for the VIKTOR platform because it will allow a developer to create one application that can be used on several projects.

Submitter proposed design (optional)

Set environment variables (similar to an app), on a workspace. This should only be possible by a workspace admin.

Current workarounds

Create and publish a new app with the same code for every project.

Maybe not “rather than an app”, but “as well as in an app”?

For some API’s used by an app it is fine to use them in all workspaces. Than it would be a hassle to make sure they are entered for each workspace.

But I agree that you also want to have workspace-specific variables.

2 Likes