vscode-coder icon indicating copy to clipboard operation
vscode-coder copied to clipboard

Feature: Dynamic port forwarding allow+deny list

Open gtaylor opened this issue 1 year ago • 1 comments

I posted a feature request for an allow+deny list for port forwarding on the jetbrains-backend-coder repo, but this also applies to the VS Code case. Cross-posting the issue here so we can separately track these for both IDEs:

Here is the JB version of the issue: https://github.com/coder/jetbrains-backend-coder/issues/38

gtaylor avatar Jul 30 '24 21:07 gtaylor

Note that this can be done without explicit support in the Coder extension: the remote.portAttributes and remote.otherPortAttributes VS Code settings can be set through ~/.vscode-server/data/Machine/settings.json on the workspace.

If this is being driven by devcontainer.json, it's sufficient to copy portAttributes from devcontainer.json to remote.portAttributes in settings.json (and so on for otherPortAttributes), since the devcontainer.json schema for these matches VS Code's settings schema.

aaronlehmann avatar Feb 21 '25 17:02 aaronlehmann