-
Notifications
You must be signed in to change notification settings - Fork 31
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
Import Secrets #665
Import Secrets #665
Conversation
edit: or even easier, merge |
I want to eventually deprecate the I like using the new secrets system for all environment management. After all, secrets are just key-value pairs. Secrets are intuitive and have a nice web UI. This command makes them easy to import from a |
I like that idea. And we can do it at deploy time. But I don't think we should mix this up with our current secrets management, because these take a different management path, namely, they go through secrets management rather than application management. For example, today if I want to update my env vars, I can just update a file (dbos-config or .env), like the rest of my code, and do But if we move everything toward secrets, then the deployment logic becomes more difficult on the client side because I now have to do both secrets management then application deployment. |
I'm not convinced, we'll see what feedback we get. The environment and the code are different things and often aren't in the same place ( Also you can always source your |
I'd agree that it's a bit all over the place -- I've seen both. In most CI/CD systems the environment is set to some sort of UI, and the actual applications being CI/CD-ed use interpolation syntax (and the later is in version control.) If we want to split env variables management from code deploy, then we should also replace/alias this secrets API to be an "environment variables" API: it'll otherwise be pretty confusing for users. |
Yeah, I think it's simpler to have one way to do it. Might adapt later, we'll see. I'll alias it to "environment" and change the docs a bit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a test in the cloud
Support for importing secrets from a dotenv file. All environment variables in the file will be imported as DBOS Cloud secrets and made available as environment variables to the deployed application. Aim is to simplify environment management. Import a file with:
Supported dotenv file syntax: https://dotenvx.com/docs/env-file