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

Connection without username not logged in auditlog

    XMLWordPrintableJSON

Details

    • Correctness
    • Normal
    • Normal
    • User Report
    • All
    • None

    Description

      Hi,
      If making connection without username to cassandra cluster with PasswordAuthenticator enabled,
      Connection will fail but not logged on auditlog.

      How to reproduce:

      1. Enable "authenticator: PasswordAuthenticator" on cluster
      2. Enable audit : "nodetool enableauditlog"
      3. Open a new screen and run "auditlogviewer -f <log_location>/audit/"
      4. Try to connect, and connection will fail:
        [root@c1 ~]# cqlsh
        Connection error: ('Unable to connect to any servers', {'127.0.0.1:9042': AuthenticationFailed('Remote end requires authentication',)})
      5. But nothing in auditlogviewer.

      Connection with incorrect usernames or password logged correct on auditlog , the problem only on connection without username.

      How it's affecting:

      1. Security reason, hard to find unauthorized connections attempt .
      2. When migrating cluster into PasswordAuthenticator, hard to find applications that didn't add username/password. 

      Thank you. 

      Attachments

        Activity

          People

            qannap Ningzi Zhan
            yakir.g Yakir Gibraltar
            Ningzi Zhan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: