-
Notifications
You must be signed in to change notification settings - Fork 401
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
gpg hangs in proxy environment. #435
Comments
I removed the feature, started the development container, and manually ran the relevant part of install.sh.
I'm not familiar with gpg, so I may be doing something wrong. |
Hi 👋 I tried to reproduce with the devcontainer, however, my container was successful. In the install.sh, can you append
|
Thank you for your support. With the settings you gave me, the error disappeared!
|
I made a mistake. |
I got an error.
|
From #441, the error is
@ksaito1125 @iLem0n Can you locally run any of these commands? I wonder if there's a proxy/VPN issue. |
Below are the results of running some patterns.
|
The gpg command doesn't seem to use http_proxy, https_proxy.
The environment variables are set, but the gpg command doesn't use the proxy.
|
Setting proxy in the argument gives another error.
|
The proxy has a self-signed intermediate certificate. I'm not sure how to properly set up intermediate certificates in gpg. |
Tried it locally:
but network works fine and site itself is reachable. Tested it with:
EDIT: I gave it a try to add
|
Few clarifying questions,
|
After changing the protocol of the key server to https://serverfault.com/questions/168826/how-to-install-gpg-keys-from-behind-a-firewall
|
I created a pull request. |
Thank you @ksaito1125 , much appreciated. Left some thoughts. |
Greetings. to answer your question # 1 : I discovered the same issue attempting to use the python feature using: |
* Terraform: Add proxy setting (#435) * Terraform: Remove unused variable GPG_OPTS (#435) * Terraform: Increment minor version (#435) * Update src/terraform/install.sh Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com> * Add feature option * Update src/terraform/devcontainer-feature.json Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com> * Update src/terraform/devcontainer-feature.json Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com> * Update src/terraform/devcontainer-feature.json Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com> * Terraform: Change environment variables to upper case (#435) * Terraform: Use HTTP_PROXY as the default for connecting to keyservers (#435) * Update src/terraform/install.sh Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com> --------- Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com> Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
Hello @ksaito1125, @samruddhikhandale, thank you so much for the fix 🙏🏻 Unfortunately I still have problems getting the feature to work. With 1.3.0 using the HttpProxy option I get the following:
|
@iLem0n hello! In my environment, the code below is working.
Setting the same option worked as well.
|
My docker environment has two proxies: This setting is required when the docker daemon pulls images.
I've followed this documentation to set up a proxy in docker.
|
The .devcontainers.json below will install terraform in the development container in the internet environment.
If you use the same code to start the development container in a proxy environment, gpg will fail to start with an error as shown below.
The text was updated successfully, but these errors were encountered: