In couchdb website -> technical overview -> security and validation - http://couchdb.apache.org/docs/overview.html - it writes that (on reader access part) "To protect document contents, CouchDB documents can have a reader list. This is an optional list of reader-names allowed to read the document. When a reader list is used, protected documents are only viewable by listed users." I searched about how to use it but i found nothing. So is it actually used and if it is how?
Thanks.
-- Mustafa
You are right, it is confusing. Please see the 0.11 "breaking" changes for more information.
Per-document read control is not possible; the readers
field is for access to the entire DB. For more information, load your database in Futon and click the Security...
link at the top.
The reason read control is not possible is because views (map and reduce) can draw information from all documents in the database, so it is generally impossible to prevent users from seeing private data in some form.
For detailed access control, you have two major choices:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With