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
Implement support for HTTP/HTTPS/SOCKS proxy usage #202
Comments
Well, I need to simulate the environment, I will prepare a docker image which:
In progress |
Steps:
Trying to find reliable proxy right now, because
|
Right command is But once I drop all other traffic with
It feels like I missing some settings in |
@CAMOBAP Checking if we can find someone to help here. |
Per answer, ruby will not work such way this is why socksify gem was developed with it support looks much easier http://rpm.repo.onapp.com/sources/rubygem-socksify-1.7.1/socksify-1.7.1/doc/
Testing: socksify_ruby $SOCKS5_PROXY_HOST $SOCKS5_PROXY_PORT /usr/local/bundle/bin/metanorma new -d standard -t csd csd-foo-standard
|
As you've seen the rename of the title, I'm not sure if the user really needs SOCKS. He said the proxy is SOCKS, but he can access by setting HTTPS_PROXY. Let's try making HTTP_PROXY and HTTPS_PROXY work first by ensuring all network calls use The StackOverflow comments do not suggest that we cannot simulate the condition though. |
@ronaldtse he can do this for curl for metanorma too? According to my information socks proxy will not work for
Finally I was able to simulate test conditions, it fails on git calls, I'm trying a workaround right now |
@CAMOBAP That's why I suspect that his corporate proxy provides both HTTP/HTTPS proxy and SOCKS access (he mentioned SOCKS specifically). If we only use |
Well to many assumptions, but still let me reply to some of your thoughts
According to the original
For HTTP/HTTPS proxy there is nothing that needs to be done, it just works out-of-the-box. Both
It possible to keep all proxies on a single host but I'm not sure that they able to share a single port, and as I noted above user uses HTTPS proxy for curl Ruby doesn't support SOCKS proxy passed in require 'open-uri'
URI.open('http://www.example.org/').read and
What needs to be done from our side
|
Also related to this ruby-git/ruby-git#531 (not blocking but may fails for non |
Sometimes |
PRs prepared, once we will agreed on open questions, I will prepare post on metanorma.com |
Done, and released in 1.4.12 |
From a user.
Curl allows this:
From @CAMOBAP :
There are two known locations in the Metanorma/Relaton stack that accesses the internet.
metanorma-ietf:
https://github.com/metanorma/metanorma-ietf/blob/fce3ae41d3bb3e61573d233d5b9815226835cb59/lib/asciidoctor/ietf/validate.rb#L55-L78
Relaton accesses the Internet for references.
This work is to support HTTP/HTTPS/SOCKS proxy in this stack.
The text was updated successfully, but these errors were encountered: