Skip to content
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

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

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

ndeloof
Copy link
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 jhrotko and glours 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
Contributor

@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
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
8 checks passed
@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