Expose all env vars to app
container.
#263
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "moritz/abra:expose_envs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves coop-cloud/organising#393 and is required for the auto updater coop-cloud/organising#236 (comment)
Awesome! I think we should be very loud on the release of this change to help people not get caught by the assumption that env vars should have no secrets. We want to avoid this kind of sadness for sure. I can write it up on the release documentation. Thanks!
@ -449,1 +449,4 @@
}
// expose all env variables to the app container
func ExposeAllEnv(compose *composetypes.Config, appEnv AppEnv) {
@ -450,0 +452,4 @@
func ExposeAllEnv(compose *composetypes.Config, appEnv AppEnv) {
for _, service := range compose.Services {
if service.Name == "app" {
logrus.Debug("Add the following environment to the app service config:")
Perhaps include the app / service / etc. info in the log message? Whatever seems appropriate.
@ -450,0 +458,4 @@
if !exists {
value := v
service.Environment[k] = &value
logrus.Debugf("Add Key: %s Value: %s", k, value)
Same here, with some marker on the recipe/app/etc. perhaps?
1e2caec3a3
to1c9a931143