You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Brian (JIRA)" <ji...@apache.org> on 2016/11/30 01:21:58 UTC
[jira] [Commented] (COUCHDB-3100) require_valid_user is not working
[ https://issues.apache.org/jira/browse/COUCHDB-3100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15707147#comment-15707147 ]
Brian commented on COUCHDB-3100:
--------------------------------
This looks to be a "bug" in expectation, lack of documentation, unexpected config name or some combination of any or all of those. Looking in the source code for chttpd, it looks like it is looking for the config option under chttpd. (https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd_auth.erl#L51) To me this was unexpected as I would have expected a matching \[couch_chttpd_auth\] block to the \[couch_httpd_auth\] block
So expectation is that the following would work based on other config options and lack of documentation:
{code:title=Not working but expected}
[couch_chttpd_auth]
require_valid_user = true
{code}
However, from source code and trial on my couchdb 2.0 setup, the following did work as expected to require a valid user on port 5984:
{code:title=Working but unexpected}
[chttpd]
require_valid_user = true
{code}
Not sure if best way to fix is to change config option name or simply add documentation in the configuration section in the online help and possibly in the default config files provided with the build. Just wanted to add my observations to anyone else coming across this issue.
> require_valid_user is not working
> ---------------------------------
>
> Key: COUCHDB-3100
> URL: https://issues.apache.org/jira/browse/COUCHDB-3100
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Tiago Pereira
>
> When the configuration "require_valid_user = true" is added to the local.ini, the server ignores it and the database is still kept public. This problem was replicated in klaemo's docker image 2.0-single and 2.0-rc3 .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)