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

feat: add MilvusInterceptor #269

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

feat: add MilvusInterceptor #269

wants to merge 20 commits into from

Conversation

brcarry
Copy link

@brcarry brcarry commented Jan 3, 2025

  • Add MilvusInterceptor
  • Save gRPC request headers in MilvusConnection
  • Support login using uri and token
  • Add ListIndexes, ListCollections, ListPartitions, Upsert, Get, ListUsers, DescribeUser, CreateUser, DropUser and UpdatePassword; rename GetCollectionStats, GetPartitionStats
  • Update milvus proto version to v2.5.0

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

The full list of commands accepted by this bot can be found 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
Copy link

Welcome @brcarry! It looks like this is your first PR to milvus-io/milvus-sdk-cpp 🎉

@yhmo
Copy link
Collaborator

yhmo commented Jan 15, 2025

I just submit a pr to fix the ci failure: #272
Rebase the source code and update your pr to avoid CI failure.

Copy link

mergify bot commented Jan 17, 2025

@brcarry Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco.

@mergify mergify bot added the needs-dco label Jan 17, 2025
@xiaofan-luan
Copy link
Contributor

any reason of adding this interceptor?

@brcarry
Copy link
Author

brcarry commented Jan 20, 2025

any reason of adding this interceptor?

For authentication and configuration.
For example, when you login using username and password, you need to add the corresponding authentication key-value pair to gRPC request header through an interceptor. Like pymilvus, an interceptor can also be used to add key-value pairs to gRPC request header for configuring database to use, log_level, client_request_id.

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
…ts, GetPartitionStats

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
- Add MilvusInterceptor
- Save gRPC request headers in MilvusConnection

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
…e and ListRoles

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
…ilege

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
…abase, AlterDatabaseProperties and DropDatabaseProperties

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
…AlterCollectionField

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
…s, AddPrivilegesToGroup, RemovePrivilegesFromGroup, GrantPrivilegeV2 and RevokePrivilegeV2

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
…eResourceGroup, ListResourceGroups and UpdateResourceGroup

Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
Signed-off-by: Ruichen Bao <ruichen.bao@zju.edu.cn>
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