bd808 added a comment.

  In T399485#11915345 <https://phabricator.wikimedia.org/T399485#11915345>, 
@bd808 wrote:
  
  >> Add a SOCKS5 proxy to the appropriate test suites to tunnel traffic to an 
exit that is unlikely to be blocked
  >
  > I do not have a deep understanding of the pywikibot tests, but assuming 
that generally all pywikibot traffic runs through `requests` it should be 
possible to do something like `ssh -f -N -D 127.0.0.1:1080 
[email protected]; export ALL_PROXY="socks5://127.0.0.1:1080` to 
setup a socks5 proxy that tunnels into the Cloud VPS network via ssh and 
configure `requests` to use it. It would be prudent to use a specially created 
Developer account for this that we can ensure only has basic ssh access and no 
more elevated rights in case the ssh credentials leak from the CI runner 
somehow.
  
  Eh. I forgot that `requests` made SOCKS support an optional library 
(`requests[socks]`). It is not clear in the upstream docs 
<https://docs.python-requests.org/en/latest/user/advanced/#proxies> as they 
literally show a `export ALL_PROXY="socks5://10.10.1.10:3434"` example, but 
then have a separate section for SOCKS support 
<https://docs.python-requests.org/en/latest/user/advanced/#socks>.

TASK DETAIL
  https://phabricator.wikimedia.org/T399485

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to