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 ?
I’m trying to setup a CouchDB database that could be publicly writable and only
Share
One possible workaround would be to “abuse” Apache for this (though not 100% secure):
You can use Apache to disallow
GETfrom everyone except specific hosts which are the ones the admin uses… this way the users can write but can’t read and the admin can read…You could even have different URLs for admin (read+write) and users (write only) if you config Apache as reverse proxy…