Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does PLAINTEXT keyword means in Kafka configuration?

Tags:

apache-kafka

In Apache Kafka Documentation they use keyword PLAINTEXT as a protocol in many default settings:

e.g. listeners=PLAINTEXT://broker1:9091,SSL://broker1:9092

Does it represent just a default non-SSL protocol and if so, why they use PLAINTEXT keyword for that?

like image 308
Ivan Aracki Avatar asked Jun 07 '18 09:06

Ivan Aracki


People also ask

What is Kafka configuration?

It dictates how the Kafka tool runs in the JAAS configuration. These are some security rules and regulations used while exchanging words with the servers. It indicates the size of the memory buffer which will hold the data to be sent to the producer.

What is SASL in Kafka?

PLAIN, or SASL/PLAIN, is a simple username/password authentication mechanism that is typically used with TLS for encryption to implement secure authentication. Apache Kafka® supports a default implementation for SASL/PLAIN, which can be extended for production use.

How does Kafka listener work?

The Kafka Listener is work on the publish and subscribe model. The Apache Kafka is nothing but a massaging protocol. The Kafka broker will receive the number of messages by the Kafka topics. We need to set the listener configuration correctly.

Which of the below component publish the messages to Kafka topic?

Producers are the publisher of messages to one or more Kafka topics. Producers send data to Kafka brokers.


1 Answers

The docs for listeners states:

Comma-separated list of URIs we will listen on and the listener names. If the listener name is not a security protocol, listener.security.protocol.map must also be set.

So PLAINTEXT in your example is the security protocol used on the listener. You can find the list of supported protocols and their respective meanings in the SecurityProtocol Javadocs.

PLAINTEXT means the listener will be without authentication and non-encrypted.

like image 128
Mickael Maison Avatar answered Sep 22 '22 11:09

Mickael Maison