Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6426

Kafka SASL/SCRAM authentication does not fail for incorrect username or password.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 0.10.2.1
    • None
    • None
    • None
    • Ubuntu 16.04, JDK 1.8, Kafka_2.10-0.10.2.1

    Description

      Hi,

      I configured Kafka 0.10.2.1 for SASL/SCRAM by following the documentation [1].
      But it does work when I use incorrect username or password in the client as well.

      I have attached the server.properties, consumer.properties, producer.properties, jass config files for broker and client.

      Also, in my producer, I have set
      props.put("sasl.mechanism", "SCRAM-SHA-256");

      but when running, it shows,
      kafka.utils.VerifiableProperties - Property sasl.mechanism is not valid

      [1] https://kafka.apache.org/documentation/#security_sasl_scram

      Thanks and Regards,
      Menaka

      Attachments

        1. broker-jaas.conf
          0.2 kB
          Menaka Madushanka
        2. client-jaas.conf
          0.3 kB
          Menaka Madushanka
        3. consumer.properties
          1 kB
          Menaka Madushanka
        4. producer.properties
          2 kB
          Menaka Madushanka
        5. server.properties
          6 kB
          Menaka Madushanka

        Activity

          People

            Unassigned Unassigned
            menaka Menaka Madushanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: