Skip to content
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

support for socks5 proxy #4529

Closed
bradbeam opened this issue Jan 6, 2016 · 3 comments
Closed

support for socks5 proxy #4529

bradbeam opened this issue Jan 6, 2016 · 3 comments

Comments

@bradbeam
Copy link

bradbeam commented Jan 6, 2016

Related to #523.

By default go honors the http_proxy/https_proxy environment variables, but will only work with http proxies. If you are using a socks5 proxy, this method does not work because go attempts to prepend the socks5 uri with http:// leaving you with something like: http://socks5://127.0.0.1:8888. socks5 support is provided via https://godoc.org/golang.org/x/net/proxy.

@kuzuha
Copy link

kuzuha commented Nov 10, 2017

any update?

I want to use mysql provider for private endpoint from behind a socks5 proxy.

@apparentlymart
Copy link
Contributor

We are aware that right now it's difficult to use Terraform with in-house services that are reachable only via a bastion host providing tunnel/proxy services. While we have support for bastion hosts with SSH, that doesn't help with non-SSH services like MySQL.

Unfortunately implementing support for SOCKS proxies would be a major undertaking since Terraform generally accesses remote services via third-party client libraries that usually do not support SOCKS proxies themselves, and we don't have the capacity to take on maintainership of in-house forks to add such support.

Currently our plan is to implement something like what is being discussed in #8367. Although that approach is not as transparent as a SOCKS proxy would be in theory, it treats the tunnel as an entirely-orthogonal concern from the client using it, which therefore allows this feature to be used with any client library that opens a TCP socket.

Since this issue covers the same high-level use-case as #8367, albeit with a different suggested implementation, I'm going to close this one just to consolidate the discussion in the other issue.

@ghost
Copy link

ghost commented Apr 6, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants