Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The mechanism authorization does not work when using kafka #205

Open
racgase-dev opened this issue Sep 9, 2024 · 0 comments
Open

The mechanism authorization does not work when using kafka #205

racgase-dev opened this issue Sep 9, 2024 · 0 comments

Comments

@racgase-dev
Copy link

racgase-dev commented Sep 9, 2024

https://github.com/resmoio/kubernetes-event-exporter/blob/907ce911f7ea8b347aa1a469aaac9c5b56e78dec/pkg/sinks/kafka.go#L39C47-L39C52
when choosing any authorization mechanism

      sasl:
        enable: true
        username: "user"
        password: "Pass"
        mechanism: "sha256" # or sha512

the default mechanism plain is always used

if you change the line
Mechanism string yaml:"mechanism" default:"plain"
to
Mechanism string yaml:"mechanism" default:"sha256"
authorization with the sha256 mechanism is successful

@racgase-dev racgase-dev changed the title The mechanism does not work when using kafka The mechanism authorization does not work when using kafka Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant