Skip to content

Kafka authentication via SASL/PLAIN with reloadable JAAS login configuration file.

License

Notifications You must be signed in to change notification settings

grepplabs/kafka-sasl-plain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka SASL/PLAIN

Kafka authentication via SASL/PLAIN with reloadable JAAS login configuration file.

Build Status

PlainLoginModule based on org.apache.kafka.common.security.plain.PlainLoginModule which watches and reloads JAAS configuration file.

Usage

Maven build dependencies

<dependency>
  <groupId>com.github.grepplabs</groupId>
  <artifactId>kafka-sasl-plain</artifactId>
  <version>see above</version>
</dependency>

Kafka server

  • download jar
mvn dependency:get \
  -Dartifact=com.github.grepplabs:kafka-sasl-plain:1.0.0:jar \
  -Dtransitive=false \
  -Ddest="kafka-sasl-plain-1.0.0.jar"
  • add jar to broker CLASSPATH by coping it to Kafka libs directory
  • modify JAAS configuration

kafka_server_jaas.conf:

KafkaServer {
   com.grepplabs.kafka.security.sasl.plain.PlainLoginModule required
   username="admin"
   password="admin-secret"
   user_admin="admin-secret"
   user_alice="alice-secret";
};

About

Kafka authentication via SASL/PLAIN with reloadable JAAS login configuration file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published