GithubHelp home page GithubHelp logo

kihahu / ansible-module-cassandra Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ensighten/ansible-module-cassandra

0.0 2.0 0.0 6 KB

Ansible modules for managing Cassandra users and roles

License: MIT License

Python 100.00%

ansible-module-cassandra's Introduction

Cassandra Ansible Module

Supplies modules for administering Cassandra roles and granting permissions to those roles.

Pre-requisites

  1. Enable authentication in Cassandra
  2. Have cassandra-driver python package installed on the target machine

Enable auth in Cassandra

E.g. set the following properties in /etc/cassandra/cassandra.yml:

authenticator: PasswordAuthenticator
authorizer: CassandraAuthorizer

Once this is updated and the cluster restarted a default user of cassandra with password cassandra will be required to login.

This config change and restart must be applied before you can add permissions.

Install cassandra-driver

The package is: cassandra-driver and it can be install via pip.

Docs: https://datastax.github.io/python-driver/api/cassandra/query.html

Why is there no cassandra_user module?

In Cassandra's permissioning system, there are just roles. However, roles can (optionally) login and roles can inherit other roles (so roles can be used in a very user-like way).

A suggested setup would be have 'role' roles which can't login (but are granted the keyspace permissions), and 'user' roles which can login and inherit their permissions from roles.

e.g.

  1. Create role role_select_all who can not login but is granted access to select anything from any keyspace/table.
  2. Create 'pseudo-user' (a role which can login) and assign them the role role_select_all.

See example-tasks for how this can be done.

Docs

Written in comments in library/*.

ansible-module-cassandra's People

Contributors

sadams avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.