[
https://issues.apache.org/jira/browse/KAFKA-4180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15780202#comment-15780202
]
ASF GitHub Bot commented on KAFKA-4180:
---------------------------------------
GitHub user edoardocomar opened a pull request:
https://github.com/apache/kafka/pull/2293
KAFKA-4180 : Authentication with multiple actives Kafka
producers/consumers
Changed caching in LoginManager to allow one LoginManager per client
JAAS configuration.
Added test to End2EndAuthorization for SASL Plain and Gssapi with two
consumers with different credentials.
developed with @mimaison
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/edoardocomar/kafka KAFKA-4180d
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/2293.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2293
----
commit 64e827c365b938e977a15d5f3b2a4103297f9092
Author: Edoardo Comar <[email protected]>
Date: 2016-10-06T16:14:21Z
KAFKA-4180 : Authentication with multiple actives Kafka
producers/consumers
Changed caching in LoginManager to allow one LoginManager per client
JAAS configuration.
Added test to End2EndAuthorization for SASL Plain and Gssapi with two
consumers with different credentials.
developed with @mimaison
----
> Shared authentication with multiple active Kafka producers/consumers
> --------------------------------------------------------------------
>
> Key: KAFKA-4180
> URL: https://issues.apache.org/jira/browse/KAFKA-4180
> Project: Kafka
> Issue Type: Bug
> Components: producer , security
> Affects Versions: 0.10.0.1
> Reporter: Guillaume Grossetie
> Assignee: Mickael Maison
> Labels: authentication, jaas, loginmodule, plain, producer,
> sasl, user
>
> I'm using Kafka 0.10.0.1 with an SASL authentication on the client:
> {code:title=kafka_client_jaas.conf|borderStyle=solid}
> KafkaClient {
> org.apache.kafka.common.security.plain.PlainLoginModule required
> username="guillaume"
> password="secret";
> };
> {code}
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)