Skip to content

feat: [3.0] add PrivilegeImportBinlog object privilege - #665

Open
bigsheeper wants to merge 1 commit into
milvus-io:3.0from
bigsheeper:cp-3.0-import-binlog
Open

feat: [3.0] add PrivilegeImportBinlog object privilege#665
bigsheeper wants to merge 1 commit into
milvus-io:3.0from
bigsheeper:cp-3.0-import-binlog

Conversation

@bigsheeper

Copy link
Copy Markdown
Contributor

pr: #643

Back-port of the enum added on master by #643, needed by the 3.0 back-port of milvus-io/milvus#51894.

What

Adds a cluster-level PrivilegeImportBinlog to ObjectPrivilege. Binlog import (backup=true) and L0 import read Milvus's own internal storage layout rather than a caller staging area, i.e. outside the target collection's namespace, so that capability is authorized separately from the collection-level Import privilege.

Enum value

94, matching master, rather than 91 — the next free number on this branch.

This branch's ObjectPrivilege currently stops at PrivilegeExportSnapshot = 90; master continues PrivilegeSkipRLS = 91, PrivilegeViewRLS = 92, PrivilegeManageRLS = 93, PrivilegeImportBinlog = 94. Taking 91 here would give the same privilege two different wire values across versions and would collide with PrivilegeSkipRLS if the RLS privileges are later back-ported. 91-93 are left as gaps reserved for them.

Generation

go-api/commonpb/common.pb.go regenerated with protoc 3.21.4 / protoc-gen-go 1.33.0, matching the header already in the file. The change is three semantic lines (enum constant, name map, value map) plus the raw descriptor bytes.

Binlog import (import option backup=true) and L0 import read Milvus's own
internal storage layout rather than a caller staging area, which is outside
the target collection's namespace. Add a cluster-level privilege so that
capability can be authorized separately from the collection-level Import
privilege.

Keeps the master enum value 94 rather than the next free number on this
branch (91), so the same privilege has one wire value across versions.
91-93 stay reserved for the RLS privileges that master already uses.

pr: milvus-io#643

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
@sre-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bigsheeper
To complete the pull request process, please assign czs007 after the PR has been reviewed.
You can assign the PR to them by writing /assign @czs007 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details 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

@mergify mergify Bot added dco-passed DCO check passed. ci-passed labels Aug 28, 2026
@mergify

mergify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants