-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Environment scope doesn't apply consistently for GitLab subgroups #8618
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
Comments
#2702 seems related. As an temporary workaround, you could do put |
@jldec I created a group "Environment Variables" for this. I'm not sure how our plans for deprecation of "user scope env vars" looks like. But I guess:
OR: are user level env vars meant to stay? 🤔 |
I have exactly the same problem. Variables are visible through @geropl What do you mean by group? A team or a GitLab Group? |
Just want to add that I've been running into this issue as well. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ping. Are you still taking a look into this? |
I want to echo @J0F3 's issue that is happening to me too:
|
@J0F3 @axonasif I have updated info on Gitpod's behavior as of 26 Dec 2022: Project path (GitLab repository): Test results:
@J0F3 so a "less worse than |
Thanks for sharing your findings. |
I have also encountered this bug, it definitely was a a big headache to figure out the problem when I was working to onboard my colleagues onto GitPod. This is particularly important Re: secrets that I want to be especially protective of. I'd really like to limit secrets to as narrow-of-a-scope as possible and needing to set them to / feels very insecure. |
👋 @kenibrewer could you please react with a " 👍 " on the top (message) of this issue? |
@ceefour Thanks for the Info. Looks a little bit better. What I have done finally as a workaround was to add the following line to As I am using a custom image anyway this works for me... |
Nice workaround @J0F3! You could also utilize the dotfiles feature with a #!/usr/bin/env bash
printf 'eval "$(%s)"\n' "gp env -e" > ~/.bashrc.d/400-gp-env |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue was resolved in #17831 and can be closed. In case anyone is having issues with gitlab subgroup scoping, be sure to use the pattern |
Bug description
When open a GitLab repository which resides in a subgroup, the environment variable scope which specify the top level group only doesn't apply consistently between the resulting env applied and the result of
gp env
.Steps to reproduce
VISUAL=gitpod-code --wait
, and set the scope toubports/*
.echo $VISUAL
withgp env
.echo $VISUAL
would show the GitPod's default (/ide/bin/remote-cli/gitpod-code
), whilegp env
would show the set value (gitpod-code --wait
).Workspace affected
No response
Expected behavior
echo $VISUAL
should produces the same value asgp env
would display. Preferably for my usecase, my variable set should apply to actual environment variables.Example repository
https://gitlab.com/ubports/core/packaging/libayatana-common, or any repositories under https://gitlab.com/ubports/core/packaging really.
Anything else?
No response
The text was updated successfully, but these errors were encountered: