Live Coding - Kafka Security SASL_PLAINTEXT | SASL handshake | Producer and Consumer App
ฝัง
- เผยแพร่เมื่อ 16 ก.ย. 2024
- step by step guide to secure your kafka server along with spring-kafka producer and consumer app
spring.kafka.producer.properties.sasl.jaas.config
spring.kafka.consumer.properties.sasl.jaas.config
security.inter.broker.protocol=SASL_PLAINTEXT
Failed authentication SASL handshake
#kafka #security #springboot
Hi All, kindly get the steps and code from git link : github.com/sptrivedigit1989/kafka_sasl_plain_ws
Hi Boss nice tutorial, excellent, just one question the .conf file you created and added to system path, but in realtime how we can do without adding in system path. By truststore.jks file? If yes please say how we can do?
@@Iam_Goutam sorry brother i was away , i will try to upload similar video. For production app we can use k8s and provide dynamic inputs using env variable
what if am having three node kafka cluster means ? what are the things i need to change ?
Hi All, I am implementing same thing using micronaut. Even I followed the exact same steps but still getting Unexpected Kafka request of type METADATA during SASL handshake error
My application.yml looks like this
kafka:
bootstrap:
servers: localhost:9092
producers:
default:
retries: 5
bootstrap:
servers: localhost:9092
properties:
security:
protocol: SASL_PLAINTEXT
sasl:
mechanism: PLAIN
jaas:
config: org.apache.kafka.common.security.plain.PlainLoginModule required \
username="admin" \
password="admin-secret";
@@AayushAgrawal-s5y I will check and revert back.
Apply group of Kafka brokers in your application, security configuration is at parent level so code should be fine
Hi All, I am implmenting same thing using Micronaut. Even I followed the exact same steps, still I am getting Unexpected Kafka request of type METADATA during SASL handshake error
My application.yaml for micronaut looks like this
kafka:
bootstrap:
servers: localhost:9092
producers:
default:
retries: 5
bootstrap:
servers: localhost:9092
properties:
security:
protocol: SASL_PLAINTEXT
sasl:
mechanism: PLAIN
jaas:
config: org.apache.kafka.common.security.plain.PlainLoginModule required \
username="admin" \
password="admin-secret";
Could not find a 'kafaclient entry in the Jaas Configuration, while setting ssl configuration in code level and configuration level, How to resolve this
Code level in ConsumerFactory map use sasl.jaas.config as a key and get value from properties
Sir Please make the videos of
SSL/TLS
SASL/SSL
Inkafka
Hi , I will try to upload in few days.
Thank you sir... I really appreciate your response.
@@sptrivedi1989 Yes please do it, i'm waiting!
@@newstn8581 now I will publish asap , thanks for the reminder 💝
please provide the github link for steps
Sure brother I will share asap and confirm 💝
@@sptrivedi1989and please do sasl_ssl one also
github.com/sptrivedigit1989/kafka_sasl_plain_ws