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

Compare with Current View Page History

Version 1 Next »

This page is meant as a template for writing a KIP. To create a KIP choose Tools->Copy on this page and modify with your content and replace the heading with the next KIP number and a description of your issue. Replace anything in italics with your own description.

Status

Current state: Draft

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

JIRA: KAFKA-6750

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

Currently when building a Principal, the builder has access to the AuthenticationContext which contains the security protocol. However since 0.10.2.0 Kafka can have multiple listeners for the same protocol. It would be beneficial to also have access to the listener name in the AuthenticationContext to properly identify the connection.

For example with the following configuration, it's not currently possible in a custom PrincipalBuilder to identify if a connection is from an internal or external network as both have the same security protocol:

advertised.listeners=CLIENT://example.com:9092,INTERNAL_SASL://broker1.local:9093
listeners=CLIENT://192.1.1.8:9092,INTERNAL_SASL://10.1.1.5:9093


Public Interfaces

A new public method will be added to AuthenticationContext:

/**
 * Name of the listener used for the connection
 */
ListenerName listenerName();

 

As well as to all the existing implementations: PlaintextAuthenticationContext, SslAuthenticationContext and SaslAuthenticationContext

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

  • What impact (if any) will there be on existing users?
  • If we are changing behavior how will we phase out the older behavior?
  • If we need special migration tools, describe them here.
  • When will we remove the existing behavior?

Rejected Alternatives

If there are alternative ways of accomplishing the same thing, what were they? The purpose of this section is to motivate why the design is the way it is and not some other way.

 

 

  • No labels