Skip to content

Fix FTP proxy environment spec on main - #923

Merged
Branden Bonaby (bbonaby) merged 1 commit into
mainfrom
user/sodas/fix-issue-922
Aug 15, 2026
Merged

Fix FTP proxy environment spec on main#923
Branden Bonaby (bbonaby) merged 1 commit into
mainfrom
user/sodas/fix-issue-922

Conversation

@SohamDas2021

@SohamDas2021 Soham Das (SohamDas2021) commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

📖 Description

Updates the proxy environment contract test to expect FTP_PROXY and ftp_proxy to be replaced with the configured proxy URL, matching current behavior.

🔗 References

Fixes #922.

🔍 Validation

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task

GitHub Actions runs the PR validation build automatically. The ADO pipeline
(MXC-PR-Build) is the Azure version of the PR pipeline, kept in parity with the GitHub
Actions build; it runs on merge to main, and Microsoft reviewers with write access can trigger it
on a PR with /azp run. See docs/pull-requests.md.

If the dependency-feed-check check fails on a new dependency, the crate must be added to
the feed before the PR can pass. See docs/pull-requests.md
for the steps.

Microsoft Reviewers: Open in CodeFlow

Copilot AI balanced review requested due to automatic review settings August 14, 2026 23:55
@SohamDas2021
Soham Das (SohamDas2021) requested a review from a team as a code owner August 14, 2026 23:55
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI 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.

Pull request overview

Updates the proxy environment contract test to match FTP proxy behavior and resolve #922.

Changes:

  • Expects FTP_PROXY and ftp_proxy to use the configured proxy URL.
  • Corrects the associated test comment.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bbonaby
Branden Bonaby (bbonaby) merged commit 692275b into main Aug 15, 2026
24 checks passed
@bbonaby
Branden Bonaby (bbonaby) deleted the user/sodas/fix-issue-922 branch August 15, 2026 00:09
Darren Hoehna (dhoehna) added a commit to dhoehna/mxc that referenced this pull request Aug 15, 2026
`cooperative_env_scrubs_all_caller_supplied_proxy_keys` asserted FTP_PROXY
was absent while a sibling test asserted every PROXY_SET_KEYS entry was
present at the proxy URL. microsoft#923 corrected the assertion; nothing yet stops
the next hand-written per-key expectation from drifting the same way.

`every_managed_key_lands_in_the_state_its_constants_dictate` derives the
expected state of all ten managed keys from PROXY_SET_KEYS and
PROXY_NEUTRALIZE_KEYS rather than naming keys by hand, under hostile
caller input for every key. No existing test covered that combination:
the scrub test supplies hostile values but checks three keys, and the
set test checks every key but starts from an empty caller environment.

Extends the WSLc proxy e2e to the FTP family for the same reason. The
assertion is case-sensitive because PowerShell `-notmatch` is not, which
would let the upper-case entry satisfy both checks and leave a lower-case
attacker value untested.

Refs microsoft#922

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: acf3853b-fbe3-41ab-870a-9274a698cc0c
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.

proxy_env spec fails on main: FTP_PROXY is both scrubbed and re-set

3 participants