fgeller / kt

Kafka command line tool that likes JSON
MIT License
950 stars 100 forks source link

New Auth Mechanism SASL_SSL SCRAM-SHA-256 #144

Open vijeyanidhi opened 1 year ago

vijeyanidhi commented 1 year ago

Hi,

Is it possible to support a new auth mechanism

security.protocol=SASL_SSL sasl.mechanism=SCRAM-SHA-256 ssl.endpoint.identification.algorithm=

This uses, ssl.truststore.location= ssl.truststore.password= sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="" password="";

kripsy commented 8 months ago

+ actual for me

naude-r commented 5 months ago

PR #146 was added with support for SCRAM-SHA-256.

@vijeyanidhi can you please apply the PR and check if it works for you?

a sample auth.json file:


{
  "mode": "SASL",
  "sasl_plain_user": "<username",
  "sasl_plain_password": "<password>",
  "security_protocol": "SASL_SSL",
  "sasl_mechanism": "scram-sha256"
}