[Bug]: KafkaUser secret decoding improperly #9978
Closed
stefannmih
started this conversation in
General
Replies: 2 comments 1 reply
-
I think your encoded string contains a newline. Try to encode it with |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yeah, as suggested by @khartld, you have a new line there:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
I am trying to create a KafkaUser with scram-sha-512 authentication, using my own password. However, when the operator creates the KafkaUser secret based on my own password, referenced through a secret, it adds to the sasl.jaas.config, an extra new line at the end and I am not able to authenticate to the kafka brokers.
If I create a KafkaUser resource without specifying my own password, it creates it as it should and I am able to connect to the brokers using that user. The custom one does not work.
The
dummy-kafka-secret-user
is made from a custom password, and thekafka-user-scram
is made with the default passwordThis is the custom KafkaUser I'm using:
And this is the secret:
Looking for an answer, I've found this commit: #9912
However, I am not sure if that change is going to solve this issue or if there's anything else that I'm missing.
Steps to reproduce
No response
Expected behavior
No response
Strimzi version
0.40.0
Kubernetes version
1.25
Installation method
Helm Chart
Infrastructure
No response
Configuration files and logs
[2024-04-16 11:30:34,157] ERROR [AdminClient clientId=adminclient-1] Connection to node -1 failed authentication due to: Authentication failtion due to invalid credentials with SASL mechanism SCRAM-SHA-512 (org.apache.kafka.clients.NetworkClient)
[2024-04-16 11:30:34,158] WARN [AdminClient clientId=adminclient-1] Metadata update failed due to authentication error (org.apache.kafka.clients.admin.internals.AdminMetadataManager)
org.apache.kafka.common.errors.SaslAuthenticationException: Authentication failed during authentication due to invalid credentials with SASL mechanism SCRAM-SHA-512
Error while executing topic command : Authentication failed during authentication due to invalid credentials with SASL mechanism SCRAM-SHA-512
[2024-04-16 11:30:34,161] ERROR org.apache.kafka.common.errors.SaslAuthenticationException: Authentication failed during authentication due to invalid credentials with SASL mechanism SCRAM-SHA-512
(org.apache.kafka.tools.TopicCommand)
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions