-
Notifications
You must be signed in to change notification settings - Fork 20
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
dbaas: added commands for dbaas acl management #659
base: master
Are you sure you want to change the base?
Conversation
…h becuase the openapi does not support delete opensearch acl entry.
…ause the openapi does not support update for opensearch acl entry.
…in kafka `topic` is used.
…ame code block in each sub-command for acl management.
… code block in each sub-command for acl management.
…d of repeating the same code block in each sub-command for acl management.
…d of repeating the same code block in each sub-command for acl management.
…of repeating the same code block in each sub-command for acl management.
…ossZones` function.
Co-authored-by: Predrag Janosevic <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kafka has two types of ACLs: Topic and Schema Registry.
I only see Topic ones being handled, is the only one in scope of this change?
The naming suggests it's only one type, and might be confusing to add kafka-schema-registry-acl type later.
@simisoft-exo yes, the scope is only for the Topic. |
Description
Adding commands the DBaaS ACL management.
Checklist
(For exoscale contributors)
Testing
acl sub-command
dbaas acl -h sub-command
show DBaas service acl user
show helper sub-command
Kafka Tests
show user
Opensearch Tests
use-case-1: Show acl with wrong Db name
if the user entered db name that exists in different service other the one stated in the flag if it exists in the other db it will give info about the other db that contains the he service, e.g. below
se-test-2
is kafka service but in the command below opensearch was stated insteaduse-case-2: Show acl with missing required flag
list DBaas service acl user
list helper sub-command
Kafka Tests
list users
Opensearch Tests
list users
use-case-1: list acl users with service does not exists
use-case-2: list acl users with wrong db name
use-case-3: list acl users with missing
--type
flaguse-case-4: list acl users with missing
--name
flagdelete DBaas service acl user
delete helper sub-command
Kafka Tests
delete user
delete the user again
list the user to delete and one of them