Permission deny when the user has the necessary role and privilege #40015
Replies: 7 comments 50 replies
-
I have no idea, let me ask somebody to help. |
Beta Was this translation helpful? Give feedback.
-
Because milvus is distributed, during the entire authorization process, the rbac information will be persisted by rootcoord and then returned immediately, but this information is synchronized to other proxies. You can try it now, it should work properly |
Beta Was this translation helpful? Give feedback.
-
I checked the logs and found that there seems to be no authorization information in the cluster. |
Beta Was this translation helpful? Give feedback.
-
The zip file is empty. And what is this |
Beta Was this translation helpful? Give feedback.
-
from the log but here what we see is public {"level":"INFO","time":"2025/02/28 01:44:58.024 +00:00","caller":"proxy/privilege_interceptor.go:211","message":"permission deny","username":"jubing_owner","role_names":["public"],"object_type":"Global","object_privilege":"PrivilegeDescribeDatabase","db_name":"jubing","object_index":-1,"object_name":"*","object_indexs":0,"object_names":[],"roles":["public"]} |
Beta Was this translation helpful? Give feedback.
-
@jubingc Can you start a new milvus and try to reproduce this problem, and then back up etcd to us? |
Beta Was this translation helpful? Give feedback.
-
@jubingc |
Beta Was this translation helpful? Give feedback.
-
The logs of the proxy show the following error
However, the user
jubing_owner
has the following role returned fromMilvusClient.describe_user
methodThe role
jubing_owner
has the following privilege returned fromMilvusClient.describe_role
methodI assume the user and role already have the required privilege
SelectOwnership
to pass the authentication. Why does the "permission deny" log show that userjubing_owner
has only thepublic
role and does not have enough privilege as a result? How should I set the privileges correctly?Beta Was this translation helpful? Give feedback.
All reactions