microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.56k stars 28.13k forks source link

Backup & Sync to GitHub Enterprise #203893

Open Comnenus opened 5 months ago

Comnenus commented 5 months ago

I would like to use the Backup & Sync feature, but instead of using a GitHub account and infrastructure, I would like to leverage GitHub Enterprise.

sandy081 commented 5 months ago

@TylerLeonhardt / @Tyriar Is GitHub enterprise authentication supported on the server and client?

TylerLeonhardt commented 5 months ago

It's supported on the client (github-enterprise auth provider) but I don't see how we could properly support this because:

  1. We have no way of validating the token on the server side because to do so requires making a request to the some random URL (the user's GitHub Enterprise Server (GHES) instance which could be my-random-server.com)
  2. Often times organizations put access to this server behind a VPN. This would be impossible to access from Settings Sync servers

The only way to really do this, I think, is if we provided a standalone Settings Sync that could be deployed alongside the GHES instance.

Comnenus commented 5 months ago

In my use case, GitHub Enterprise is behind a VPN, and we are not allowed to post internal projects to cloud GitHub, which is exactly why I am looking for this integration.