# Chef-solo and apache basic auth

**URL:** <https://discourse.chef.io/t/chef-solo-and-apache-basic-auth/3309>\
**Category:** Chef Infra (archive)\
**Created:** [November 2, 2012, 2:27pm UTC](https://discourse.chef.io/t/chef-solo-and-apache-basic-auth/3309 "2012-11-02T14:27:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@Tom](https://discourse.chef.io/u/Tom)\
**Post date:** [November 2, 2012, 2:27pm UTC](https://discourse.chef.io/t/chef-solo-and-apache-basic-auth/3309/1 "2012-11-02T14:27:22Z")

</div>

Hi,

Is it possible to pass chef-solo the URL for a chef tarball that is behind  
http basic auth website?

If I try basic auth I am receiving the following error.

It looks like it hasn’t been implemented in the -r switch, but it does work  
getting the role and solo config file.

Thanks for any help,

Tom

# chef-solo -c [http://user:pass@server/solo.rb](http://user:pass@server/solo.rb) -j

[http://user:pass@server/roles/role.json](http://user:pass@server/roles/role.json)  
-r [http://user:pass@server/chef.tgz](http://user:pass@server/chef.tgz)  
/opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:254:in `open_http': userinfo not supported. [RFC3986] (ArgumentError) from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:775:in`buffer\_open’  
from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:203:in `block in open_loop' from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:201:in`catch’  
from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:201:in  
`open_loop' from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:146:in`open\_uri’  
from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:677:in `open' from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:33:in`open’  
from  
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/solo.rb:201:in  
`block in reconfigure' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/solo.rb:200:in`open’  
from  
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/solo.rb:200:in  
`reconfigure' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/lib/chef/application.rb:68:in`run’  
from  
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/bin/chef-solo:25:in  
`<top (required)>' from /usr/bin/chef-solo:23:in`load’  
from /usr/bin/chef-solo:23:in `’
