{"action":"created","issue":{"url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/68","repository_url":"https://api.github.com/repos/klaemo/docker-couchdb","labels_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/68/comments","events_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/68/events","html_url":"https://github.com/klaemo/docker-couchdb/issues/68","id":170843114,"number":68,"title":"require_valid_user is ignored","user":{"login":"tfpereira","id":11227455,"avatar_url":"https://avatars.githubusercontent.com/u/11227455?v=3","gravatar_id":"","url":"https://api.github.com/users/tfpereira","html_url":"https://github.com/tfpereira","followers_url":"https://api.github.com/users/tfpereira/followers","following_url":"https://api.github.com/users/tfpereira/following{/other_user}","gists_url":"https://api.github.com/users/tfpereira/gists{/gist_id}","starred_url":"https://api.github.com/users/tfpereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfpereira/subscriptions","organizations_url":"https://api.github.com/users/tfpereira/orgs","repos_url":"https://api.github.com/users/tfpereira/repos","events_url":"https://api.github.com/users/tfpereira/events{/privacy}","received_events_url":"https://api.github.com/users/tfpereira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-12T10:28:28Z","updated_at":"2016-08-12T14:45:18Z","closed_at":null,"body":"I'm running a 2.0-single instance with the following Dockerfile:\r\n\r\n```\r\nFROM klaemo/couchdb:2.0-single\r\nUSER root\r\nRUN echo 'couchdb:x:99:99:couchdb:/:/bin/sh' >> /etc/passwd\r\nUSER couchdb\r\nCOPY local.ini /opt/couchdb/etc/local.ini\r\nENTRYPOINT [\"/opt/couchdb/bin/couchdb\"]\r\n```\r\n\r\nThe local.ini is as follows:\r\n\r\n```\r\n; CouchDB Configuration Settings\r\n\r\n; Custom settings should be made in this file. They will override settings\r\n; in default.ini, but unlike changes made to default.ini, this file won't be\r\n; overwritten on server upgrade.\r\n\r\n[chttpd]\r\nbind_address = 0.0.0.0\r\nport = 5984\r\n\r\n[couchdb]\r\nuuid = theuuid\r\n\r\n[admins]\r\nroot = thehashedpassword\r\n\r\n[couch_httpd_auth]\r\nrequire_valid_user = true\r\nsecret = thesecret\r\n```\r\n\r\nWhen the CouchDB instance runs, I can see on Fauxton that require_valid_user is recognized has being true, However, anonymous users still have access to the database.\r\n\r\nAnything I might be missing here?"},"comment":{"url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/comments/239465880","html_url":"https://github.com/klaemo/docker-couchdb/issues/68#issuecomment-239465880","issue_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/68","id":239465880,"user":{"login":"tfpereira","id":11227455,"avatar_url":"https://avatars.githubusercontent.com/u/11227455?v=3","gravatar_id":"","url":"https://api.github.com/users/tfpereira","html_url":"https://github.com/tfpereira","followers_url":"https://api.github.com/users/tfpereira/followers","following_url":"https://api.github.com/users/tfpereira/following{/other_user}","gists_url":"https://api.github.com/users/tfpereira/gists{/gist_id}","starred_url":"https://api.github.com/users/tfpereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfpereira/subscriptions","organizations_url":"https://api.github.com/users/tfpereira/orgs","repos_url":"https://api.github.com/users/tfpereira/repos","events_url":"https://api.github.com/users/tfpereira/events{/privacy}","received_events_url":"https://api.github.com/users/tfpereira/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T14:45:17Z","updated_at":"2016-08-12T14:45:17Z","body":"In case someone wonders into this, there is no bug on CouchDB. I explained on JIRA and shall explain here:\r\n\r\n In my configuration, I was using port 5984 which was the chttpd port. I was applying all my permissions on [couch_httpd_auth], which was running on port 5986.\r\nChanging my local.ini to\r\n```\r\n[chttpd]\r\nbind_address = 127.0.0.1\r\nport = 5984\r\n[httpd]\r\nbind_address = 0.0.0.0\r\nport = 5986\r\n[couchdb]\r\nuuid = myuuid\r\n[admins]\r\nroot = mypassword\r\n[couch_httpd_auth]\r\nrequire_valid_user = true\r\nsecret = mysecret\r\n```\r\nAnd pointing to port 5986 resolved the issue."}}
{"actor":{"display_login":"tfpereira"}}