Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-10209

Missing role manager in cassandra.yaml causes unexpected behaviour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.2.2, 3.0.0 rc1
    • Local/Config
    • None
    • Low

    Description

      On upgrading to 2.2+, if the new role_manager option is not added to cassandra.yaml, an instance of the default CassandraRoleManager is created during initialization of DatabaseDescriptor. This is a problem as the set of role options supported by CRM depends on the configured IAuthenticator, which at that point in time is always AllowAllAuthenticator.

      This StackOverflow post describes the problem; the configured authenticator is PasswordAuthenticator, the role manager should allow roles to be created using the PASSWORD option, but it does not.

      http://stackoverflow.com/questions/31820914/in-cassandra-2-2-unable-to-create-role-containing-password

      The simple workaround is to ensure that yaml contains the role manager option

      role_manager: CassandraRoleManager
      

      Attachments

        Activity

          People

            samt Sam Tunnicliffe
            samt Sam Tunnicliffe
            Sam Tunnicliffe
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: