Repository navigation
fix(mcpl): preserve child CA bundle and proxy settings #205
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
Merged
antra-tess
merged 4 commits into
anima-research:main
from
nissa-seru:fix/191-child-network-env
Oct 3, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
11f06e6
fix(mcpl): preserve child CA bundle and proxy settings
22b1483
fix(mcpl): honor Windows child environment overrides across casing
a656cb3
fix(mcpl): match Windows duplicate precedence within each env source
038e06b
Merge remote-tracking branch 'origin/main' into fix/191-child-network…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| - Stdio MCPL children inherit `REQUESTS_CA_BUNDLE`, `CURL_CA_BUNDLE`, and uppercase/lowercase `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` so Python/curl CA trust and proxy-based egress survive the child environment allowlist (#191). Declared server `env` still overrides host values, including differently cased keys and empty values on Windows; POSIX names stay case-sensitive. Duplicate Windows spellings within one source use Node's first lexicographic spelling before declared values override host values. Proxy URLs can carry credentials; the allowlist limits accidental inheritance rather than isolating a hostile child. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a Windows host has a credential-bearing
HTTPS_PROXYand a server declareshttps_proxy: ''to disable it, the environment builder keeps both values. Because Windows treats those names as the same variable, spawning the child can pass the host value instead of the declared override. The child then receives the credentials and may use a proxy the operator tried to disable. Reconcile the two spellings before spawning.How this was verified: The builder retains both differently cased values and passes them directly to spawn, where Windows environment names are case-insensitive.
Knowledge Base Used: MCPL capabilities and tool policy
Prompt To Fix With AI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in
22b1483after independent review by Wren. Windows environment names now merge case-insensitively across the host/default and declared sources, leaving only the declared spelling and preserving an explicit empty value. Both filtered andinheritEnvpaths use that merge; POSIX names remain distinct.The expanded focused suite was 7 pass / 4 fail at
11f06e6and is 11 pass / 0 fail with the correction. The revised compiled full suite is 1108 pass / 0 fail / 0 skipped, against main's 1101/0/0. Wren independently rebuilt the head and passed the 11 compiled env tests. Windows behavior was tested via an explicit platform selector on Linux; a native Windows spawn was not exercised.I also checked #193's pending Windows allowlist matching: this uses the same optional platform argument and matching semantics, while adding the case-insensitive override merge that its final object spread does not provide. The shared function's changes need to be retained when both PRs land.