How does authentication and authorization work in Cassandra, and what are roles?
Last updated
Authentication proves identity (
PasswordAuthenticatorchecks credentials insystem_auth). Authorization (CassandraAuthorizer) enforces permissions set withGRANT/REVOKE.Roles unify users and permission sets: a role may have
LOGINand a password, and roles can be granted to other roles to inherit permissions.Replicate
system_authproperly (e.g.NetworkTopologyStrategy) or logins fail when nodes go down.
- https://cassandra.apache.org/doc/4.1/cassandra/configuration/cass_yaml_file.html
- https://cassandra.apache.org/doc/4.1/cassandra/operating/security.html
- https://dataxschool.medium.com/user-management-and-roles-in-apache-cassandra-a-comprehensive-guide-4f7aed633df2
- https://www.tenable.com/audits/items/CIS_Apache_Cassandra_3.11_v1.0.0_L1_OS_Unix.audit:8044f69b60c1791cc4c33cc7c1ae487e
- https://docs.datastax.com/en/cql/hcd/secure/configure-authentication-authorization.html
- https://axonops.com/docs/data-platforms/cassandra/security/authorization/
- https://cassandra.apache.org/doc/4.1/cassandra/cql/security.html
- https://cassandra-stage.netlify.app/post/cassandra-3-9-security-feature-walk-through/