您可以在MongoDB中拥有集合级别的权限吗? [英] Can you have collection level permissions in MongoDB?

查看:41
本文介绍了您可以在MongoDB中拥有集合级别的权限吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在MongoDB中拥有集合级别的权限吗?类似于SQL数据库中的表级别权限?

Can you have collection level permissions in MongoDB? Similar to table level permissions in a SQL database?

这是我唯一能找到的.看起来像张旧票.

This is the only thing I could find on it. Looks like an old ticket.

https://jira.mongodb.org/browse/SERVER-1105

推荐答案

否,不是,目前,MongoDB访问控制仅在数据库级别可用.根据您的要求,可以选择在应用程序代码中实现一个安全模型,以控制对集合级别的访问.

Nope, not yet, MongoDB access control is currently only available at the database level. Depending on your requirements, it might be an option to implement a security model in application code that controls access down to the collection level.

这篇关于您可以在MongoDB中拥有集合级别的权限吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆