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

Add kafka acl option to user create #1508

Merged

Conversation

bhardwajRahul
Copy link
Member

@bhardwajRahul bhardwajRahul commented Feb 26, 2024

This PR aims at adding kafka ACL option to user create command under databases in doctl.
i.e.

Creates a new user for a database. New users are given a role of normal and are given an automatically-generated password.

Flag:
--acl topic:permission A comma-separated list of kafka ACL rules, in topic:permission format.

Usage:
doctl databases user create <database-cluster-id> <user-name> --acl <topic>:<permission>,<topic>:<permission>

Examples:
The following example creates a new user with the username example-user for a database cluster with the ID ca9f591d-f38h-5555-a0ef-1c02d1d1e35:

doctl databases user create ca9f591d-f38h-5555-a0ef-1c02d1d1e35 example-user --acl new_topic:consume,test:admin

Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM!

@andrewsomething andrewsomething merged commit 4a1686e into digitalocean:main Feb 27, 2024
7 checks passed
@bhardwajRahul bhardwajRahul deleted the rbhardwaj/DBAAS-4313 branch February 27, 2024 15:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants