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

Compare with Current View Page History

« Previous Version 3 Next »

Status

Current state"Under Discussion"

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

JIRAhttps://issues.apache.org/jira/browse/KAFKA-7896

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

Motivation

The existing Log4J Kafka appender supports producing to brokers that use the GSSAPI (kerberos) sasl mechanism, and only supports configuring jaas via setting the jaas config file as a jvm property. This KIP covers extending this to include the PLAIN mechanism and to support configuring jaas via a property passed to the producer.

Public Interfaces

We propose adding two new config properties to the log4j appender:

  • SaslMechanism: The value for this config will be put into the "sasl.mechanism" property passed to the producer created by KafkaLog4jAppender. If no value is provided for this property, then no value will be set for "sasl.mechanism" (which is the current behavior).
  • ClientJaasConf: The value for this config will be put into the "saasl.jaas.config" property passed to the producer created by KafkaLog4jAppender. If no value is provided for this property, then no value will be set for "sasl.jaas.config" (which is the current behavior).

Proposed Changes

The Public Interfaces section covers the proposed changes. There is also a PR here: https://github.com/apache/kafka/pull/6216

Compatibility, Deprecation, and Migration Plan

The proposal only changes behavior if the new configs are specified, so there are no compatibility concerns.

Rejected Alternatives

N/A

  • No labels