-
Notifications
You must be signed in to change notification settings - Fork 54
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
Not able to use secrets in toml file in deployed package #598
Comments
Hi @jcechavarri , Happy to try to help you with this. Am I correct in understanding that:
If you're deploying via GH Action, you will definitely need to make sure that the secrets.toml file is present. When we develop internally, we make sure to:
If you want us to take a look at your account-specific data, feel free to send an email to [email protected] with your user handle, package handle, etc and we can explore from there as well. |
Hello @eob ! Thanks for the quick reply ✅ It was earlier running in the cloud. I’m creating the file on the fly through the github actions and hace it gitignored. What makes me think it was a change in the SDK? I didn’t make any changes on my gh actions file. Also, running the package locally takes the secret variables correctly, but deploying locally (same secrets file) results in empty secrets (“”). If you think this behavior is possible within the SDK, let me know and I will send the email happily. Thanks again! |
Just sent an email as suggested @eob. However, what seems strange is this: Running Deploying ( That behavior is the one that makes me think it is something related to the SDK. |
This was fixed in 2.17.34. It was due to the change in the SDK which removed empty string values from the config. Now it is back on: Closing this 😄 |
Hello!
As described in the docs, I'm using the src/.steamship/secrets.toml file to store some secret variables, which worked fine until recently. However, today I noticed my newest version is not taking that files values into consideration.
If I run
ship run local
it takes all the variables on secrets.toml correctly, but if I runship deploy
or try to deploy via github actions, those values are not populated.I'm guessing it has something to do with #553 #593 & #567
I noticed that the file is being read, but overwritten by the default value (
""
), as the secret_values are unpacked before (and overwritten) by the config values.Also tried to remove the field from the config or setting the default value to
None
, but neither worked: error creating instance & requiring the value on creation, respectively.Any help on how to address this? I find it weird that running the package locally works, but on deployed packages doesn't. @eob do you have any hint on what may I be doing wrong/may be wrong? Thanks!! 😃
The text was updated successfully, but these errors were encountered: