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

How could I create a new scram user by sarama? #1803

Closed
abmybgx opened this issue Sep 18, 2020 · 2 comments · Fixed by #1917
Closed

How could I create a new scram user by sarama? #1803

abmybgx opened this issue Sep 18, 2020 · 2 comments · Fixed by #1917
Labels
stale Issues and pull requests without any recent activity

Comments

@abmybgx
Copy link

abmybgx commented Sep 18, 2020

Versions

Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.

Sarama Kafka Go
1.25.0 2.2.0 1.14.6
Configuration

What configuration values are you using for Sarama and Kafka?

SASL+SCRAM
Problem Description

I'd like to create new users, although I could create one by script like bin/kafka-configs.sh --zookeeper 10.53.7.44:32671/kafka --alter --add-config 'SCRAM-SHA-512=[password=xxxxx]' --entity-type users --entity-name xxxxx.

Could I create new users by sarama? I just didn't find the way.

@twmb
Copy link

twmb commented Sep 22, 2020

The script to create scram credentials runs directly against zookeeper; Kafka is uninvolved. Sarama is a Kafka-only client and doesn't talk to zookeeper, so unfortunately, you cannot use sarama to create a new scram user.

Kafka 2.7.0 will be introducing a new request type to create scram users through Kafka directly, so eventually, sarama may provide the interface you are looking for.

@ghost
Copy link

ghost commented Mar 16, 2021

Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur.
Please check if the master branch has already resolved the issue since it was raised. If you believe the issue is still valid and you would like input from the maintainers then please comment to ask for it to be reviewed.

@ghost ghost added the stale Issues and pull requests without any recent activity label Mar 16, 2021
@dnwe dnwe closed this as completed in #1917 May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues and pull requests without any recent activity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants