wooden-dress-65386
11/05/2020, 10:31 AMMY_SECRET: "abc/def" and this ends up like MY_SECRET: "abc\/def" in the env file being generated because of this, which of course is a different valuewooden-dress-65386
11/05/2020, 10:33 AMwooden-dress-65386
11/05/2020, 10:34 AMquick-account-45953
11/05/2020, 3:15 PMhigh-pencil-62400
11/05/2020, 3:18 PMwooden-dress-65386
11/05/2020, 3:28 PMproject:secretshigh-pencil-62400
11/05/2020, 3:38 PM$projectData['secrets'] = buildSecrets($deploymentDir);
It will be overridden with auto-generated secrets.
How does it work for you?
2. Secrets MUST NOT be defined in deploy.yml. We have a feature in backlog that will allow to declare secrets and pass it from env.
3. To solve your particular issue use the following:
image:
tag: spryker/php:7.3
environment:
COMPOSER_HOME: blah blah
That will embed env variable into image. And again this cannot be used for secrets.wooden-dress-65386
11/05/2020, 3:55 PM$projectData['secrets'], I am talking about $projectData['project']['secrets'] (the YAML definition is project:secrets:, not top-level secrets:), they are being parsed by `generator/src/templates/env/common.env.twig`: {% for secretKey, secretValue in project['secrets'] %}
it is definitely working for me, the values I set there are being added to the generated .env files. So this is a "wrong-named internal intermediate variable", yes? I should not use it? How should I do it then? 😄 Currently not possible, because of your second point?
And regarding image:environment: thanks! This sounds definitely like a better solution. But why do you suggest it should also not be used for secrets? Because it is not secret? 😄high-pencil-62400
11/05/2020, 4:00 PMwooden-dress-65386
11/05/2020, 4:01 PMhigh-pencil-62400
11/05/2020, 4:08 PMwooden-dress-65386
11/06/2020, 8:58 AMstrong-winter-32294
11/17/2020, 2:41 PM.env (if existing and maybe with environment naming scheme like .env.stage .env.prod) automatically been included while docker/sdk boot. the variables from this file should end up in the different {service}_{store}.env files in /docker/deployment/default/env/high-pencil-62400
11/19/2020, 8:52 AMstrong-winter-32294
12/02/2020, 9:23 AM