You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/03/22 12:15:06 UTC

[GitHub] [couchdb] dummys opened a new issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

dummys opened a new issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701
 
 
   Hi,
   
   We were using couchdb 2.0 without any installation because the server is accessed only locally by only one server. We are deploying automatically couchdb on the ubuntu server. Now with 3.0 we had to first create an admin user in order to start the server, but we still can't access the server with anonymous access.
   We setup like the documentation said inside `local.d/ip.ini`:
   ```
   [chttpd]
   bind_address = 0.0.0.0
   require_valid_user = false
   
   [couch_httpd_auth]
   require_valid_user = false
   ```
   and we also setup `local.d/couchdb.ini`:
   
   ```
   [couchdb]
   default_security = everyone
   ```
   But we still get error like:
   
   `undefined PUT /couchdb/1blank.pdf0_2020-_03-_22_07_39_31 404 ok`
   
   Is there a way to make couchdb 3.0 behave like 2.0 ? What is you advice ?
   Thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701#issuecomment-602714147
 
 
   @dummys Sorry, let me review this in more detail today and get back to you.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali closed issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
wohali closed issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] dummys commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
dummys commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701#issuecomment-602795769
 
 
   ok now you answer correctly, appreciate. Have a nice day thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] dummys commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
dummys commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701#issuecomment-602432731
 
 
   @wohali I didn't understand, I showed you that I already have `everyone` what do you  want I put in place ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] dummys commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
dummys commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701#issuecomment-602772069
 
 
   ok thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali closed issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
wohali closed issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701#issuecomment-602795302
 
 
   Sorry for rushing through this yesterday.
   
   With CouchDB 3.0, only admin users can create databases, delete databases, or anything else mentioned here: https://docs.couchdb.org/en/stable/intro/security.html#authentication
   
   So no, there is no way in 3.0 to allow regular users the ability to create databases without them also being admin users. Sorry about that.
   
   Once you've created a db as an admin, a regular user can then edit that database if you give them a role and adjust the `_security` object for that database.
   
   Or, as you say:
   >  Or as it will have only one server using this, I use the admin account ?
   
   Yes, if you're the only one using the database server, and only one thing needs to access it, and you're not worried about accidental DB creation/deletions, then just use the admin user you're creating with debconf.
   
   > can I automate the creation of a user when installing it with debconf
   
   No, only the admin user can be created using debconf.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701#issuecomment-602284475
 
 
   @dummys Try changing the following in your ini file:
   
   ```
   [couchdb]
   default_security = everyone
   ```
   
   You'll still need the admin user to start CouchDB.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] dummys opened a new issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?

Posted by GitBox <gi...@apache.org>.
dummys opened a new issue #2701: Is there a way to make couchdb 3.0 works like couchdb 2.0 without admin ?
URL: https://github.com/apache/couchdb/issues/2701
 
 
   Hi,
   
   We were using couchdb 2.0 without any installation because the server is accessed only locally by only one server. We are deploying automatically couchdb on the ubuntu server. Now with 3.0 we had to first create an admin user in order to start the server, but we still can't access the server with anonymous access.
   We setup like the documentation said inside `local.d/ip.ini`:
   ```
   [chttpd]
   bind_address = 0.0.0.0
   require_valid_user = false
   
   [couch_httpd_auth]
   require_valid_user = false
   ```
   and we also setup `local.d/couchdb.ini`:
   
   ```
   [couchdb]
   default_security = everyone
   ```
   But we still get error like:
   
   `undefined PUT /couchdb/1blank.pdf0_2020-_03-_22_07_39_31 404 ok`
   
   Is there a way to make couchdb 3.0 behave like 2.0 ? What is you advice ?
   Or as  it will  have only one server using this, I use the admin account ?
   Or can I automate the creation of a user when installing it with debconf ? I'm already creating the admin user like this.
   Thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services