diff --git a/go-api/commonpb/common.pb.go b/go-api/commonpb/common.pb.go index 29d42ad..015c1e4 100644 --- a/go-api/commonpb/common.pb.go +++ b/go-api/commonpb/common.pb.go @@ -1143,66 +1143,75 @@ func (ObjectType) EnumDescriptor() ([]byte, []int) { type ObjectPrivilege int32 const ( - ObjectPrivilege_PrivilegeAll ObjectPrivilege = 0 - ObjectPrivilege_PrivilegeCreateCollection ObjectPrivilege = 1 - ObjectPrivilege_PrivilegeDropCollection ObjectPrivilege = 2 - ObjectPrivilege_PrivilegeDescribeCollection ObjectPrivilege = 3 - ObjectPrivilege_PrivilegeShowCollections ObjectPrivilege = 4 - ObjectPrivilege_PrivilegeLoad ObjectPrivilege = 5 - ObjectPrivilege_PrivilegeRelease ObjectPrivilege = 6 - ObjectPrivilege_PrivilegeCompaction ObjectPrivilege = 7 - ObjectPrivilege_PrivilegeInsert ObjectPrivilege = 8 - ObjectPrivilege_PrivilegeDelete ObjectPrivilege = 9 - ObjectPrivilege_PrivilegeGetStatistics ObjectPrivilege = 10 - ObjectPrivilege_PrivilegeCreateIndex ObjectPrivilege = 11 - ObjectPrivilege_PrivilegeIndexDetail ObjectPrivilege = 12 - ObjectPrivilege_PrivilegeDropIndex ObjectPrivilege = 13 - ObjectPrivilege_PrivilegeSearch ObjectPrivilege = 14 - ObjectPrivilege_PrivilegeFlush ObjectPrivilege = 15 - ObjectPrivilege_PrivilegeQuery ObjectPrivilege = 16 - ObjectPrivilege_PrivilegeLoadBalance ObjectPrivilege = 17 - ObjectPrivilege_PrivilegeImport ObjectPrivilege = 18 - ObjectPrivilege_PrivilegeCreateOwnership ObjectPrivilege = 19 - ObjectPrivilege_PrivilegeUpdateUser ObjectPrivilege = 20 - ObjectPrivilege_PrivilegeDropOwnership ObjectPrivilege = 21 - ObjectPrivilege_PrivilegeSelectOwnership ObjectPrivilege = 22 - ObjectPrivilege_PrivilegeManageOwnership ObjectPrivilege = 23 - ObjectPrivilege_PrivilegeSelectUser ObjectPrivilege = 24 - ObjectPrivilege_PrivilegeUpsert ObjectPrivilege = 25 - ObjectPrivilege_PrivilegeCreateResourceGroup ObjectPrivilege = 26 - ObjectPrivilege_PrivilegeDropResourceGroup ObjectPrivilege = 27 - ObjectPrivilege_PrivilegeDescribeResourceGroup ObjectPrivilege = 28 - ObjectPrivilege_PrivilegeListResourceGroups ObjectPrivilege = 29 - ObjectPrivilege_PrivilegeTransferNode ObjectPrivilege = 30 - ObjectPrivilege_PrivilegeTransferReplica ObjectPrivilege = 31 - ObjectPrivilege_PrivilegeGetLoadingProgress ObjectPrivilege = 32 - ObjectPrivilege_PrivilegeGetLoadState ObjectPrivilege = 33 - ObjectPrivilege_PrivilegeRenameCollection ObjectPrivilege = 34 - ObjectPrivilege_PrivilegeCreateDatabase ObjectPrivilege = 35 - ObjectPrivilege_PrivilegeDropDatabase ObjectPrivilege = 36 - ObjectPrivilege_PrivilegeListDatabases ObjectPrivilege = 37 - ObjectPrivilege_PrivilegeFlushAll ObjectPrivilege = 38 - ObjectPrivilege_PrivilegeCreatePartition ObjectPrivilege = 39 - ObjectPrivilege_PrivilegeDropPartition ObjectPrivilege = 40 - ObjectPrivilege_PrivilegeShowPartitions ObjectPrivilege = 41 - ObjectPrivilege_PrivilegeHasPartition ObjectPrivilege = 42 - ObjectPrivilege_PrivilegeGetFlushState ObjectPrivilege = 43 - ObjectPrivilege_PrivilegeCreateAlias ObjectPrivilege = 44 - ObjectPrivilege_PrivilegeDropAlias ObjectPrivilege = 45 - ObjectPrivilege_PrivilegeDescribeAlias ObjectPrivilege = 46 - ObjectPrivilege_PrivilegeListAliases ObjectPrivilege = 47 - ObjectPrivilege_PrivilegeUpdateResourceGroups ObjectPrivilege = 48 - ObjectPrivilege_PrivilegeAlterDatabase ObjectPrivilege = 49 - ObjectPrivilege_PrivilegeDescribeDatabase ObjectPrivilege = 50 - ObjectPrivilege_PrivilegeBackupRBAC ObjectPrivilege = 51 - ObjectPrivilege_PrivilegeRestoreRBAC ObjectPrivilege = 52 - ObjectPrivilege_PrivilegeGroupReadOnly ObjectPrivilege = 53 - ObjectPrivilege_PrivilegeGroupReadWrite ObjectPrivilege = 54 - ObjectPrivilege_PrivilegeGroupAdmin ObjectPrivilege = 55 - ObjectPrivilege_PrivilegeCreatePrivilegeGroup ObjectPrivilege = 56 - ObjectPrivilege_PrivilegeDropPrivilegeGroup ObjectPrivilege = 57 - ObjectPrivilege_PrivilegeListPrivilegeGroups ObjectPrivilege = 58 - ObjectPrivilege_PrivilegeOperatePrivilegeGroup ObjectPrivilege = 59 + ObjectPrivilege_PrivilegeAll ObjectPrivilege = 0 + ObjectPrivilege_PrivilegeCreateCollection ObjectPrivilege = 1 + ObjectPrivilege_PrivilegeDropCollection ObjectPrivilege = 2 + ObjectPrivilege_PrivilegeDescribeCollection ObjectPrivilege = 3 + ObjectPrivilege_PrivilegeShowCollections ObjectPrivilege = 4 + ObjectPrivilege_PrivilegeLoad ObjectPrivilege = 5 + ObjectPrivilege_PrivilegeRelease ObjectPrivilege = 6 + ObjectPrivilege_PrivilegeCompaction ObjectPrivilege = 7 + ObjectPrivilege_PrivilegeInsert ObjectPrivilege = 8 + ObjectPrivilege_PrivilegeDelete ObjectPrivilege = 9 + ObjectPrivilege_PrivilegeGetStatistics ObjectPrivilege = 10 + ObjectPrivilege_PrivilegeCreateIndex ObjectPrivilege = 11 + ObjectPrivilege_PrivilegeIndexDetail ObjectPrivilege = 12 + ObjectPrivilege_PrivilegeDropIndex ObjectPrivilege = 13 + ObjectPrivilege_PrivilegeSearch ObjectPrivilege = 14 + ObjectPrivilege_PrivilegeFlush ObjectPrivilege = 15 + ObjectPrivilege_PrivilegeQuery ObjectPrivilege = 16 + ObjectPrivilege_PrivilegeLoadBalance ObjectPrivilege = 17 + ObjectPrivilege_PrivilegeImport ObjectPrivilege = 18 + ObjectPrivilege_PrivilegeCreateOwnership ObjectPrivilege = 19 + ObjectPrivilege_PrivilegeUpdateUser ObjectPrivilege = 20 + ObjectPrivilege_PrivilegeDropOwnership ObjectPrivilege = 21 + ObjectPrivilege_PrivilegeSelectOwnership ObjectPrivilege = 22 + ObjectPrivilege_PrivilegeManageOwnership ObjectPrivilege = 23 + ObjectPrivilege_PrivilegeSelectUser ObjectPrivilege = 24 + ObjectPrivilege_PrivilegeUpsert ObjectPrivilege = 25 + ObjectPrivilege_PrivilegeCreateResourceGroup ObjectPrivilege = 26 + ObjectPrivilege_PrivilegeDropResourceGroup ObjectPrivilege = 27 + ObjectPrivilege_PrivilegeDescribeResourceGroup ObjectPrivilege = 28 + ObjectPrivilege_PrivilegeListResourceGroups ObjectPrivilege = 29 + ObjectPrivilege_PrivilegeTransferNode ObjectPrivilege = 30 + ObjectPrivilege_PrivilegeTransferReplica ObjectPrivilege = 31 + ObjectPrivilege_PrivilegeGetLoadingProgress ObjectPrivilege = 32 + ObjectPrivilege_PrivilegeGetLoadState ObjectPrivilege = 33 + ObjectPrivilege_PrivilegeRenameCollection ObjectPrivilege = 34 + ObjectPrivilege_PrivilegeCreateDatabase ObjectPrivilege = 35 + ObjectPrivilege_PrivilegeDropDatabase ObjectPrivilege = 36 + ObjectPrivilege_PrivilegeListDatabases ObjectPrivilege = 37 + ObjectPrivilege_PrivilegeFlushAll ObjectPrivilege = 38 + ObjectPrivilege_PrivilegeCreatePartition ObjectPrivilege = 39 + ObjectPrivilege_PrivilegeDropPartition ObjectPrivilege = 40 + ObjectPrivilege_PrivilegeShowPartitions ObjectPrivilege = 41 + ObjectPrivilege_PrivilegeHasPartition ObjectPrivilege = 42 + ObjectPrivilege_PrivilegeGetFlushState ObjectPrivilege = 43 + ObjectPrivilege_PrivilegeCreateAlias ObjectPrivilege = 44 + ObjectPrivilege_PrivilegeDropAlias ObjectPrivilege = 45 + ObjectPrivilege_PrivilegeDescribeAlias ObjectPrivilege = 46 + ObjectPrivilege_PrivilegeListAliases ObjectPrivilege = 47 + ObjectPrivilege_PrivilegeUpdateResourceGroups ObjectPrivilege = 48 + ObjectPrivilege_PrivilegeAlterDatabase ObjectPrivilege = 49 + ObjectPrivilege_PrivilegeDescribeDatabase ObjectPrivilege = 50 + ObjectPrivilege_PrivilegeBackupRBAC ObjectPrivilege = 51 + ObjectPrivilege_PrivilegeRestoreRBAC ObjectPrivilege = 52 + ObjectPrivilege_PrivilegeGroupReadOnly ObjectPrivilege = 53 + ObjectPrivilege_PrivilegeGroupReadWrite ObjectPrivilege = 54 + ObjectPrivilege_PrivilegeGroupAdmin ObjectPrivilege = 55 + ObjectPrivilege_PrivilegeCreatePrivilegeGroup ObjectPrivilege = 56 + ObjectPrivilege_PrivilegeDropPrivilegeGroup ObjectPrivilege = 57 + ObjectPrivilege_PrivilegeListPrivilegeGroups ObjectPrivilege = 58 + ObjectPrivilege_PrivilegeOperatePrivilegeGroup ObjectPrivilege = 59 + ObjectPrivilege_PrivilegeGroupClusterReadOnly ObjectPrivilege = 60 + ObjectPrivilege_PrivilegeGroupClusterReadWrite ObjectPrivilege = 61 + ObjectPrivilege_PrivilegeGroupClusterAdmin ObjectPrivilege = 62 + ObjectPrivilege_PrivilegeGroupDatabaseReadOnly ObjectPrivilege = 63 + ObjectPrivilege_PrivilegeGroupDatabaseReadWrite ObjectPrivilege = 64 + ObjectPrivilege_PrivilegeGroupDatabaseAdmin ObjectPrivilege = 65 + ObjectPrivilege_PrivilegeGroupCollectionReadOnly ObjectPrivilege = 66 + ObjectPrivilege_PrivilegeGroupCollectionReadWrite ObjectPrivilege = 67 + ObjectPrivilege_PrivilegeGroupCollectionAdmin ObjectPrivilege = 68 ) // Enum value maps for ObjectPrivilege. @@ -1268,68 +1277,86 @@ var ( 57: "PrivilegeDropPrivilegeGroup", 58: "PrivilegeListPrivilegeGroups", 59: "PrivilegeOperatePrivilegeGroup", + 60: "PrivilegeGroupClusterReadOnly", + 61: "PrivilegeGroupClusterReadWrite", + 62: "PrivilegeGroupClusterAdmin", + 63: "PrivilegeGroupDatabaseReadOnly", + 64: "PrivilegeGroupDatabaseReadWrite", + 65: "PrivilegeGroupDatabaseAdmin", + 66: "PrivilegeGroupCollectionReadOnly", + 67: "PrivilegeGroupCollectionReadWrite", + 68: "PrivilegeGroupCollectionAdmin", } ObjectPrivilege_value = map[string]int32{ - "PrivilegeAll": 0, - "PrivilegeCreateCollection": 1, - "PrivilegeDropCollection": 2, - "PrivilegeDescribeCollection": 3, - "PrivilegeShowCollections": 4, - "PrivilegeLoad": 5, - "PrivilegeRelease": 6, - "PrivilegeCompaction": 7, - "PrivilegeInsert": 8, - "PrivilegeDelete": 9, - "PrivilegeGetStatistics": 10, - "PrivilegeCreateIndex": 11, - "PrivilegeIndexDetail": 12, - "PrivilegeDropIndex": 13, - "PrivilegeSearch": 14, - "PrivilegeFlush": 15, - "PrivilegeQuery": 16, - "PrivilegeLoadBalance": 17, - "PrivilegeImport": 18, - "PrivilegeCreateOwnership": 19, - "PrivilegeUpdateUser": 20, - "PrivilegeDropOwnership": 21, - "PrivilegeSelectOwnership": 22, - "PrivilegeManageOwnership": 23, - "PrivilegeSelectUser": 24, - "PrivilegeUpsert": 25, - "PrivilegeCreateResourceGroup": 26, - "PrivilegeDropResourceGroup": 27, - "PrivilegeDescribeResourceGroup": 28, - "PrivilegeListResourceGroups": 29, - "PrivilegeTransferNode": 30, - "PrivilegeTransferReplica": 31, - "PrivilegeGetLoadingProgress": 32, - "PrivilegeGetLoadState": 33, - "PrivilegeRenameCollection": 34, - "PrivilegeCreateDatabase": 35, - "PrivilegeDropDatabase": 36, - "PrivilegeListDatabases": 37, - "PrivilegeFlushAll": 38, - "PrivilegeCreatePartition": 39, - "PrivilegeDropPartition": 40, - "PrivilegeShowPartitions": 41, - "PrivilegeHasPartition": 42, - "PrivilegeGetFlushState": 43, - "PrivilegeCreateAlias": 44, - "PrivilegeDropAlias": 45, - "PrivilegeDescribeAlias": 46, - "PrivilegeListAliases": 47, - "PrivilegeUpdateResourceGroups": 48, - "PrivilegeAlterDatabase": 49, - "PrivilegeDescribeDatabase": 50, - "PrivilegeBackupRBAC": 51, - "PrivilegeRestoreRBAC": 52, - "PrivilegeGroupReadOnly": 53, - "PrivilegeGroupReadWrite": 54, - "PrivilegeGroupAdmin": 55, - "PrivilegeCreatePrivilegeGroup": 56, - "PrivilegeDropPrivilegeGroup": 57, - "PrivilegeListPrivilegeGroups": 58, - "PrivilegeOperatePrivilegeGroup": 59, + "PrivilegeAll": 0, + "PrivilegeCreateCollection": 1, + "PrivilegeDropCollection": 2, + "PrivilegeDescribeCollection": 3, + "PrivilegeShowCollections": 4, + "PrivilegeLoad": 5, + "PrivilegeRelease": 6, + "PrivilegeCompaction": 7, + "PrivilegeInsert": 8, + "PrivilegeDelete": 9, + "PrivilegeGetStatistics": 10, + "PrivilegeCreateIndex": 11, + "PrivilegeIndexDetail": 12, + "PrivilegeDropIndex": 13, + "PrivilegeSearch": 14, + "PrivilegeFlush": 15, + "PrivilegeQuery": 16, + "PrivilegeLoadBalance": 17, + "PrivilegeImport": 18, + "PrivilegeCreateOwnership": 19, + "PrivilegeUpdateUser": 20, + "PrivilegeDropOwnership": 21, + "PrivilegeSelectOwnership": 22, + "PrivilegeManageOwnership": 23, + "PrivilegeSelectUser": 24, + "PrivilegeUpsert": 25, + "PrivilegeCreateResourceGroup": 26, + "PrivilegeDropResourceGroup": 27, + "PrivilegeDescribeResourceGroup": 28, + "PrivilegeListResourceGroups": 29, + "PrivilegeTransferNode": 30, + "PrivilegeTransferReplica": 31, + "PrivilegeGetLoadingProgress": 32, + "PrivilegeGetLoadState": 33, + "PrivilegeRenameCollection": 34, + "PrivilegeCreateDatabase": 35, + "PrivilegeDropDatabase": 36, + "PrivilegeListDatabases": 37, + "PrivilegeFlushAll": 38, + "PrivilegeCreatePartition": 39, + "PrivilegeDropPartition": 40, + "PrivilegeShowPartitions": 41, + "PrivilegeHasPartition": 42, + "PrivilegeGetFlushState": 43, + "PrivilegeCreateAlias": 44, + "PrivilegeDropAlias": 45, + "PrivilegeDescribeAlias": 46, + "PrivilegeListAliases": 47, + "PrivilegeUpdateResourceGroups": 48, + "PrivilegeAlterDatabase": 49, + "PrivilegeDescribeDatabase": 50, + "PrivilegeBackupRBAC": 51, + "PrivilegeRestoreRBAC": 52, + "PrivilegeGroupReadOnly": 53, + "PrivilegeGroupReadWrite": 54, + "PrivilegeGroupAdmin": 55, + "PrivilegeCreatePrivilegeGroup": 56, + "PrivilegeDropPrivilegeGroup": 57, + "PrivilegeListPrivilegeGroups": 58, + "PrivilegeOperatePrivilegeGroup": 59, + "PrivilegeGroupClusterReadOnly": 60, + "PrivilegeGroupClusterReadWrite": 61, + "PrivilegeGroupClusterAdmin": 62, + "PrivilegeGroupDatabaseReadOnly": 63, + "PrivilegeGroupDatabaseReadWrite": 64, + "PrivilegeGroupDatabaseAdmin": 65, + "PrivilegeGroupCollectionReadOnly": 66, + "PrivilegeGroupCollectionReadWrite": 67, + "PrivilegeGroupCollectionAdmin": 68, } ) @@ -2967,7 +2994,7 @@ var file_common_proto_rawDesc = []byte{ 0x07, 0x2a, 0x32, 0x0a, 0x0a, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x55, - 0x73, 0x65, 0x72, 0x10, 0x02, 0x2a, 0x84, 0x0d, 0x0a, 0x0f, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x65, 0x72, 0x10, 0x02, 0x2a, 0xc5, 0x0f, 0x0a, 0x0f, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x41, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, @@ -3071,33 +3098,53 @@ var file_common_proto_rawDesc = []byte{ 0x65, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x10, 0x3a, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x50, 0x72, 0x69, 0x76, - 0x69, 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x10, 0x3b, 0x2a, 0x53, 0x0a, 0x09, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x48, - 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x62, 0x6e, 0x6f, - 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x42, - 0x79, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x10, - 0x04, 0x2a, 0x63, 0x0a, 0x09, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, - 0x0a, 0x11, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x45, 0x78, - 0x69, 0x73, 0x74, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4c, - 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x10, - 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x6f, - 0x61, 0x64, 0x65, 0x64, 0x10, 0x03, 0x3a, 0x6f, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, - 0x65, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x5f, 0x6f, 0x62, 0x6a, 0x12, 0x1f, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe9, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, - 0x65, 0x67, 0x65, 0x45, 0x78, 0x74, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, - 0x65, 0x45, 0x78, 0x74, 0x4f, 0x62, 0x6a, 0x42, 0x6d, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x6d, 0x69, - 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, - 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2d, 0x61, - 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x70, 0x62, 0xa0, 0x01, - 0x01, 0xaa, 0x02, 0x12, 0x4d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x10, 0x3b, 0x12, 0x21, 0x0a, 0x1d, + 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x3c, 0x12, + 0x22, 0x0a, 0x1e, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x10, 0x3d, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x10, 0x3e, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x61, + 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x3f, 0x12, 0x23, 0x0a, 0x1f, 0x50, 0x72, 0x69, 0x76, 0x69, + 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x10, 0x40, 0x12, 0x1f, 0x0a, 0x1b, + 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x10, 0x41, 0x12, 0x24, 0x0a, + 0x20, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, + 0x79, 0x10, 0x42, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x10, 0x43, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x72, + 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x10, 0x44, 0x2a, 0x53, 0x0a, + 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, + 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x62, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x6e, 0x64, + 0x42, 0x79, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, + 0x10, 0x04, 0x2a, 0x63, 0x0a, 0x09, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x15, 0x0a, 0x11, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x45, + 0x78, 0x69, 0x73, 0x74, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, + 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, + 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, + 0x6f, 0x61, 0x64, 0x65, 0x64, 0x10, 0x03, 0x3a, 0x6f, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x76, 0x69, + 0x6c, 0x65, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x5f, 0x6f, 0x62, 0x6a, 0x12, 0x1f, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe9, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x69, + 0x6c, 0x65, 0x67, 0x65, 0x45, 0x78, 0x74, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, + 0x67, 0x65, 0x45, 0x78, 0x74, 0x4f, 0x62, 0x6a, 0x42, 0x6d, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x6d, + 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2d, 0x69, 0x6f, 0x2f, + 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2d, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x70, 0x62, 0xa0, + 0x01, 0x01, 0xaa, 0x02, 0x12, 0x4d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x43, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/common.proto b/proto/common.proto index 19aecc0..6a537db 100644 --- a/proto/common.proto +++ b/proto/common.proto @@ -433,6 +433,16 @@ enum ObjectPrivilege { PrivilegeDropPrivilegeGroup = 57; PrivilegeListPrivilegeGroups = 58; PrivilegeOperatePrivilegeGroup = 59; + + PrivilegeGroupClusterReadOnly = 60; + PrivilegeGroupClusterReadWrite = 61; + PrivilegeGroupClusterAdmin = 62; + PrivilegeGroupDatabaseReadOnly = 63; + PrivilegeGroupDatabaseReadWrite = 64; + PrivilegeGroupDatabaseAdmin = 65; + PrivilegeGroupCollectionReadOnly = 66; + PrivilegeGroupCollectionReadWrite = 67; + PrivilegeGroupCollectionAdmin = 68; } message PrivilegeExt {