Skip to content

fix: Implement fix for machine env overlay on machine bindings - #310

Merged
cmsparks merged 2 commits into
mainfrom
fix-env-binding-overlay
Aug 7, 2026
Merged

cmsparks merged 2 commits into
mainfrom
fix-env-binding-overlay

Conversation

@cmsparks

@cmsparks cmsparks commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Setting env on a machine binding (i.e. machine in an agent config) does not get propagated to the startup script or daemon on machine start. This fixes that bug.

@cmsparks cmsparks changed the title Implement fix for machine env overlay on machine bindings fix: Implement fix for machine env overlay on machine bindings Aug 6, 2026

@asherdale asherdale left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm - one note though is that make verify fails for this right now, might want to check that out

Comment thread api/openapi/openapi.yaml
type: string
env_overlay:
description: Env overlay applied to processes launched through this binding; it does not change the machine environment applied to the provider machine at provisioning. A null entry removes the key.
description: Env overlay applied to processes launched through this binding. For pool bindings it is also applied to the machine environment when the pool machine is provisioned, so the provider_options startup_script and the daemon run with it; connected machines keep their own environment. A null entry removes the key.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we update the description for secret_env_overlay too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, i'll update this and fix make verify

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — secret_env_overlay now carries the same pool-binding provisioning note.

@cmsparks
cmsparks force-pushed the fix-env-binding-overlay branch from e5e993f to d01a70d Compare August 7, 2026 16:44
@cmsparks
cmsparks merged commit 15ef9b4 into main Aug 7, 2026
20 checks passed
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.

2 participants