-
Notifications
You must be signed in to change notification settings - Fork 60
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
partition related apis require corresponding permissions #213
Conversation
0a92295
to
8b8861f
Compare
proto/milvus.proto
Outdated
@@ -1127,6 +1162,11 @@ message GetFlushStateResponse { | |||
} | |||
|
|||
message GetFlushAllStateRequest { | |||
option (common.privilege_ext_obj) = { | |||
object_type: Collection | |||
object_privilege: PrivilegeFlush |
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.
There is a PrivilegeFlushAll
privilege, which is more suitable. If do this, object_type
will use Global
proto/milvus.proto
Outdated
option (common.privilege_ext_obj) = { | ||
object_type: Collection | ||
object_privilege: PrivilegeFlush | ||
object_name_indexs: 4 |
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.
should be object_name_index?
proto/milvus.proto
Outdated
option (common.privilege_ext_obj) = { | ||
object_type: Collection | ||
object_privilege: PrivilegeFlush | ||
object_name_indexs: -1 |
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.
should be object_name_index?
proto/milvus.proto
Outdated
option (common.privilege_ext_obj) = { | ||
object_type: Collection | ||
object_privilege: PrivilegeFlush | ||
object_name_indexs: 4 |
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.
should be object_name_index: 4
proto/milvus.proto
Outdated
option (common.privilege_ext_obj) = { | ||
object_type: Collection | ||
object_privilege: PrivilegeFlush | ||
object_name_indexs: -1 |
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.
should be object_name_index: -1
proto/milvus.proto
Outdated
@@ -1127,6 +1162,11 @@ message GetFlushStateResponse { | |||
} | |||
|
|||
message GetFlushAllStateRequest { | |||
option (common.privilege_ext_obj) = { |
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.
This time we won't expose FlushAll.
8b8861f
to
4e36970
Compare
1. LoadPartition & ReleaseParititon need the existed privileges: PrivilegeLoad & PrivilegeRelease 2. CreatePartition & DropPartition & HasPartition & ShowPartitions have their own privileges 3. GetFlushState need a new privilege: PrivilegeGetFlushState Signed-off-by: PowderLi <[email protected]>
4e36970
to
f08e90b
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: czs007, PowderLi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
issue #212