Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CouchDB write-only database

I'm trying to setup a CouchDB database that could be publicly writable and only readable by the "admin" role. How can I do this. Is there a similar validate_doc_update function for accessing a document ?

like image 739
Maxime Avatar asked Nov 04 '22 22:11

Maxime


1 Answers

Check out this page on the wiki, it provides an introduction to setting up read/write-level security on a database level.

As of CouchDB 1.1.0, it is not possible to have write access but not also read access to a database. What you can do is write to database A and then replicate that into database B, and only the admin can read database B.

like image 103
Dominic Barnes Avatar answered Nov 30 '22 01:11

Dominic Barnes