Hi all,

I wanted to enable SCRAM-SHA-512 mechanism for a kafka cluster but I'm
having an issue on trying to setup the password for one of the existing
users. The problem is that the password contains a square bracket `[` and
it seems impossible to escape it for the kafka-configs.sh tool. What I'm
trying to run:
bin/kafka-configs.sh --zookeeper localhost:2181 --alter --add-config
'SCRAM-SHA-512=[password=pass[word]' --entity-type users --entity-name admin
This fails with:
requirement failed: Invalid entity config: all configs to be added must be
in the format "key=val".
I've looked at the code in
https://github.com/apache/kafka/blob/227a7322b77840e08924b9486e4bda2f3dfc1f1a/core/src/main/scala/kafka/admin/ConfigCommand.scala#L254
but I can't find a way around it. Any suggestion on how can I set this
value?

Thanks in advance,
Pedro

Reply via email to