Skip to content
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

Smarter value expansion in secret references #2875

Open
paolostyle opened this issue Dec 13, 2024 · 0 comments
Open

Smarter value expansion in secret references #2875

paolostyle opened this issue Dec 13, 2024 · 0 comments

Comments

@paolostyle
Copy link

Feature description

Currently I cannot reference a secret from the same environment that is located in a different folder without specifying the environment. For example, let's say I have a dev and prod environments, and both of them contain a folder common containing a secret MY_SECRET and I want to reference it in a secret located in a folder project. To do so, the interpolation has to look like this: ${dev.common.MY_SECRET} for dev and ${prod.common.MY_SECRET} for prod. ${common.MY_SECRET} throws an error "common environment does not exist".

It's quite annoying because I'm not able to add such secret from the Overview page which adds the same secret to multiple environments at the same time, or rather I can, but I need to adjust all of them manually. I would much rather have both of them be ${common.MY_SECRET}, and by default assume that it's coming from the same environment. If there was a common environment and common folder, that would indeed be ambiguous and would require specifying the environment. I think situations like this would be very unlikely, but backwards compatibility would definitely have to be considered.

Why would it be useful?

I think adding secrets through the Overview page is super powerful and this would immensely reduce the tediousness of the current behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant