{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3293","labels_url":"https://api.github.com/repos/chef/chef/issues/3293/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3293/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3293/events","html_url":"https://github.com/chef/chef/issues/3293","id":71514083,"number":3293,"title":"no_proxy behavior when set in client.rb vs environment","user":{"login":"fdevaux","id":785424,"avatar_url":"https://avatars.githubusercontent.com/u/785424?v=3","gravatar_id":"","url":"https://api.github.com/users/fdevaux","html_url":"https://github.com/fdevaux","followers_url":"https://api.github.com/users/fdevaux/followers","following_url":"https://api.github.com/users/fdevaux/following{/other_user}","gists_url":"https://api.github.com/users/fdevaux/gists{/gist_id}","starred_url":"https://api.github.com/users/fdevaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdevaux/subscriptions","organizations_url":"https://api.github.com/users/fdevaux/orgs","repos_url":"https://api.github.com/users/fdevaux/repos","events_url":"https://api.github.com/users/fdevaux/events{/privacy}","received_events_url":"https://api.github.com/users/fdevaux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T07:45:50Z","updated_at":"2015-07-07T21:54:44Z","closed_at":null,"body":"client.rb supports setting no_proxy (as per https://docs.chef.io/config_rb_client.html)\r\n\r\nHowever no_proxy set in client.rb behaves different from having it set as an environment variable (in the shell running chef-client). The client.rb version only supports a full hostname or IP whereas the environment variable supports a domain.\r\n\r\nThe document **does** mention this though ...\r\n> A comma-separated list of URLs that do not need a proxy. Default value: nil.\r\n\r\nHowever this is very confusing for the user.\r\n\r\nFor example, let's say I want no_proxy for all the hosts under internal.bigcorp.com, and one of the hosts is fileserver.internal.bigcorp.com. I test this with the remote_file platform resource.\r\n\r\nIf I have an environment variable `no_proxy=internal.bigcorp.com`, no proxy is being used, as expected. However if I have no environment variables and define the proxy settings in client.rb, the proxy will be used. If I update the no_proxy in client.rb to be `no_proxy fileserver.internal.bigcorp.com` the proxy is bypassed again."},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/119353979","html_url":"https://github.com/chef/chef/issues/3293#issuecomment-119353979","issue_url":"https://api.github.com/repos/chef/chef/issues/3293","id":119353979,"user":{"login":"sergiopatino","id":868839,"avatar_url":"https://avatars.githubusercontent.com/u/868839?v=3","gravatar_id":"","url":"https://api.github.com/users/sergiopatino","html_url":"https://github.com/sergiopatino","followers_url":"https://api.github.com/users/sergiopatino/followers","following_url":"https://api.github.com/users/sergiopatino/following{/other_user}","gists_url":"https://api.github.com/users/sergiopatino/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiopatino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiopatino/subscriptions","organizations_url":"https://api.github.com/users/sergiopatino/orgs","repos_url":"https://api.github.com/users/sergiopatino/repos","events_url":"https://api.github.com/users/sergiopatino/events{/privacy}","received_events_url":"https://api.github.com/users/sergiopatino/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T21:54:44Z","updated_at":"2015-07-07T21:54:44Z","body":"any updates on this? we need to have no_proxy accept wild cards."}}