在CouchDB的网站 - >技术概述 - >安全和验证 - couchdb.apache/docs/overview.html - 它写道,(在读者访问部分)保护文档内容,CouchDB的文档可以有一个读者名单。这是允许阅读文档阅读器,名称的可选列表。当一个读者名单时,受保护的文档只能由列出的用户查看。我搜索有关如何使用它,但我什么也没发现。因此,它是实际使用,如果这是怎么了?
In couchdb website -> technical overview -> security and validation - couchdb.apache/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?
感谢。
- 穆斯塔法
推荐答案您是对的,这是令人困惑的。请参阅 0.11破的详细信息更改。
You are right, it is confusing. Please see the 0.11 "breaking" changes for more information.
每个文档读取的控制是不可能;在阅读字段是访问整个DB 的。欲了解更多信息,加载数据库中的被褥,然后点击顶部的安全... 链接。
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.
原因读控制是不可能的,因为视图(map和reduce),可以从数据库中的所有文件中提取信息,所以一般不可能prevent用户以某种方式看到私人数据。
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:
更多推荐
CouchDB的读取权限
发布评论