apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.43k stars 2.51k forks source link

help request: kafka-logger的brokers.sasl_configmechanism. #8427

Closed lihanghang404 closed 1 year ago

lihanghang404 commented 1 year ago

Description

3.0.0版本源码中,kafka-logger的brokers.sasl_config.mechanism只支持PLAIN一种格式如图: image kafka服务端报错信息如下: img_v2_ac236e72-9b25-4305-8ff5-58abf703e24g 现在需要支持SCRAM-SHA-256或者SCRAM-SHA-512格式

Environment

tzssangglass commented 1 year ago

In the kafka plugin dependency lua-resty-kafka, SCRAM-SHA-256 is still in TODO state, ref: https://github.com/doujiang24/lua-resty-kafka/blob/master/lib/resty/kafka/sasl.lua#L4

You can contribute to lua-resty-kafka first to support SCRAM-SHA-256 if you need to.