Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: deprecate user role in api and frontend (#10485)
boojackd11fdce2a893
diff --git a/backend/api/v1/auth_service.go b/backend/api/v1/auth_service.goindex 9533d82315..6f7a392967 100644--- a/backend/api/v1/auth_service.go+++ b/backend/api/v1/auth_service.go@@ -189,25 +189,25 @@ func (s *AuthService) CreateUser(ctx context.Context, request *v1pb.CreateUserReType: principalType,PasswordHash: string(passwordHash),}- if request.User.UserRole != v1pb.UserRole_USER_ROLE_UNSPECIFIED {- rolePtr := ctx.Value(common.RoleContextKey)- // Allow workspace owner to create user with role.- if rolePtr != nil && rolePtr.(api.Role) == api.WorkspaceAdmin {- userRole := convertUserRole(request.User.UserRole)- if userRole == api.UnknownRole {- return nil, status.Errorf(codes.InvalidArgument, "invalid user role %s", request.User.UserRole)- }- userMessage.Role = userRole- userMessage.Roles = append(userMessage.Roles, userRole)- for _, r := range request.User.GetRoles() {- role, err := common.GetRoleID(r)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid role %s", r)- }- userMessage.Roles = append(userMessage.Roles, api.Role(role))- }- } else {- return nil, status.Errorf(codes.PermissionDenied, "only workspace owner can create user with role")+ for _, role := range request.User.Roles {+ roleID, err := common.GetRoleID(role)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }+ userMessage.Roles = append(userMessage.Roles, api.Role(roleID))+ }+ // If no role is specified, we default to workspace member.+ if len(userMessage.Roles) == 0 {+ userMessage.Roles = append(userMessage.Roles, api.WorkspaceMember)+ }+ // If multiple roles are specified, checks if the current user is workspace admin.+ if len(userMessage.Roles) > 1 {+ user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)+ if !ok {+ return nil, status.Error(codes.PermissionDenied, "user not found in context")+ }+ if !slices.Contains(user.Roles, api.WorkspaceAdmin) {+ return nil, status.Errorf(codes.PermissionDenied, "only workspace owner can create user with multiple roles")}}@@ -537,15 +537,6 @@ func (s *AuthService) UndeleteUser(ctx context.Context, request *v1pb.UndeleteUs}func convertToUser(user *store.UserMessage) *v1pb.User {- role := v1pb.UserRole_USER_ROLE_UNSPECIFIED- switch user.Role {- case api.WorkspaceAdmin:- role = v1pb.UserRole_OWNER- case api.WorkspaceDBA:- role = v1pb.UserRole_DBA- case api.WorkspaceMember:- role = v1pb.UserRole_DEVELOPER- }userType := v1pb.UserType_USER_TYPE_UNSPECIFIEDswitch user.Type {case api.EndUser:@@ -563,7 +554,6 @@ func convertToUser(user *store.UserMessage) *v1pb.User {Phone: user.Phone,Title: user.Name,UserType: userType,- UserRole: role,}for _, r := range user.Roles {convertedUser.Roles = append(convertedUser.Roles, common.FormatRole(r.String()))@@ -591,18 +581,6 @@ func convertToPrincipalType(userType v1pb.UserType) (api.PrincipalType, error) {return t, nil}-func convertUserRole(userRole v1pb.UserRole) api.Role {- switch userRole {- case v1pb.UserRole_OWNER:- return api.WorkspaceAdmin- case v1pb.UserRole_DBA:- return api.WorkspaceDBA- case v1pb.UserRole_DEVELOPER:- return api.WorkspaceMember- }- return api.UnknownRole-}-// Login is the auth login method including SSO.func (s *AuthService) Login(ctx context.Context, request *v1pb.LoginRequest) (*v1pb.LoginResponse, error) {var loginUser *store.UserMessagediff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vueindex c95ae621a3..ff912a6438 100644--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue+++ b/frontend/src/components/User/Settings/CreateUserDrawer.vue@@ -213,11 +213,7 @@ const isCreating = computed(() => !props.user);const allowConfirm = computed(() => {if (isCreating.value) {- if (isDevelopmentIAM.value) {- return state.user.email && state.user.roles.length > 0;- } else {- return state.user.email;- }+ return state.user.email && state.user.roles.length > 0;} else {return getUpdateMaskFromUsers(props.user!, state.user).length > 0;}diff --git a/frontend/src/components/v2/Select/RoleRadioSelect.vue b/frontend/src/components/v2/Select/RoleRadioSelect.vuedeleted file mode 100644index ba468778c0..0000000000--- a/frontend/src/components/v2/Select/RoleRadioSelect.vue+++ /dev/null@@ -1,25 +0,0 @@-<template>- <NRadioGroup :value="role" @update:value="$emit('update:role', $event)">- <NRadio- v-for="item in [UserRole.OWNER, UserRole.DBA, UserRole.DEVELOPER]"- :key="item"- :value="item"- >- {{ roleNameV1(item) }}- </NRadio>- </NRadioGroup>-</template>--<script setup lang="ts">-import { NRadio, NRadioGroup } from "naive-ui";-import { UserRole } from "@/types/proto/v1/auth_service";-import { roleNameV1 } from "@/utils";--defineProps<{- role?: UserRole;-}>();--defineEmits<{- (event: "update:role", role: UserRole): void;-}>();-</script>diff --git a/frontend/src/components/v2/Select/WorkspaceRoleSelect.vue b/frontend/src/components/v2/Select/WorkspaceRoleSelect.vuedeleted file mode 100644index 58917f8b18..0000000000--- a/frontend/src/components/v2/Select/WorkspaceRoleSelect.vue+++ /dev/null@@ -1,40 +0,0 @@-<template>- <NSelect- :value="role"- :options="roleOptions"- :filterable="true"- :filter="filterByTitle"- :placeholder="$t('role.select-role')"- class="bb-workspace-role-select"- @update:value="$emit('update:role', $event)"- />-</template>--<script lang="ts" setup>-import { type SelectOption, NSelect } from "naive-ui";-import { computed } from "vue";-import { UserRole } from "@/types/proto/v1/auth_service";-import { roleNameV1 } from "@/utils";--defineProps<{- role?: UserRole;-}>();--defineEmits<{- (event: "update:role", role: UserRole): void;-}>();--const roleOptions = computed(() => {- const roleList = [UserRole.OWNER, UserRole.DBA, UserRole.DEVELOPER];- return roleList.map<SelectOption>((role) => ({- label: roleNameV1(role),- value: role,- }));-});--const filterByTitle = (pattern: string, option: SelectOption) => {- const { value } = option as SelectOption;- pattern = pattern.toLowerCase();- return String(value).toLowerCase().includes(pattern);-};-</script>diff --git a/frontend/src/components/v2/Select/index.ts b/frontend/src/components/v2/Select/index.tsindex 1d4ed2bd04..21d3647ef5 100644--- a/frontend/src/components/v2/Select/index.ts+++ b/frontend/src/components/v2/Select/index.ts@@ -4,9 +4,7 @@ import EnvironmentSelect from "./EnvironmentSelect.vue";import InstanceSelect from "./InstanceSelect.vue";import ProjectRoleSelect from "./ProjectRoleSelect.vue";import ProjectSelect from "./ProjectSelect.vue";-import RoleRadioSelect from "./RoleRadioSelect.vue";import UserSelect from "./UserSelect.vue";-import WorkspaceRoleSelect from "./WorkspaceRoleSelect.vue";export {AnnouncementLevelSelect,@@ -14,8 +12,6 @@ export {DatabaseSelect,EnvironmentSelect,ProjectSelect,- WorkspaceRoleSelect,ProjectRoleSelect,- RoleRadioSelect,UserSelect,};diff --git a/frontend/src/types/proto/v1/auth_service.ts b/frontend/src/types/proto/v1/auth_service.tsindex 87164821a7..59e2afe3bd 100644--- a/frontend/src/types/proto/v1/auth_service.ts+++ b/frontend/src/types/proto/v1/auth_service.ts@@ -52,51 +52,6 @@ export function userTypeToJSON(object: UserType): string {}}-export enum UserRole {- USER_ROLE_UNSPECIFIED = 0,- OWNER = 1,- DBA = 2,- DEVELOPER = 3,- UNRECOGNIZED = -1,-}--export function userRoleFromJSON(object: any): UserRole {- switch (object) {- case 0:- case "USER_ROLE_UNSPECIFIED":- return UserRole.USER_ROLE_UNSPECIFIED;- case 1:- case "OWNER":- return UserRole.OWNER;- case 2:- case "DBA":- return UserRole.DBA;- case 3:- case "DEVELOPER":- return UserRole.DEVELOPER;- case -1:- case "UNRECOGNIZED":- default:- return UserRole.UNRECOGNIZED;- }-}--export function userRoleToJSON(object: UserRole): string {- switch (object) {- case UserRole.USER_ROLE_UNSPECIFIED:- return "USER_ROLE_UNSPECIFIED";- case UserRole.OWNER:- return "OWNER";- case UserRole.DBA:- return "DBA";- case UserRole.DEVELOPER:- return "DEVELOPER";- case UserRole.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}-export interface GetUserRequest {/*** The name of the user to retrieve.@@ -239,11 +194,6 @@ export interface User {email: string;title: string;userType: UserType;- /**- * The user role will not be respected in the create user request, because the role is controlled by workspace owner.- * TODO(p0ny): deprecate in favor of `roles`.- */- userRole: UserRole;password: string;serviceKey: string;/** The mfa_enabled flag means if the user has enabled MFA. */@@ -1263,7 +1213,6 @@ function createBaseUser(): User {email: "",title: "",userType: 0,- userRole: 0,password: "",serviceKey: "",mfaEnabled: false,@@ -1291,9 +1240,6 @@ export const User = {if (message.userType !== 0) {writer.uint32(40).int32(message.userType);}- if (message.userRole !== 0) {- writer.uint32(48).int32(message.userRole);- }if (message.password !== "") {writer.uint32(58).string(message.password);}@@ -1360,13 +1306,6 @@ export const User = {message.userType = reader.int32() as any;continue;- case 6:- if (tag !== 48) {- break;- }-- message.userRole = reader.int32() as any;- continue;case 7:if (tag !== 58) {break;@@ -1432,7 +1371,6 @@ export const User = {email: isSet(object.email) ? globalThis.String(object.email) : "",title: isSet(object.title) ? globalThis.String(object.title) : "",userType: isSet(object.userType) ? userTypeFromJSON(object.userType) : 0,- userRole: isSet(object.userRole) ? userRoleFromJSON(object.userRole) : 0,password: isSet(object.password) ? globalThis.String(object.password) : "",serviceKey: isSet(object.serviceKey) ? globalThis.String(object.serviceKey) : "",mfaEnabled: isSet(object.mfaEnabled) ? globalThis.Boolean(object.mfaEnabled) : false,@@ -1462,9 +1400,6 @@ export const User = {if (message.userType !== 0) {obj.userType = userTypeToJSON(message.userType);}- if (message.userRole !== 0) {- obj.userRole = userRoleToJSON(message.userRole);- }if (message.password !== "") {obj.password = message.password;}@@ -1499,7 +1434,6 @@ export const User = {message.email = object.email ?? "";message.title = object.title ?? "";message.userType = object.userType ?? 0;- message.userRole = object.userRole ?? 0;message.password = object.password ?? "";message.serviceKey = object.serviceKey ?? "";message.mfaEnabled = object.mfaEnabled ?? false;diff --git a/frontend/src/types/v1/user.ts b/frontend/src/types/v1/user.tsindex b7d4fef3a9..60bd599b10 100644--- a/frontend/src/types/v1/user.ts+++ b/frontend/src/types/v1/user.ts@@ -1,6 +1,6 @@import { SYSTEM_BOT_ID } from "../common";import { EMPTY_ID, UNKNOWN_ID } from "../const";-import { User, UserRole, UserType } from "../proto/v1/auth_service";+import { User, UserType } from "../proto/v1/auth_service";import { State } from "../proto/v1/common";export const UNKNOWN_USER_NAME = `users/${UNKNOWN_ID}`;@@ -13,7 +13,6 @@ export const emptyUser = () => {email: "",title: "",userType: UserType.USER,- userRole: UserRole.DEVELOPER,});};diff --git a/frontend/src/utils/v1/role.ts b/frontend/src/utils/v1/role.tsindex 3552e700dd..e69de29bb2 100644--- a/frontend/src/utils/v1/role.ts+++ b/frontend/src/utils/v1/role.ts@@ -1,14 +0,0 @@-import { t } from "@/plugins/i18n";-import { UserRole, userRoleToJSON } from "@/types/proto/v1/auth_service";--export function roleNameV1(role: UserRole): string {- switch (role) {- case UserRole.OWNER:- return t("role.workspace-admin.self");- case UserRole.DBA:- return t("role.workspace-dba.self");- case UserRole.DEVELOPER:- return t("role.workspace-member.self");- }- return userRoleToJSON(role);-}diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 2943c7b935..8604730bd4 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -85,7 +85,6 @@- [UpdateUserRequest](#bytebase-v1-UpdateUserRequest)- [User](#bytebase-v1-User)- - [UserRole](#bytebase-v1-UserRole)- [UserType](#bytebase-v1-UserType)- [AuthService](#bytebase-v1-AuthService)@@ -1799,7 +1798,6 @@ The user's `name` field is used to identify the user to update. Format: user| email | [string](#string) | | || title | [string](#string) | | || user_type | [UserType](#bytebase-v1-UserType) | | |-| user_role | [UserRole](#bytebase-v1-UserRole) | | The user role will not be respected in the create user request, because the role is controlled by workspace owner. TODO(p0ny): deprecate in favor of `roles`. || password | [string](#string) | | || service_key | [string](#string) | | || mfa_enabled | [bool](#bool) | | The mfa_enabled flag means if the user has enabled MFA. |@@ -1815,20 +1813,6 @@ The user's `name` field is used to identify the user to update. Format: user-<a name="bytebase-v1-UserRole"></a>--### UserRole---| Name | Number | Description |-| ---- | ------ | ----------- |-| USER_ROLE_UNSPECIFIED | 0 | |-| OWNER | 1 | |-| DBA | 2 | |-| DEVELOPER | 3 | |---<a name="bytebase-v1-UserType"></a>### UserTypediff --git a/proto/generated-go/v1/auth_service.pb.go b/proto/generated-go/v1/auth_service.pb.goindex 2a6b054714..6f0fe7fa6b 100644--- a/proto/generated-go/v1/auth_service.pb.go+++ b/proto/generated-go/v1/auth_service.pb.go@@ -75,58 +75,6 @@ func (UserType) EnumDescriptor() ([]byte, []int) {return file_v1_auth_service_proto_rawDescGZIP(), []int{0}}-type UserRole int32--const (- UserRole_USER_ROLE_UNSPECIFIED UserRole = 0- UserRole_OWNER UserRole = 1- UserRole_DBA UserRole = 2- UserRole_DEVELOPER UserRole = 3-)--// Enum value maps for UserRole.-var (- UserRole_name = map[int32]string{- 0: "USER_ROLE_UNSPECIFIED",- 1: "OWNER",- 2: "DBA",- 3: "DEVELOPER",- }- UserRole_value = map[string]int32{- "USER_ROLE_UNSPECIFIED": 0,- "OWNER": 1,- "DBA": 2,- "DEVELOPER": 3,- }-)--func (x UserRole) Enum() *UserRole {- p := new(UserRole)- *p = x- return p-}--func (x UserRole) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (UserRole) Descriptor() protoreflect.EnumDescriptor {- return file_v1_auth_service_proto_enumTypes[1].Descriptor()-}--func (UserRole) Type() protoreflect.EnumType {- return &file_v1_auth_service_proto_enumTypes[1]-}--func (x UserRole) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use UserRole.Descriptor instead.-func (UserRole) EnumDescriptor() ([]byte, []int) {- return file_v1_auth_service_proto_rawDescGZIP(), []int{1}-}-type GetUserRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -917,14 +865,11 @@ type User struct {// The name of the user.// Format: users/{user}. {user} is a system-generated unique ID.- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- State State `protobuf:"varint,2,opt,name=state,proto3,enum=bytebase.v1.State" json:"state,omitempty"`- Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`- Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`- UserType UserType `protobuf:"varint,5,opt,name=user_type,json=userType,proto3,enum=bytebase.v1.UserType" json:"user_type,omitempty"`- // The user role will not be respected in the create user request, because the role is controlled by workspace owner.- // TODO(p0ny): deprecate in favor of `roles`.- UserRole UserRole `protobuf:"varint,6,opt,name=user_role,json=userRole,proto3,enum=bytebase.v1.UserRole" json:"user_role,omitempty"`+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ State State `protobuf:"varint,2,opt,name=state,proto3,enum=bytebase.v1.State" json:"state,omitempty"`+ Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`+ UserType UserType `protobuf:"varint,5,opt,name=user_type,json=userType,proto3,enum=bytebase.v1.UserType" json:"user_type,omitempty"`Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"`ServiceKey string `protobuf:"bytes,8,opt,name=service_key,json=serviceKey,proto3" json:"service_key,omitempty"`// The mfa_enabled flag means if the user has enabled MFA.@@ -1008,13 +953,6 @@ func (x *User) GetUserType() UserType {return UserType_USER_TYPE_UNSPECIFIED}-func (x *User) GetUserRole() UserRole {- if x != nil {- return x.UserRole- }- return UserRole_USER_ROLE_UNSPECIFIED-}-func (x *User) GetPassword() string {if x != nil {return x.Password@@ -1171,7 +1109,7 @@ var file_v1_auth_service_proto_rawDesc = []byte{0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x66, 0x61, 0x54, 0x65, 0x6d, 0x70,0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x6d, 0x66, 0x61,0x5f, 0x74, 0x65, 0x6d, 0x70, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x0f, 0x0a, 0x0d, 0x4c,- 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb7, 0x03, 0x0a,+ 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x89, 0x03, 0x0a,0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28,0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e,@@ -1182,87 +1120,80 @@ var file_v1_auth_service_proto_rawDesc = []byte{0x69, 0x74, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70,0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08,- 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72,- 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f,- 0x6c, 0x65, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x08,- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,- 0xe0, 0x41, 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x0a,- 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x08, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,- 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x66, 0x61, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,- 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6d, 0x66, 0x61, 0x45, 0x6e, 0x61,- 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x66, 0x61, 0x5f, 0x73, 0x65, 0x63, 0x72,- 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x66, 0x61, 0x53, 0x65, 0x63,- 0x72, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f,- 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63,- 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68,- 0x6f, 0x6e, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65,- 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52,- 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2a, 0x54, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x54, 0x79,- 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a,- 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x59, 0x53, 0x54, 0x45,- 0x4d, 0x5f, 0x42, 0x4f, 0x54, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x49,- 0x43, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x03, 0x2a, 0x48, 0x0a, 0x08,- 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52,- 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x07,- 0x0a, 0x03, 0x44, 0x42, 0x41, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x45, 0x56, 0x45, 0x4c,- 0x4f, 0x50, 0x45, 0x52, 0x10, 0x03, 0x32, 0xba, 0x06, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53,- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,- 0x72, 0x12, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65,- 0x72, 0x22, 0x21, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14,- 0x12, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72,- 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x66, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72,- 0x73, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,- 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x22, 0x1a, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x0b, 0x12, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x5f, 0x0a, 0x0a,- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55,- 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x1e, 0xda,- 0x41, 0x04, 0x75, 0x73, 0x65, 0x72, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x3a, 0x04, 0x75, 0x73,- 0x65, 0x72, 0x22, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x79, 0x0a,- 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x38,- 0xda, 0x41, 0x10, 0x75, 0x73, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,- 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32,- 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x67, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x21,- 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0x6b, 0x0a, 0x0c, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65,- 0x72, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,+ 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73,+ 0x77, 0x6f, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52,+ 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x0a, 0x0b, 0x73, 0x65, 0x72,+ 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,+ 0xe0, 0x41, 0x04, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x12,+ 0x1f, 0x0a, 0x0b, 0x6d, 0x66, 0x61, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x09,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6d, 0x66, 0x61, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,+ 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x66, 0x61, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x0a,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x66, 0x61, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,+ 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65,+ 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72,+ 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18,+ 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05,+ 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c,+ 0x65, 0x73, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x2a, 0x54, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72,+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x59, 0x53,+ 0x54, 0x45, 0x4d, 0x5f, 0x42, 0x4f, 0x54, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52,+ 0x56, 0x49, 0x43, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x03, 0x32, 0xba,+ 0x06, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c,+ 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x21, 0xda, 0x41, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,+ 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x66, 0x0a, 0x09,+ 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72,+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x75,+ 0x73, 0x65, 0x72, 0x73, 0x12, 0x5f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73,+ 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x1e, 0xda, 0x41, 0x04, 0x75, 0x73, 0x65, 0x72, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x11, 0x3a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x09, 0x2f, 0x76, 0x31, 0x2f,+ 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x79, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55,+ 0x73, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01,- 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65,- 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x59,- 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x61,- 0x75, 0x74, 0x68, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x58, 0x0a, 0x06, 0x4c, 0x6f, 0x67,- 0x6f, 0x75, 0x74, 0x12, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,- 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a,- 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6c, 0x6f, 0x67,- 0x6f, 0x75, 0x74, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,- 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x38, 0xda, 0x41, 0x10, 0x75, 0x73, 0x65, 0x72, 0x2c,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x1f, 0x3a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x75, 0x73,+ 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d,+ 0x12, 0x67, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x21, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x6b, 0x0a, 0x0c, 0x55, 0x6e, 0x64,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x26,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e,+ 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x59, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12,+ 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f,+ 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01,+ 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6c, 0x6f, 0x67, 0x69,+ 0x6e, 0x12, 0x58, 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x12, 0x1a, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,+ 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f,+ 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x42, 0x11, 0x5a, 0x0f, 0x67,+ 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -1277,61 +1208,59 @@ func file_v1_auth_service_proto_rawDescGZIP() []byte {return file_v1_auth_service_proto_rawDescData}-var file_v1_auth_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)+var file_v1_auth_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)var file_v1_auth_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)var file_v1_auth_service_proto_goTypes = []interface{}{(UserType)(0), // 0: bytebase.v1.UserType- (UserRole)(0), // 1: bytebase.v1.UserRole- (*GetUserRequest)(nil), // 2: bytebase.v1.GetUserRequest- (*ListUsersRequest)(nil), // 3: bytebase.v1.ListUsersRequest- (*ListUsersResponse)(nil), // 4: bytebase.v1.ListUsersResponse- (*CreateUserRequest)(nil), // 5: bytebase.v1.CreateUserRequest- (*UpdateUserRequest)(nil), // 6: bytebase.v1.UpdateUserRequest- (*DeleteUserRequest)(nil), // 7: bytebase.v1.DeleteUserRequest- (*UndeleteUserRequest)(nil), // 8: bytebase.v1.UndeleteUserRequest- (*LoginRequest)(nil), // 9: bytebase.v1.LoginRequest- (*IdentityProviderContext)(nil), // 10: bytebase.v1.IdentityProviderContext- (*OAuth2IdentityProviderContext)(nil), // 11: bytebase.v1.OAuth2IdentityProviderContext- (*OIDCIdentityProviderContext)(nil), // 12: bytebase.v1.OIDCIdentityProviderContext- (*LoginResponse)(nil), // 13: bytebase.v1.LoginResponse- (*LogoutRequest)(nil), // 14: bytebase.v1.LogoutRequest- (*User)(nil), // 15: bytebase.v1.User- (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask- (State)(0), // 17: bytebase.v1.State- (*emptypb.Empty)(nil), // 18: google.protobuf.Empty+ (*GetUserRequest)(nil), // 1: bytebase.v1.GetUserRequest+ (*ListUsersRequest)(nil), // 2: bytebase.v1.ListUsersRequest+ (*ListUsersResponse)(nil), // 3: bytebase.v1.ListUsersResponse+ (*CreateUserRequest)(nil), // 4: bytebase.v1.CreateUserRequest+ (*UpdateUserRequest)(nil), // 5: bytebase.v1.UpdateUserRequest+ (*DeleteUserRequest)(nil), // 6: bytebase.v1.DeleteUserRequest+ (*UndeleteUserRequest)(nil), // 7: bytebase.v1.UndeleteUserRequest+ (*LoginRequest)(nil), // 8: bytebase.v1.LoginRequest+ (*IdentityProviderContext)(nil), // 9: bytebase.v1.IdentityProviderContext+ (*OAuth2IdentityProviderContext)(nil), // 10: bytebase.v1.OAuth2IdentityProviderContext+ (*OIDCIdentityProviderContext)(nil), // 11: bytebase.v1.OIDCIdentityProviderContext+ (*LoginResponse)(nil), // 12: bytebase.v1.LoginResponse+ (*LogoutRequest)(nil), // 13: bytebase.v1.LogoutRequest+ (*User)(nil), // 14: bytebase.v1.User+ (*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask+ (State)(0), // 16: bytebase.v1.State+ (*emptypb.Empty)(nil), // 17: google.protobuf.Empty}var file_v1_auth_service_proto_depIdxs = []int32{- 15, // 0: bytebase.v1.ListUsersResponse.users:type_name -> bytebase.v1.User- 15, // 1: bytebase.v1.CreateUserRequest.user:type_name -> bytebase.v1.User- 15, // 2: bytebase.v1.UpdateUserRequest.user:type_name -> bytebase.v1.User- 16, // 3: bytebase.v1.UpdateUserRequest.update_mask:type_name -> google.protobuf.FieldMask- 10, // 4: bytebase.v1.LoginRequest.idp_context:type_name -> bytebase.v1.IdentityProviderContext- 11, // 5: bytebase.v1.IdentityProviderContext.oauth2_context:type_name -> bytebase.v1.OAuth2IdentityProviderContext- 12, // 6: bytebase.v1.IdentityProviderContext.oidc_context:type_name -> bytebase.v1.OIDCIdentityProviderContext- 17, // 7: bytebase.v1.User.state:type_name -> bytebase.v1.State+ 14, // 0: bytebase.v1.ListUsersResponse.users:type_name -> bytebase.v1.User+ 14, // 1: bytebase.v1.CreateUserRequest.user:type_name -> bytebase.v1.User+ 14, // 2: bytebase.v1.UpdateUserRequest.user:type_name -> bytebase.v1.User+ 15, // 3: bytebase.v1.UpdateUserRequest.update_mask:type_name -> google.protobuf.FieldMask+ 9, // 4: bytebase.v1.LoginRequest.idp_context:type_name -> bytebase.v1.IdentityProviderContext+ 10, // 5: bytebase.v1.IdentityProviderContext.oauth2_context:type_name -> bytebase.v1.OAuth2IdentityProviderContext+ 11, // 6: bytebase.v1.IdentityProviderContext.oidc_context:type_name -> bytebase.v1.OIDCIdentityProviderContext+ 16, // 7: bytebase.v1.User.state:type_name -> bytebase.v1.State0, // 8: bytebase.v1.User.user_type:type_name -> bytebase.v1.UserType- 1, // 9: bytebase.v1.User.user_role:type_name -> bytebase.v1.UserRole- 2, // 10: bytebase.v1.AuthService.GetUser:input_type -> bytebase.v1.GetUserRequest- 3, // 11: bytebase.v1.AuthService.ListUsers:input_type -> bytebase.v1.ListUsersRequest- 5, // 12: bytebase.v1.AuthService.CreateUser:input_type -> bytebase.v1.CreateUserRequest- 6, // 13: bytebase.v1.AuthService.UpdateUser:input_type -> bytebase.v1.UpdateUserRequest- 7, // 14: bytebase.v1.AuthService.DeleteUser:input_type -> bytebase.v1.DeleteUserRequest- 8, // 15: bytebase.v1.AuthService.UndeleteUser:input_type -> bytebase.v1.UndeleteUserRequest- 9, // 16: bytebase.v1.AuthService.Login:input_type -> bytebase.v1.LoginRequest- 14, // 17: bytebase.v1.AuthService.Logout:input_type -> bytebase.v1.LogoutRequest- 15, // 18: bytebase.v1.AuthService.GetUser:output_type -> bytebase.v1.User- 4, // 19: bytebase.v1.AuthService.ListUsers:output_type -> bytebase.v1.ListUsersResponse- 15, // 20: bytebase.v1.AuthService.CreateUser:output_type -> bytebase.v1.User- 15, // 21: bytebase.v1.AuthService.UpdateUser:output_type -> bytebase.v1.User- 18, // 22: bytebase.v1.AuthService.DeleteUser:output_type -> google.protobuf.Empty- 15, // 23: bytebase.v1.AuthService.UndeleteUser:output_type -> bytebase.v1.User- 13, // 24: bytebase.v1.AuthService.Login:output_type -> bytebase.v1.LoginResponse- 18, // 25: bytebase.v1.AuthService.Logout:output_type -> google.protobuf.Empty- 18, // [18:26] is the sub-list for method output_type- 10, // [10:18] is the sub-list for method input_type- 10, // [10:10] is the sub-list for extension type_name- 10, // [10:10] is the sub-list for extension extendee- 0, // [0:10] is the sub-list for field type_name+ 1, // 9: bytebase.v1.AuthService.GetUser:input_type -> bytebase.v1.GetUserRequest+ 2, // 10: bytebase.v1.AuthService.ListUsers:input_type -> bytebase.v1.ListUsersRequest+ 4, // 11: bytebase.v1.AuthService.CreateUser:input_type -> bytebase.v1.CreateUserRequest+ 5, // 12: bytebase.v1.AuthService.UpdateUser:input_type -> bytebase.v1.UpdateUserRequest+ 6, // 13: bytebase.v1.AuthService.DeleteUser:input_type -> bytebase.v1.DeleteUserRequest+ 7, // 14: bytebase.v1.AuthService.UndeleteUser:input_type -> bytebase.v1.UndeleteUserRequest+ 8, // 15: bytebase.v1.AuthService.Login:input_type -> bytebase.v1.LoginRequest+ 13, // 16: bytebase.v1.AuthService.Logout:input_type -> bytebase.v1.LogoutRequest+ 14, // 17: bytebase.v1.AuthService.GetUser:output_type -> bytebase.v1.User+ 3, // 18: bytebase.v1.AuthService.ListUsers:output_type -> bytebase.v1.ListUsersResponse+ 14, // 19: bytebase.v1.AuthService.CreateUser:output_type -> bytebase.v1.User+ 14, // 20: bytebase.v1.AuthService.UpdateUser:output_type -> bytebase.v1.User+ 17, // 21: bytebase.v1.AuthService.DeleteUser:output_type -> google.protobuf.Empty+ 14, // 22: bytebase.v1.AuthService.UndeleteUser:output_type -> bytebase.v1.User+ 12, // 23: bytebase.v1.AuthService.Login:output_type -> bytebase.v1.LoginResponse+ 17, // 24: bytebase.v1.AuthService.Logout:output_type -> google.protobuf.Empty+ 17, // [17:25] is the sub-list for method output_type+ 9, // [9:17] is the sub-list for method input_type+ 9, // [9:9] is the sub-list for extension type_name+ 9, // [9:9] is the sub-list for extension extendee+ 0, // [0:9] is the sub-list for field type_name}func init() { file_v1_auth_service_proto_init() }@@ -1522,7 +1451,7 @@ func file_v1_auth_service_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_auth_service_proto_rawDesc,- NumEnums: 2,+ NumEnums: 1,NumMessages: 14,NumExtensions: 0,NumServices: 1,diff --git a/proto/v1/auth_service.proto b/proto/v1/auth_service.protoindex 511d014153..6ddb8d661b 100644--- a/proto/v1/auth_service.proto+++ b/proto/v1/auth_service.proto@@ -183,6 +183,8 @@ message LoginResponse {message LogoutRequest {}message User {+ reserved 6;+// The name of the user.// Format: users/{user}. {user} is a system-generated unique ID.string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];@@ -195,10 +197,6 @@ message User {UserType user_type = 5;- // The user role will not be respected in the create user request, because the role is controlled by workspace owner.- // TODO(p0ny): deprecate in favor of `roles`.- UserRole user_role = 6;-string password = 7 [(google.api.field_behavior) = INPUT_ONLY];string service_key = 8 [(google.api.field_behavior) = INPUT_ONLY];@@ -227,10 +225,3 @@ enum UserType {SYSTEM_BOT = 2;SERVICE_ACCOUNT = 3;}--enum UserRole {- USER_ROLE_UNSPECIFIED = 0;- OWNER = 1;- DBA = 2;- DEVELOPER = 3;-}