Skip to content

load secrets/configs from environment while parsing compose model#655

Merged
ndeloof merged 1 commit intocompose-spec:mainfrom
ndeloof:resolve_secrets_environment
Jul 8, 2024
Merged

load secrets/configs from environment while parsing compose model#655
ndeloof merged 1 commit intocompose-spec:mainfrom
ndeloof:resolve_secrets_environment

Conversation

@ndeloof
Copy link
Copy Markdown
Collaborator

@ndeloof ndeloof commented Jul 4, 2024

As we load compose model with environment, resolve secrets and config values based on declared environment value.
This allows a nested model loading (using include) to resolve such values based on configured env_file, not just top-level environment.
when marshaling model to yaml/json resolved content is hidden if it was set by environment, to keep definition consistency

closes docker/compose#11952

@ndeloof ndeloof requested review from glours and jhrotko July 4, 2024 09:41
@ndeloof ndeloof force-pushed the resolve_secrets_environment branch from a35bd59 to 7c91287 Compare July 4, 2024 09:54
Copy link
Copy Markdown
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@jhrotko jhrotko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof force-pushed the resolve_secrets_environment branch from 7c91287 to 91e457b Compare July 8, 2024 10:34
@ndeloof ndeloof enabled auto-merge (rebase) July 8, 2024 10:34
@ndeloof ndeloof merged commit 327323e into compose-spec:main Jul 8, 2024
@ndeloof ndeloof deleted the resolve_secrets_environment branch July 8, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] secrets from environment not resolved on included projects

3 participants