Comment by binlog

18 hours ago

The agent is supposed to run on a remote dev box. The purpose is to make the remote machine an extension of your local one, to run extensions, containers, install packages, test deployments, forward ports and tons more. Tunneling is part of the feature set. If you are installing it on production servers and are surprised by its behavior that’s on you.

It also makes your local client an extension of the remote box. That is going directly against expectations for remote access.

  • It's right there though:

    > # Security Note > > Using Remote-SSH opens a connection between your local machine and the remote. Only use Remote-SSH to connect to secure remote machines that you trust and that are owned by a party whom you trust. A compromised remote could use the VS Code Remote connection to execute code on your local machine.

    From https://marketplace.visualstudio.com/items?itemName=ms-vscod...

    Big bold text and everything

    • It's like giving away a gun that explodes in your face if you shoot it in anger, but with a prominent label on the box that says 'WARNING: Will Malfunction!'. And then heavily promoting it.

  • I think it is so that the server extensions can do stuff on the client, imo the weirder part is that it installs a bunch of stuff on the remote