Roles And Privileges in 2.5.x version #40673
Replies: 3 comments 5 replies
-
from pymilvus import MilvusClient client.grant_privilege_v2( or just give collection read write priviledge group |
Beta Was this translation helpful? Give feedback.
-
btw, did you hit rbac issue before you upgrade? |
Beta Was this translation helpful? Give feedback.
-
Hi @xiaofan-luan , thank you for acknowledging. We created read only user in 2.4.x with search, Load, HasPartition privileges, post upgrade to 2.5.x it broke. And we are aiming to get this user back with same privileges in 2.5.x. Just small clarification, if we give CollectionReadWrite, user will get insert records as well into Collection which we don't want , It is just read only user. |
Beta Was this translation helpful? Give feedback.
-
Hi,
We created cluster with 2.4.x version , we had read only user with Load,search,HasParitiion privileges. Later we migrated cluster to 2.5.x and started receiving PERMISSION DENIED error when trying to load collection. We revoked all privileges created in 2.4.x and created back same in 2.5.x as below:
client.grantPrivilegeV2(GrantPrivilegeReqV2.builder().privilege("Search").
collectionName("").
dbName(db)
.roleName(role)
.build());
client.grantPrivilegeV2(GrantPrivilegeReqV2.builder().privilege("Load").
collectionName("").
dbName(db)
.roleName(role)
.build());
with above privileges granted to the role, still load API is giving PermissionDenied error,
R{exception=StatusRuntimeException: PERMISSION_DENIED: PrivilegeLoad: permission deny to
xx_roin the
xx_dbdatabase, status=-3, data=null}
Can you please verify if above API's correctly applied or any changes required ? We following https://milvus.io/docs/grant_privileges.md
Beta Was this translation helpful? Give feedback.
All reactions