You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Status

Current stateDraft

Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread]

JIRA: KAFKA-4180 

Motivation

Currently the Kafka java client does not support different login contexts from within the same JVM.
IBM MessageHub has encountered many users asking for this functionality, e.g. having multiple consumers and producers in a single JVM that consumer/produce to different Kafka clusters, each requiring specific credentials.

Public Interfaces

A new LoginModule class will be added, which reads the client.id property from the consumer.properties/producer.properties file, and will look for username and password corresponding to that clientid by querying a supplied implementation of a (new) CredentialProvider interface

Proposed Changes

Describe the new thing you want to do in appropriate detail. This may be fairly extensive and have large subsections of its own. Or it may be a few sentences. Use judgement based on the scope of the change.

Compatibility, Deprecation, and Migration Plan

  • The old SimpleLoginModule and its expected jaas.conf may remain unchanged for backward compatibility for users that don't require the new functionality
  • No labels