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.62k stars 277 forks source link

Disable download in remote SSH #7106

Closed lloydie3 closed 1 year ago

lloydie3 commented 2 years ago

There is a feature to disable download in the browser version of the vs code server / remote tools by using the flag --disable-file-downloads. Is it / would it be possible to do the same when using Remote SSH on the desktop version of VS Code?

lloydie3 commented 2 years ago

Also, is there anything in the pipeline to support using Remote Containers with an Azure Container Instance? Due to various limitations, cannot switch docker context to an Azure Container Instance within VS Code and hence cannot currently link to an ACI (which is why I switched to Remote SSH) @bamurtaugh

bamurtaugh commented 2 years ago

Hi @lloydie3, I'm tagging this as a feature request for the file download request.

As for the containers issue, please open a new issue, including what you've tried and the issue(s) you faced. Thank you!

VSCodeTriageBot commented 2 years 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!

lloydie3 commented 2 years ago

Hi @lloydie3, I'm tagging this as a feature request for the file download request.

As for the containers issue, please open a new issue, including what you've tried and the issue(s) you faced. Thank you!

Thanks Brigit. I tagged you as I have seen you raise the docker issue in the past and was curious as to whether any solution was established.

I am also wondering whether there is any information anywhere about which command Remote SSH download executes on the remote server? I tried to block scp, but that did not prevent the download feature.

Thank you

bamurtaugh commented 2 years ago

Does the remote information and diagram here help?

lloydie3 commented 2 years ago

Does the remote information and diagram here help?

That diagram has helped me to get to this stage indeed, but it does not contain the level of detail that I am looking for.

Basically, I want to use a remote development environment in an unconventional manner. I work for a large corp which own proprietary algorithms. We want certain people to create the secretive algorithms and then certain people to productionise them (wrap them up in applications and expose the results of the algorithms). But we want to block as many common vectors for downloading the code onto a local machine in order to prevent people from having a copy of the code.

I understand that is not one of the general purposes of these tools which is possibly why I cannot seem to find information on this particular subject. The very specific piece of information I am looking for is which bash/shell commands get run when the Download function is hit in VS Code Client on the Remote SSH plugin, so I can block those commands without having to add other more complex mechanisms to block file downloads.

Thank you

bamurtaugh commented 2 years ago

Thanks for the details @lloydie3. I think this may be out of scope at this point, but I'll include @tanhakabir and @roblourens in case they have other thoughts.

m3lab-zzl commented 2 years ago

Hi, @bamurtaugh. A new feature that enables user to toggle "click to open" feature for large files (such as zip files that may be identified by the suffix) would be nice.

Currently, an accidental click on large file freezes the whole VScode due to the background downloading that cannot be cancelled manually!

Thank you in advance.

VSCodeTriageBot commented 1 year ago

This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

VSCodeTriageBot commented 1 year ago

:slightly_frowning_face: In the last 60 days, this feature request has received less than 10 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

paulchill commented 1 year ago

Does the remote information and diagram here help?

I'm up voting an option for disabling file / folder downloads. I used to work at Facebook and used Nuclide Remote Dev and in my next role we still use it even though it's outdated.

I am looking to change over to VS code for my team but was surprised you can download the whole codebase or server files without any option to block that on the remote ssh extension with some flag set on by the server admin on initial extension installation?