Skip to content
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

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

PowderLi
Copy link
Contributor

issue #212

@mergify mergify bot added dco-passed DCO check passed. ci-passed labels Nov 29, 2023
@PowderLi PowderLi force-pushed the master-partition branch 2 times, most recently from 0a92295 to 8b8861f Compare December 5, 2023 05:31
@sre-ci-robot sre-ci-robot added size/L and removed size/M labels Dec 5, 2023
@mergify mergify bot added ci-passed and removed ci-passed labels Dec 5, 2023
@@ -1127,6 +1162,11 @@ message GetFlushStateResponse {
}

message GetFlushAllStateRequest {
option (common.privilege_ext_obj) = {
object_type: Collection
object_privilege: PrivilegeFlush
Copy link
Collaborator

@SimFG SimFG Dec 8, 2023

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

option (common.privilege_ext_obj) = {
object_type: Collection
object_privilege: PrivilegeFlush
object_name_indexs: 4
Copy link
Collaborator

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?

option (common.privilege_ext_obj) = {
object_type: Collection
object_privilege: PrivilegeFlush
object_name_indexs: -1
Copy link
Collaborator

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?

option (common.privilege_ext_obj) = {
object_type: Collection
object_privilege: PrivilegeFlush
object_name_indexs: 4
Copy link
Collaborator

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

option (common.privilege_ext_obj) = {
object_type: Collection
object_privilege: PrivilegeFlush
object_name_indexs: -1
Copy link
Collaborator

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

@@ -1127,6 +1162,11 @@ message GetFlushStateResponse {
}

message GetFlushAllStateRequest {
option (common.privilege_ext_obj) = {
Copy link
Collaborator

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.

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]>
@czs007
Copy link
Collaborator

czs007 commented Dec 8, 2023

/approve
/lgtm

@sre-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit 02cbad3 into milvus-io:master Dec 8, 2023
4 checks passed
@PowderLi PowderLi deleted the master-partition branch May 22, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants