Skip to content

[FEATURE REQUEST] support kafka set SASL Mechanism #141

Description

@John-Funcity

Why this feature?

aws msk 的SASL/SCRAM 身份验证 认证方式,需要设置SASL设置为SCRAM-SHA-512,可否在config增加该配置项?

Suggested Solution

在sarama.go中增加

       if conf.Username != "" || conf.Password != "" {
		kfk.Net.SASL.Enable = true
		kfk.Net.SASL.User = conf.Username
		kfk.Net.SASL.Password = conf.Password
                # 增加
                kfk.Net.SASL.Mechanism = conf.Mechanism
	}

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions