-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote extension installation ignores proxy settings #986
Comments
Having the same issue, behind a MITM SSL proxy. Extra certificates are in fact installed in the container, and if I use a shell from inside the container, I can wget/curl https:// URLs just fine. #587 is the exact problem I am seeing, but it was closed for some reason. |
Similar boat, container builds successfully and then hangs on TLSSocket errors when attempting to 'Install VS Code Server'
|
This isn't happening from in the container. VSCode is trying to download this file to your host, then copy it to the container. Setting: NODE_TLS_REJECT_UNAUTHORIZED=0 sorts it, but is horribly insecure. |
Probably not. But the fact I can't install using the Without setting the proxies in the container I just get
|
Was able to also reproduce this error when running on Windows. |
I'm getting this error as well. Extension version: 0.66.0 |
Looks like the container spinning up is not updating the settings before installing extensions. |
The issue is vscode does not respect the windows certificate store, it uses the node built in one and it doesn't support NODE_EXTRA_CA_CERTS: electron/electron#10257 (comment) If you set: NODE_TLS_REJECT_UNAUTHORIZED=0 it will download, but now I've just invalidated all of node TLS security./ |
Yupp @jabbera. Found that to be the case as well. On MacOS I just had to set the |
Just to clarify: On Windows you need both |
I might have done something wrong but I tried your steps with no avail. On my Windows laptop i set this env variable as a system env variable PowerShell example: On the ubuntu container: |
I can confirm that |
@sandy081 The main issue here is that the CLI used to install the extensions listed in the devcontainer.json does not support proxies and custom certificates the same way we do for extensions or the UI. We could look into reusing the implementation we have for the extension host. @Rhahkeem Which cases start working by setting |
We have a MITM firewall, not a proxy, and everything works fine if I set NODE_TLS_REJECT_UNAUTHORIZED=0 on my host and copy my certs to the container and set: NODE_EXTRA_CA_CERTS in the container and run update-ca-certificates. (Windows 10 host, Debian Linux image). I’d be happy if the NODE_EXTRA_CA_CERTS worked on the host instead of having to straight up disable TLS auth. |
Loading certificates from the OS was broken on Windows (microsoft/vscode#79044). That is fixed in the latest Insiders build. What remains is the missing support for loading certificates from the OS in the CLI that installs the extensions listed in the devcontainer.json. |
I am no longer getting the certificate error i had been getting once I upgraded to vscode 1.37.1 |
@chrmarti has there been any change in the priority of this issue? |
I'm getting the following:
when running the below in a docker container. The below is what VS code is automatically when starting up the development container
|
I'm getting the exact same error under a normal connection (no proxy, no anything). I tried setting
Remote Containers v0.154.1 and VSCode 1.52.1 under Ubuntu Desktop 20.10. |
Seeing the same in VS Code 1.55.0 behind a corporate proxy: Error: connect ECONNREFUSED 13.107.42.18:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '13.107.42.18',
port: 443
} Works via the UI. |
@abid-mujtaba That is a different issue. Please check if VS Code 1.55.1 fixes it and file a new issue if it doesn't: https://github.com/microsoft/vscode/issues |
Thanks @chrmarti. Can confirm that updating to 1.55.1 fixed my issue. |
Not sure if this is related, the message received on our side is a tiny bit different:
Same error whether we connect to WSL2 or a running docker container. |
@lavaude Could you open a new issue? This looks like a different problem. Thanks. |
The same error here, someone knows how to fix it? I tried setting the env variables but it didn't work. My error is when I'm using remote-ssh to a remote development, from windows to Linux. My corporation uses the ZScaler. |
My issue got about Remote - SSH (#5727) got merged into this one. I can see that folks here have found workarounds for container workflows, does anyone have any suggestions for Remote - SSH ones? |
In terms of Remote - SSH workflow, something must've changed in |
We have written the needed data into your clipboard because it was too large to send. Please paste.
Issue Type: Bug
I'm behind a company proxy so I usually need to add these settings when installing something for VScode.
When trying to install an extension in my container by using the
.devcontainer.json
fileFails to actually use these settings or my own vscode settings to install through the proxy. From what I can tell these settings only apply within the container to install anything supplementary used by the extension (ie C++ needs to install 4 extra things). Weirdly if I try to install via the UI it works with no issue.
I think the codepath to install extensions within the container isn't respecting any proxy settings set in VSCode itself.
From the trace it also looks like it tries to install the extension via an IP Address instead of a url which is also explicitly blocked on our end.
When adding exports to my container
I get an error
self signed certificate in certificate chain
:-(Extension version: 0.66.0
VS Code version: Code 1.36.1 (2213894ea0415ee8c85c5eea0d0ff81ecc191529, 2019-07-08T22:56:38.504Z)
OS version: Darwin x64 18.6.0
Remote OS version: Linux x64 4.9.125-linuxkit
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: