Skip to content

fix: handle paths with spaces in Match exec clause of SSH config (cherry-pick #18266) #18778

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
merged 1 commit into from
Jul 8, 2025

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked fix: handle paths with spaces in Match exec clause of SSH config (#18266)

fixes #18199

Corrects handling of paths with spaces in the Match !exec clause we
use to determine whether Coder Connect is running. This is handled
differently than the ProxyCommand, so we have a different escape
routine, which also varies by OS.

On Windows, we resort to a pretty gnarly hack, but it does work and I
feel the only other option would be to reduce functionality such that we
could not detect the Coder Connect state.

)

fixes #18199 

Corrects handling of paths with spaces in the `Match !exec` clause we
use to determine whether Coder Connect is running. This is handled
differently than the ProxyCommand, so we have a different escape
routine, which also varies by OS.

On Windows, we resort to a pretty gnarly hack, but it does work and I
feel the only other option would be to reduce functionality such that we
could not detect the Coder Connect state.
@stirby stirby requested review from spikecurtis and stirby July 8, 2025 01:04
@stirby stirby merged commit 049feec into release/2.23 Jul 8, 2025
41 checks passed
@stirby stirby deleted the cherry-pick-164d37-release/2.23 branch July 8, 2025 15:14
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants