microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.69k stars 296 forks source link

Remote-SSH: Forward Git Credential Helper #10339

Open spockz opened 2 months ago

spockz commented 2 months ago

Reported previously as #5977, then again as #6168. Where it got a, for me cryptic comment that it should be fixable by the user.

I would like the capability of having the git credential manager to use the Azure identity available in the gcm of my client when using Remote:SSH. This capability already exists for containers and apparently there a way to forward calls has been found and will be actively setup.

The reason for this is that the GCM binary itself only checks whether there is a Desktop session available, and not whether there is a BROWSER env variable available.

id2-nicoDt commented 3 weeks ago

I am also looking for this feature, though for the slightly different use case of forwarding access tokens stored in the GCM (core version, on a windows computer) through Remote:SSH. I have not found a solution in the two issues linked.

For reference, calling "git config --get credential.helper" returns "manager" both on my local computer and the remote computer accessed through remote-ssh. I have also changed the credential store to dpapi, based on limitations of wincredman that get reported in the log.

From what I understood of the issue #5977, it does seem that VSCode remote has all the required capabilities (ie. setting the helper in containers), so hopefully extending this feature might only requires small changes or additional documentation on the proper setup process.

vs-code-engineering[bot] commented 3 weeks ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!