-
Notifications
You must be signed in to change notification settings - Fork 23
SSH config overwritten with VS Code Coder config #504
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
Comments
Hey Aaron, I found that, a missing Example:
With #510 should fix this. Does this sound plausible as a root cause to your issue? Sidenote: there's also a potential issue with concurrent file writes. Since you mentioned having multiple remote development sessions it's also possible there was some kind of race condition with writing the updated config. |
My guess is that the issue was non-atomicity. This happened seemingly randomly, so I wouldn't expect a deterministic failure mode like a missing |
Somewhat related: we've seen a race condition in the past updating the |
Similar experience when testing, although never lost everything. Everything between "# ------------START-CODER-----------" and it's end "# ------------END-CODER------------" got removed. I.e.
But without -n:
In this case I feel the text 'Update the coder section' a little underwhelming. Updating the 'caveat' warning and potentially if this replacement is known, add to the list of Updates that will happen would work. |
BTW, another one of our users got hit by this today. I have no idea why it only started happening recently - perhaps our upgrade to Coder 2.21 affected timings enough to expose this race. Really hoping the atomicity fix does the trick! |
Both myself and and another user experienced
~/.ssh/config
being completely overwritten to include just aSTART CODER VSCODE
block with the corresponding wildcardHost
entry. This happened to me using version 1.8.0 of the extension with multiple remote development sessions active.The text was updated successfully, but these errors were encountered: