Skip to content

Surface inherited user-specific environment variables in project-specific environment variables #7532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gtsiolis opened this issue Jan 10, 2022 · 7 comments
Labels
component: dashboard needs visual design team: webapp Issue belongs to the WebApp team type: feature request New feature or request type: improvement Improves an existing feature or existing code

Comments

@gtsiolis
Copy link
Contributor

gtsiolis commented Jan 10, 2022

Problem to solve

Following the work in #7295 to add project-specific environment variables, user-specific environment variables are not visible when a users adds project-specific environment variables.

Food for thought and certainly out of the scope here: This could be also interesting for team-level variables that could be inherited on the project level. However, this could leak variables set at the team level and could impact collaboration and sharing as secrets could leak to team members that only have access to specific repositories linked as projects. 🍔

Proposal

To provide better visibility and user control, we could surface inherited user-specific environment variables in project-specific environment variables.

TBD (To be discussed)

@gtsiolis gtsiolis added type: feature request New feature or request component: dashboard type: improvement Improves an existing feature or existing code team: webapp Issue belongs to the WebApp team needs product input 🧁 needs visual design labels Jan 10, 2022
@jankeromnes
Copy link
Contributor

Thanks for filing a follow-up issue! 🙏

user-specific environment variables are visible when a users adds project-specific environment variables.

Sorry, I don't understand this part. Could you please elaborate on this problem?

@gtsiolis
Copy link
Contributor Author

Oh, I skipped not there. 😬

Updated the description. Do you think this feature request still makes sense to discuss further? I'm probably missing something here.

@jankeromnes
Copy link
Contributor

Aha, makes a lot more sense now 😅 I feel like I should have been able to guess the missing not.

I'm still a bit confused about the second part though (🙈):

This could leak variable set at the user level and also impacts collaboration and sharing.

  • I'm not 100% sure what you mean by "leak" here. I guess user-level variables that have a repositoryPattern which matches the project will also get exposed in project workspaces. But, this only happens for project workspaces belonging to that specific user (i.e. user values never "leak" to other users of the project, right?). Also, it's worth noting that we would like to deprecate the repositoryPattern in the future, and it's not yet fully clear what the user-level variables feature looks like without the repositoryPattern.

  • I also don't understand the relationship with collaboration and sharing here (sorry for needing so much explaining/handholding 🙈)

@gtsiolis
Copy link
Contributor Author

@jankeromnes I had team-level environment variables in mind when I was typing that! 😇

Updated the description and re-posting the update below:

Food for thought and certainly out of the scope here: This could be also interesting for team-level variables that could be inherited on the project level. However, this could leak variables set at the team level and could impact collaboration and sharing as secrets could leak to team members that only have access to specific repositories linked as projects. 🍔

@gtsiolis
Copy link
Contributor Author

Looping in @jldec because #7881.

@svenefftinge
Copy link
Member

svenefftinge commented Jan 28, 2022

What does " are not visible" mean?
A: Not visible in the dashboard's project env page (why should they?) or
B: User-level env variables are not passed to a started workspace (which would be a bad bug)?

@gtsiolis
Copy link
Contributor Author

Re-posting from the updated description in #7532 (comment) as this would be more useful for team-level environment variables:

This could be also interesting for team-level variables that could be inherited on the project level.

The intent of this feature request was to provide better visibility of variables that could potentially leak upon sharing a snapshot or a running workspace. However, this could be resolved with better information upon sharing, shared workspace information, etc.

This also could become a valid issue for team-level environment variables but let's close this until 🅰️ this becomes an issue and 🅱️ there's more demand for team-level variables (see #7881). Thanks, everone for chiming in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dashboard needs visual design team: webapp Issue belongs to the WebApp team type: feature request New feature or request type: improvement Improves an existing feature or existing code
Projects
None yet
Development

No branches or pull requests

3 participants