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

Shared authentication with multiple active Kafka producers/consumers

    XMLWordPrintableJSON

Details

    Description

      I'm using Kafka 0.10.0.1 with an SASL authentication on the client:

      kafka_client_jaas.conf
      KafkaClient {
          org.apache.kafka.common.security.plain.PlainLoginModule required
          username="guillaume"
          password="secret";
      };
      

      When using multiple Kafka producers the authentification is shared [1]. In other words it's not currently possible to have multiple Kafka producers in a JVM process.

      Am I missing something ? How can I have multiple active Kafka producers with different credentials ?

      My use case is that I have an application that send messages to multiples clusters (one cluster for logs, one cluster for metrics, one cluster for business data).

      [1] https://github.com/apache/kafka/blob/69ebf6f7be2fc0e471ebd5b7a166468017ff2651/clients/src/main/java/org/apache/kafka/common/security/authenticator/LoginManager.java#L35

      Attachments

        Issue Links

          Activity

            People

              mimaison Mickael Maison
              ggrossetie Guillaume Grossetie
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: