{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/297","repository_url":"https://api.github.com/repos/cloudfoundry/bosh-cli","labels_url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/297/comments","events_url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/297/events","html_url":"https://github.com/cloudfoundry/bosh-cli/issues/297","id":250283931,"node_id":"MDU6SXNzdWUyNTAyODM5MzE=","number":297,"title":" cli doesn't play well with http proxy","user":{"login":"domdom82","id":1755853,"node_id":"MDQ6VXNlcjE3NTU4NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1755853?v=4","gravatar_id":"","url":"https://api.github.com/users/domdom82","html_url":"https://github.com/domdom82","followers_url":"https://api.github.com/users/domdom82/followers","following_url":"https://api.github.com/users/domdom82/following{/other_user}","gists_url":"https://api.github.com/users/domdom82/gists{/gist_id}","starred_url":"https://api.github.com/users/domdom82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domdom82/subscriptions","organizations_url":"https://api.github.com/users/domdom82/orgs","repos_url":"https://api.github.com/users/domdom82/repos","events_url":"https://api.github.com/users/domdom82/events{/privacy}","received_events_url":"https://api.github.com/users/domdom82/received_events","type":"User","site_admin":false},"labels":[{"id":499690349,"node_id":"MDU6TGFiZWw0OTk2OTAzNDk=","url":"https://api.github.com/repos/cloudfoundry/bosh-cli/labels/discuss","name":"discuss","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-15T10:58:53Z","updated_at":"2018-09-26T12:41:57Z","closed_at":null,"author_association":"NONE","body":"Following the guide at http://bosh.io/docs/cli-tunnel.html I want to tunnel to a jump box for both BOSH traffic and http traffic.\r\n\r\nMain issue is, bosh2 cli only seems to work well if **only** `BOSH_ALL_PROXY=socks5://localhost:5000` is set. \r\n\r\nWhen I set a generic `http_proxy=socks5://localhost:5000` and try to list VMs in a deployment I get the following error:\r\n\r\n```\r\nbosh2 -e https://192.168.1.11:25555 --ca-cert <mycert> --client admin --client-secret **** deployments\r\nFetching info:\r\n  Performing request GET 'https://192.168.1.11:25555/info':\r\n    Performing GET request:\r\n      Retry: Get https://192.168.1.11:25555/info: http: error connecting to proxy http://socks5://localhost:5000: proxy: failed to parse port number:\r\n\r\nExit code 1\r\n```\r\n\r\nMind you, when I do a regular `curl -k https://192.168.1.11:25555/info` it works perfectly fine over the proxy.\r\n\r\nMy suspicion is a bug in the underlying http client which might do a hard assumption on http as a proxy protocol instead of socks5.\r\n\r\nUse case: I wanted to query the IPs from a bosh deployment's VM and then perform some test against it. So I need to proxy both the bosh director traffic and regular http traffic to talk to the VM deployed by bosh."},"comment":{"url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/comments/424700487","html_url":"https://github.com/cloudfoundry/bosh-cli/issues/297#issuecomment-424700487","issue_url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/297","id":424700487,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDcwMDQ4Nw==","user":{"login":"ramonskie","id":1135244,"node_id":"MDQ6VXNlcjExMzUyNDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1135244?v=4","gravatar_id":"","url":"https://api.github.com/users/ramonskie","html_url":"https://github.com/ramonskie","followers_url":"https://api.github.com/users/ramonskie/followers","following_url":"https://api.github.com/users/ramonskie/following{/other_user}","gists_url":"https://api.github.com/users/ramonskie/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonskie/subscriptions","organizations_url":"https://api.github.com/users/ramonskie/orgs","repos_url":"https://api.github.com/users/ramonskie/repos","events_url":"https://api.github.com/users/ramonskie/events{/privacy}","received_events_url":"https://api.github.com/users/ramonskie/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T12:41:57Z","updated_at":"2018-09-26T12:41:57Z","author_association":"NONE","body":"@cppforlife any idea's if this is still up for discussion?\r\nas this bug still persists after a year"}}
{"actor":{"display_login":"ramonskie"}}