简体   繁体   中英

Cassandra sstableloader authorization

Small question about Cassandra 3.0.8. Not datastax. is it possible to grant/revoke permissions for users, who use sstableloader? For now, user only authenticate in Cassandra and can update any table...

There is no specific authentication for just sstableloader. However you can

  • Create separate set of users/roles for each and every table within the keyspace.
  • In other words, there could be different users with different set of permissions on each and every table.
  • Here is an example on how to create user and define permission at table level

GRANT SELECT PERMISSIONS ON keyspace1.table1 TO USER1; GRANT MODIFY PERMISSIONS ON keyspace1.table2 TO USER1;

So in the above example USER1 has select permission on table1 while update permission on table2. So you can authorize who gets to have update access on table1 but not if it comes from sstableloader or cql or application code.

Here is the reference for roles and permissions https://docs.datastax.com/en/cql/3.1/cql/cql_reference/grant_r.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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