Chef-server 0.10.10 and couchdb authentication


#1

Hey all,

Was wondering if anyone has setup chef-server to authenticate to
couchDB with Basic HTTP? I tried doing this in the server.rb, but
received a 401 status:

server.rb
couchdb_database "chef"
couchdb_url “http://admin:password@localhost:5984

Error is below:
merb : chef-server-webui : worker (port 4041) ~ Started request
handling: 2012-06-11 19:21:27 +0000
merb : chef-server-webui : worker (port 4041) ~ Params:
{“controller”=>“nodes”, “action”=>“index”}
merb : chef-server-webui : worker (port 4041) ~ 401 “Unauthorized” -
(Net::HTTPServerException)
/usr/lib/ruby/1.9.1/net/http.rb:2303:in error!' /usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/rest.rb:264:inblock in api_request’
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/rest.rb:328:in
retriable_rest_request' /usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/rest.rb:240:inapi_request’
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/rest.rb:128:in get_rest' /usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/environment.rb:271:inlist’
/usr/lib/ruby/gems/1.9.1/gems/chef-server-webui-0.10.10/app/controllers/application.rb:117:in
`load_environments’


Once I removed couchDB require_valid_user, chef-server was able to
authenticate and use couchdb again.

Thanks,

Nick Willever
cell: 480-389-6109
email: NickWillever@gmail.com