简体   繁体   English

是否可以在Cassandra的键空间上进行身份验证?

[英]Is it possible to have authentication on keyspaces in Cassandra?

我有一个具有两个密钥空间的Cassandra集群:A和B。是否可以仅在密钥空间A上启用Cassandra身份验证,这意味着可以在不进行身份验证的情况下访问密钥空间B?

Yes, you can do this in cassandra. 是的,您可以在cassandra中执行此操作。 You have ACLs. 您有ACL。 Here's a really good overview of the functionality: http://www.datastax.com/dev/blog/role-based-access-control-in-cassandra 这里是功能的非常不错的概述: http : //www.datastax.com/dev/blog/role-based-access-control-in-cassandra

This is the interesting part for you: 这是对您来说有趣的部分:

CREATE ROLE office_admin;
GRANT SELECT ON KEYSPACE office TO office_admin;
GRANT MODIFY ON KEYSPACE office TO office_admin;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM