-
Notifications
You must be signed in to change notification settings - Fork 33
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
Can’t write env variable for single secret key, if not also written to file #99
Comments
Furthermore, it seems that it is not possible to store the secret in an "arbitrarily" named env var, the secret key is always used. This is probably "expected behavior" (if one reads the README 3 or 4 times, while experimenting) but it's somewhat limiting:
while one would wish to have instead a |
This was previously not possible. This is a non breaking way of fixing cruise-automation#99. Other ways would introduce breaking changes to variable names. Additional features: * allow to rename secret keys in env variables (see https://github.com/cruise-automation/daytona/issues/99\#issuecomment-1492390145) * allow to store selected secret keys as env variables and in a file
This was previously not possible. This is a non breaking way of fixing cruise-automation#99. Other ways would introduce breaking changes to variable names. Additional features: * allow to rename secret keys in env variables (see https://github.com/cruise-automation/daytona/issues/99\#issuecomment-1492390145) * allow to store selected secret keys as env variables and in a file
This was previously not possible. This is a non breaking way of fixing cruise-automation#99. Other ways would introduce breaking changes to variable names. Additional features: * allow to rename secret keys in env variables (see https://github.com/cruise-automation/daytona/issues/99\#issuecomment-1492390145) * allow to store selected secret keys as env variables and in a file
This fixes a bug where `SECRET_ENV=true` only worked if `DAYTONA_SECRET_DESTINATION_THING` is also set, even though that is not expected. Fix cruise-automation#99
This fixes a bug where `SECRET_ENV=true` only worked if `DAYTONA_SECRET_DESTINATION_THING` is also set, even though that is not expected. Fix cruise-automation#99
@massenz it looks like since your comment is a separate issue to the initially described bug in this issue @broamski is suggesting to tackle you comment in a separate issue. So I think it makes sense to file it as new one. |
This fixes a bug where `SECRET_ENV=true` only worked if `DAYTONA_SECRET_DESTINATION_THING` is also set, even though that is not expected. Fix #99
Thanks - turns out this had already been reported in #41 (I have added my comment there) but given that one has been sitting for 3 years, I'm assuming it's not going to happen. |
When following the docs to write a single secret it is written to use
If one would only like to get env variables and not write a secret to a file, one would expect to not set
DAYTONA_SECRET_DESTINATION_THING
, and setSECRET_ENV='true'
.However, that doesn't work because the condition that wraps the case to write a single secret expects a destination path:
daytona/pkg/secrets/secrets.go
Lines 288 to 290 in f9f7dce
The text was updated successfully, but these errors were encountered: