-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Bug]: [privilege_group] The "PrivilegeCompaction" is forbidden when login with the user added in the role granted with the privilege "Compaction" #38003
Comments
For the built-in privilege group "CollectionReadWrite": 1 "PrivilegeCompaction" and "PrivilegeRenameCollection" are forbidden, which should not
|
/assign @shaoting-huang |
@binbinlv: GitHub didn't allow me to assign the following users: shaoting-huang. Note that only milvus-io members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/unassign |
/assign |
Using the latest dev image: shaoting-huang-rbacv2fix-99f4f88-20241126
but compact is still be forbidden:
script: connections.connect(host="", user="root", password="Milvus")
client = MilvusClient(uri="http://:19530", user="root", password="Milvus")
client.create_collection("binbin_new", dimension=128)
role = Role("binbin")
role.create()
utility.list_roles(True)
utility.create_user(user="user1", password="Milvus")
role.add_user("user1")
utility.list_roles(True)
role.list_grants()
role.grant_v2(privilege="CollectionReadWrite", db_name="default", collection_name="binbin_new")
connections.disconnect('default')
connections.connect(host="10.101.182.121", user="user1", password="Milvus")
c = Collection("binbin_new")
c.compact() |
Using grant v1 interface, compact is forbidden too when the collection is granted "Compaction" privilege:
|
legacy issue not for grant v2. Milvus writes collection name into meta but Proxy check with collection id. The grant v1 is not working, neither.
|
/unassign |
/assign @weiliu1031 |
working on verification. |
Verified and fixed: results:
|
And do upgrade tests:
So close this issue. |
Is there an existing issue for this?
Environment
Current Behavior
The "PrivilegeRenameCollection" is forbidden when login with the user added in the role granted with the built-in privilege group "CollectionReadWrite"
Expected Behavior
The "PrivilegeRenameCollection" is not forbidden when login with the user added in the role granted with the built-in privilege group "CollectionReadWrite"
Steps To Reproduce
Reproduced script:
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: