Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
WIP: LDAP config UI (#7445)
Joe Chenc98a90f8bc0d
diff --git a/backend/api/v1/idp_service.go b/backend/api/v1/idp_service.goindex 8f81c1e4f5..f3f8c553e2 100644--- a/backend/api/v1/idp_service.go+++ b/backend/api/v1/idp_service.go@@ -12,6 +12,7 @@ import ("github.com/bytebase/bytebase/backend/common"enterpriseAPI "github.com/bytebase/bytebase/backend/enterprise/api"+ "github.com/bytebase/bytebase/backend/plugin/idp/ldap""github.com/bytebase/bytebase/backend/plugin/idp/oauth2""github.com/bytebase/bytebase/backend/plugin/idp/oidc""github.com/bytebase/bytebase/backend/store"@@ -139,6 +140,10 @@ func (s *IdentityProviderService) UpdateIdentityProvider(ctx context.Context, reif request.IdentityProvider.Config.GetOidcConfig().ClientSecret == "" {patch.Config.GetOidcConfig().ClientSecret = identityProvider.Config.GetOidcConfig().ClientSecret}+ } else if identityProvider.Type == storepb.IdentityProviderType_LDAP {+ if request.IdentityProvider.Config.GetLdapConfig().BindPassword == "" {+ patch.Config.GetLdapConfig().BindPassword = identityProvider.Config.GetLdapConfig().BindPassword+ }}}@@ -274,6 +279,41 @@ func (s *IdentityProviderService) TestIdentityProvider(ctx context.Context, requif _, err := oidcIdentityProvider.UserInfo(ctx, token, ""); err != nil {return nil, status.Errorf(codes.InvalidArgument, "failed to get user info, error: %s", err.Error())}+ } else if identityProvider.Type == v1pb.IdentityProviderType_LDAP {+ // Retrieve bind password from stored identity provider if not provided.+ if request.IdentityProvider.Config.GetLdapConfig().BindPassword == "" {+ storedIdentityProvider, err := s.getIdentityProviderMessage(ctx, request.IdentityProvider.Name)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to find identity provider, error: %s", err.Error())+ }+ if storedIdentityProvider == nil {+ return nil, status.Errorf(codes.Internal, "identity provider %s not found", request.IdentityProvider.Name)+ }+ request.IdentityProvider.Config.GetLdapConfig().BindPassword = storedIdentityProvider.Config.GetLdapConfig().BindPassword+ }+ identityProviderConfig := convertIdentityProviderConfigToStore(identityProvider.Config).GetLdapConfig()+ ldapIdentityProvider, err := ldap.NewIdentityProvider(+ ldap.IdentityProviderConfig{+ Host: identityProviderConfig.Host,+ Port: int(identityProviderConfig.Port),+ SkipTLSVerify: identityProviderConfig.SkipTlsVerify,+ BindDN: identityProviderConfig.BindDn,+ BindPassword: identityProviderConfig.BindPassword,+ BaseDN: identityProviderConfig.BaseDn,+ UserFilter: identityProviderConfig.UserFilter,+ SecurityProtocol: ldap.SecurityProtocol(identityProviderConfig.SecurityProtocol),+ FieldMapping: identityProviderConfig.FieldMapping,+ },+ )+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to create new LDAP identity provider: %v", err)+ }++ conn, err := ldapIdentityProvider.Connect()+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, "failed to test connection, error: %s", err.Error())+ }+ _ = conn.Close()} else {return nil, status.Errorf(codes.InvalidArgument, "identity provider type %s not supported", identityProvider.Type.String())}@@ -356,6 +396,28 @@ func convertIdentityProviderConfigFromStore(identityProviderConfig *storepb.Iden},},}+ } else if v := identityProviderConfig.GetLdapConfig(); v != nil {+ fieldMapping := v1pb.FieldMapping{+ Identifier: v.FieldMapping.Identifier,+ DisplayName: v.FieldMapping.DisplayName,+ Email: v.FieldMapping.Email,+ Phone: v.FieldMapping.Phone,+ }+ return &v1pb.IdentityProviderConfig{+ Config: &v1pb.IdentityProviderConfig_LdapConfig{+ LdapConfig: &v1pb.LDAPIdentityProviderConfig{+ Host: v.Host,+ Port: v.Port,+ SkipTlsVerify: v.SkipTlsVerify,+ BindDn: v.BindDn,+ BindPassword: "", // SECURITY: We do not expose the bind password+ BaseDn: v.BaseDn,+ UserFilter: v.UserFilter,+ SecurityProtocol: v.SecurityProtocol,+ FieldMapping: &fieldMapping,+ },+ },+ }}return nil}@@ -402,6 +464,28 @@ func convertIdentityProviderConfigToStore(identityProviderConfig *v1pb.IdentityP},},}+ } else if v := identityProviderConfig.GetLdapConfig(); v != nil {+ fieldMapping := storepb.FieldMapping{+ Identifier: v.FieldMapping.Identifier,+ DisplayName: v.FieldMapping.DisplayName,+ Email: v.FieldMapping.Email,+ Phone: v.FieldMapping.Phone,+ }+ return &storepb.IdentityProviderConfig{+ Config: &storepb.IdentityProviderConfig_LdapConfig{+ LdapConfig: &storepb.LDAPIdentityProviderConfig{+ Host: v.Host,+ Port: v.Port,+ SkipTlsVerify: v.SkipTlsVerify,+ BindDn: v.BindDn,+ BindPassword: v.BindPassword,+ BaseDn: v.BaseDn,+ UserFilter: v.UserFilter,+ SecurityProtocol: v.SecurityProtocol,+ FieldMapping: &fieldMapping,+ },+ },+ }} else {return nil}@@ -417,6 +501,10 @@ func validIdentityProviderConfig(identityProviderType v1pb.IdentityProviderType,if identityProviderConfig.GetOidcConfig() == nil {return errors.Errorf("unexpected provider config value")}+ } else if identityProviderType == v1pb.IdentityProviderType_LDAP {+ if identityProviderConfig.GetLdapConfig() == nil {+ return errors.Errorf("unexpected provider config value")+ }} else {return errors.Errorf("unexpected provider type %s", identityProviderType)}diff --git a/backend/migrator/migration/dev/20230808000000##idp_type_ldap.sql b/backend/migrator/migration/dev/20230808000000##idp_type_ldap.sqlnew file mode 100644index 0000000000..cadc40615e--- /dev/null+++ b/backend/migrator/migration/dev/20230808000000##idp_type_ldap.sql@@ -0,0 +1,2 @@+ALTER TABLE idp DROP CONSTRAINT idp_type_check;+ALTER TABLE idp ADD CONSTRAINT idp_type_check CHECK (type IN ('OAUTH2', 'OIDC', 'LDAP'));diff --git a/backend/migrator/migration/dev/LATEST.sql b/backend/migrator/migration/dev/LATEST.sqlindex a1499768cb..af287628d3 100644--- a/backend/migrator/migration/dev/LATEST.sql+++ b/backend/migrator/migration/dev/LATEST.sql@@ -19,7 +19,7 @@ CREATE TABLE idp (resource_id TEXT NOT NULL,name TEXT NOT NULL,domain TEXT NOT NULL,- type TEXT NOT NULL CONSTRAINT idp_type_check CHECK (type IN ('OAUTH2', 'OIDC')),+ type TEXT NOT NULL CONSTRAINT idp_type_check CHECK (type IN ('OAUTH2', 'OIDC', 'LDAP')),-- config stores the corresponding configuration of the IdP, which may vary depending on the type of the IdP.config JSONB NOT NULL DEFAULT '{}');diff --git a/backend/plugin/idp/ldap/ldap.go b/backend/plugin/idp/ldap/ldap.goindex a8cf2ab8fc..c75ac0a277 100644--- a/backend/plugin/idp/ldap/ldap.go+++ b/backend/plugin/idp/ldap/ldap.go@@ -117,19 +117,29 @@ func (p *IdentityProvider) dial() (*ldap.Conn, error) {return conn, nil}-// Authenticate authenticates the user with the given username and password.-func (p *IdentityProvider) Authenticate(username, password string) (*storepb.IdentityProviderUserInfo, error) {+// Connect establishes a connection using the bind DN and bind password.+func (p *IdentityProvider) Connect() (*ldap.Conn, error) {conn, err := p.dial()if err != nil {return nil, err}- defer func() { _ = conn.Close() }()// Bind with a system accounterr = conn.Bind(p.config.BindDN, p.config.BindPassword)if err != nil {+ _ = conn.Close()return nil, errors.Errorf("bind: %v", err)}+ return conn, nil+}++// Authenticate authenticates the user with the given username and password.+func (p *IdentityProvider) Authenticate(username, password string) (*storepb.IdentityProviderUserInfo, error) {+ conn, err := p.Connect()+ if err != nil {+ return nil, errors.Errorf("connect: %v", err)+ }+ defer func() { _ = conn.Close() }()sr, err := conn.Search(ldap.NewSearchRequest(diff --git a/backend/store/idp.go b/backend/store/idp.goindex 1222c4463c..8a7556c64f 100644--- a/backend/store/idp.go+++ b/backend/store/idp.go@@ -32,6 +32,9 @@ func getConfigBytes(config *storepb.IdentityProviderConfig) ([]byte, error) {} else if v := config.GetOidcConfig(); v != nil {configBytes, err := protojson.Marshal(v)return configBytes, err+ } else if v := config.GetLdapConfig(); v != nil {+ configBytes, err := protojson.Marshal(v)+ return configBytes, err} else {return nil, errors.Errorf("unexpected provider type")}@@ -312,6 +315,8 @@ func convertIdentityProviderType(identityProviderType string) storepb.IdentityPrreturn storepb.IdentityProviderType_OAUTH2} else if identityProviderType == "OIDC" {return storepb.IdentityProviderType_OIDC+ } else if identityProviderType == "LDAP" {+ return storepb.IdentityProviderType_LDAP}return storepb.IdentityProviderType_IDENTITY_PROVIDER_TYPE_UNSPECIFIED}@@ -336,6 +341,15 @@ func convertIdentityProviderConfigString(identityProviderType storepb.IdentityPridentityProviderConfig.Config = &storepb.IdentityProviderConfig_OidcConfig{OidcConfig: &formattedConfig,}+ } else if identityProviderType == storepb.IdentityProviderType_LDAP {+ var formattedConfig storepb.LDAPIdentityProviderConfig+ decoder := protojson.UnmarshalOptions{DiscardUnknown: true}+ if err := decoder.Unmarshal([]byte(config), &formattedConfig); err != nil {+ return nil+ }+ identityProviderConfig.Config = &storepb.IdentityProviderConfig_LdapConfig{+ LdapConfig: &formattedConfig,+ }}return identityProviderConfig}diff --git a/frontend/src/components/IdentityProviderCreateForm.vue b/frontend/src/components/IdentityProviderCreateForm.vueindex 89f7b2be8b..bf6d1c00a0 100644--- a/frontend/src/components/IdentityProviderCreateForm.vue+++ b/frontend/src/components/IdentityProviderCreateForm.vue@@ -553,6 +553,208 @@</div></div>+ <!-- LDAP form group -->+ <div+ v-else-if="isDev() && state.type === IdentityProviderType.LDAP"+ class="w-full flex flex-col justify-start items-start space-y-3"+ >+ <div class="w-full flex flex-col justify-start items-start">+ <p class="text-lg font-medium mt-2">+ {{ $t("settings.sso.form.identity-provider-information") }}+ </p>+ <p class="textinfolabel">+ {{+ $t("settings.sso.form.identity-provider-information-description")+ }}+ </p>+ </div>+ <div class="w-full flex flex-col justify-start items-start">+ <p class="textlabel">+ Host+ <span class="text-red-600">*</span>+ </p>+ <input+ v-model="configForLDAP.host"+ :disabled="!allowEdit"+ type="text"+ class="textfield mt-1 w-full"+ placeholder="e.g. ldap.example.com"+ />+ </div>+ <div class="w-full flex flex-col justify-start items-start">+ <p class="textlabel">+ Port+ <span class="text-red-600">*</span>+ </p>+ <input+ v-model="configForLDAP.port"+ :disabled="!allowEdit"+ type="number"+ class="textfield mt-1 w-full"+ placeholder="e.g. 389 or 636"+ />+ </div>+ <div class="w-full flex flex-col justify-start items-start">+ <p class="textlabel">+ Bind DN+ <span class="text-red-600">*</span>+ </p>+ <input+ v-model="configForLDAP.bindDn"+ :disabled="!allowEdit"+ type="text"+ class="textfield mt-1 w-full"+ placeholder="e.g. uid=system,ou=Users,dc=example,dc=com"+ />+ </div>+ <div class="w-full flex flex-col justify-start items-start">+ <p class="textlabel">+ Bind Password+ <span class="text-red-600">*</span>+ </p>+ <input+ v-model="configForLDAP.bindPassword"+ :disabled="!allowEdit"+ type="text"+ class="textfield mt-1 w-full"+ :placeholder="$t('common.sensitive-placeholder')"+ />+ </div>+ <div class="w-full flex flex-col justify-start items-start">+ <p class="textlabel">+ Base DN+ <span class="text-red-600">*</span>+ </p>+ <input+ v-model="configForLDAP.baseDn"+ :disabled="!allowEdit"+ type="text"+ class="textfield mt-1 w-full"+ placeholder="e.g. ou=users,dc=example,dc=com"+ />+ </div>+ <div class="w-full flex flex-col justify-start items-start">+ <p class="textlabel">+ User Filter+ <span class="text-red-600">*</span>+ </p>+ <input+ v-model="configForLDAP.userFilter"+ :disabled="!allowEdit"+ type="text"+ class="textfield mt-1 w-full"+ placeholder="e.g. (uid=%s)"+ />+ </div>+ <div class="w-full flex flex-col justify-start items-start">+ <p class="textlabel">+ {{ $t("settings.sso.form.security-protocol") }}+ <span class="text-red-600">*</span>+ </p>+ <p class="textinfolabel mt-1">+ <NRadioGroup v-model:value="configForLDAP.securityProtocol">+ <NRadio value="starttls" label="StartTLS" />+ <NRadio value="ldaps" label="LDAPS" />+ </NRadioGroup>+ </p>+ </div>+ <div class="w-full flex flex-col justify-start items-start">+ <p class="textlabel">+ {{ $t("settings.sso.form.connection-security") }}+ </p>+ <p class="textinfolabel mt-1">+ <BBCheckbox+ :title="$t('settings.sso.form.connection-security-skip-tls-verify')"+ :value="configForLDAP.skipTlsVerify"+ :disabled="!allowEdit"+ @toggle="+ () => (configForLDAP.skipTlsVerify = !configForLDAP.skipTlsVerify)+ "+ />+ </p>+ </div>++ <div class="w-full flex flex-col justify-start items-start">+ <p class="text-lg font-medium mt-2">+ {{ $t("settings.sso.form.user-information-mapping") }}+ </p>+ <p class="textinfolabel">+ {{ $t("settings.sso.form.user-information-mapping-description") }}+ <a+ href="https://www.bytebase.com/docs/administration/sso/ldap#configuration?source=console"+ class="normal-link text-sm inline-flex flex-row items-center"+ target="_blank"+ >+ {{ $t("common.learn-more") }}+ <heroicons-outline:external-link class="w-4 h-4" />+ </a>+ </p>+ </div>+ <p class="textinfolabel !mt-4">+ {{ $t("settings.sso.form.user-information-mapping") }}+ </p>+ <div class="w-full grid grid-cols-[256px_1fr]">+ <input+ v-model="configForLDAP.fieldMapping!.identifier"+ :disabled="!allowEdit"+ type="text"+ class="textfield mt-1 w-full"+ placeholder="e.g. mail"+ />+ <div class="w-full flex flex-row justify-start items-center text-sm">+ <heroicons-outline:arrow-right+ class="mx-1 h-auto w-4 text-gray-300"+ />+ <p class="flex flex-row justify-start items-center">+ {{ $t("settings.sso.form.identifier")+ }}<span class="text-red-600">*</span>+ <NTooltip>+ <template #trigger>+ <heroicons-outline:information-circle+ class="ml-1 w-4 h-auto text-blue-500"+ />+ </template>+ {{ $t("settings.sso.form.identifier-tips") }}+ </NTooltip>+ </p>+ </div>+ </div>+ <div class="w-full grid grid-cols-[256px_1fr]">+ <input+ v-model="configForLDAP.fieldMapping!.displayName"+ :disabled="!allowEdit"+ type="text"+ class="textfield mt-1 w-full"+ placeholder="e.g. displayName"+ />+ <div class="w-full flex flex-row justify-start items-center text-sm">+ <heroicons-outline:arrow-right+ class="mx-1 h-auto w-4 text-gray-300"+ />+ <p>+ {{ $t("settings.sso.form.display-name") }}+ </p>+ </div>+ </div>+ <div class="w-full grid grid-cols-[256px_1fr]">+ <input+ v-model="configForLDAP.fieldMapping!.phone"+ :disabled="!allowEdit"+ type="text"+ class="textfield mt-1 w-full"+ placeholder="e.g. phone"+ />+ <div class="w-full flex flex-row justify-start items-center text-sm">+ <heroicons-outline:arrow-right+ class="mx-1 h-auto w-4 text-gray-300"+ />+ <p>+ {{ $t("settings.sso.form.phone") }}+ </p>+ </div>+ </div>+ </div>+<!-- Button group --><divclass="mt-4 space-x-4 w-full flex flex-row justify-between items-center"@@ -640,6 +842,7 @@ import {OAuth2AuthStyle,OAuth2IdentityProviderConfig,OIDCIdentityProviderConfig,+ LDAPIdentityProviderConfig,} from "@/types/proto/v1/idp_service";import { useIdentityProviderStore } from "@/store/modules/idp";import { pushNotification, useActuatorV1Store } from "@/store";@@ -647,6 +850,7 @@ import {IdentityProviderTemplate,identityProviderTemplateList,identityProviderTypeToString,+ isDev,openWindowForSSO,} from "@/utils";import { OAuthWindowEventPayload, ResourceId, ValidatedMessage } from "@/types";@@ -689,6 +893,13 @@ const configForOIDC = ref<OIDCIdentityProviderConfig>(fieldMapping: FieldMapping.fromPartial({}),}));+const configForLDAP = ref<LDAPIdentityProviderConfig>(+ LDAPIdentityProviderConfig.fromPartial({+ port: 389,+ securityProtocol: "starttls",+ fieldMapping: FieldMapping.fromPartial({}),+ })+);const resourceIdField = ref<InstanceType<typeof ResourceIdField>>();const selectedTemplate = ref<IdentityProviderTemplate>();@@ -699,6 +910,13 @@ const currentIdentityProvider = computed(() => {});const identityProviderTypeList = computed(() => {+ if (isDev()) {+ return [+ IdentityProviderType.OAUTH2,+ IdentityProviderType.OIDC,+ IdentityProviderType.LDAP,+ ];+ }return [IdentityProviderType.OAUTH2, IdentityProviderType.OIDC];});@@ -735,6 +953,8 @@ const userDocLink = computed(() => {return "https://www.bytebase.com/docs/administration/sso/oauth2?source=console";} else if (state.type === IdentityProviderType.OIDC) {return "https://www.bytebase.com/docs/administration/sso/oidc?source=console";+ } else if (state.type === IdentityProviderType.LDAP) {+ return "https://www.bytebase.com/docs/administration/sso/ldap?source=console";}return "";});@@ -780,6 +1000,19 @@ const isFormCompleted = computed(() => {) {return false;}+ } else if (state.type === IdentityProviderType.LDAP) {+ if (+ !configForLDAP.value.host ||+ !configForLDAP.value.port ||+ !configForLDAP.value.bindDn ||+ !configForLDAP.value.baseDn ||+ !configForLDAP.value.userFilter ||+ !configForLDAP.value.securityProtocol ||+ !configForLDAP.value.fieldMapping?.identifier ||+ (isCreating.value && !configForLDAP.value.bindPassword)+ ) {+ return false;+ }} else {return false;}@@ -805,7 +1038,8 @@ const allowCreate = computed(() => {const allowTestConnection = computed(() => {if (state.type === IdentityProviderType.OAUTH2 ||- state.type === IdentityProviderType.OIDC+ state.type === IdentityProviderType.OIDC ||+ state.type === IdentityProviderType.LDAP) {if (isFormCompleted.value) {return true;@@ -827,6 +1061,8 @@ const editedIdentityProvider = computed(() => {};} else if (tempIdentityProvider.type === IdentityProviderType.OIDC) {tempIdentityProvider.config!.oidcConfig = configForOIDC.value;+ } else if (tempIdentityProvider.type === IdentityProviderType.LDAP) {+ tempIdentityProvider.config!.ldapConfig = configForLDAP.value;} else {throw new Error(`identity provider type ${state.type} is invalid`);}@@ -861,6 +1097,12 @@ onMounted(async () => {OIDCIdentityProviderConfig.fromPartial({fieldMapping: FieldMapping.fromPartial({}),});+ } else if (tempIdentityProvider.type === IdentityProviderType.LDAP) {+ configForLDAP.value =+ tempIdentityProvider.config?.ldapConfig ||+ LDAPIdentityProviderConfig.fromPartial({+ fieldMapping: FieldMapping.fromPartial({}),+ });}}});@@ -935,12 +1177,31 @@ const validateResourceId = async (return [];};-const testConnection = () => {+const testConnection = async () => {if (state.type === IdentityProviderType.OAUTH2 ||state.type === IdentityProviderType.OIDC) {openWindowForSSO(editedIdentityProvider.value);+ } else if (state.type === IdentityProviderType.LDAP) {+ try {+ await identityProviderClient.testIdentityProvider({+ identityProvider: editedIdentityProvider.value,+ });+ } catch (error) {+ pushNotification({+ module: "bytebase",+ style: "CRITICAL",+ title: `Request error occurred`,+ description: (error as ClientError).details,+ });+ return;+ }+ pushNotification({+ module: "bytebase",+ style: "SUCCESS",+ title: "Test connection succeed",+ });}};@@ -1013,6 +1274,12 @@ const updateEditState = (updatedIdentityProvider: IdentityProvider) => {OIDCIdentityProviderConfig.fromPartial({fieldMapping: FieldMapping.fromPartial({}),});+ } else if (tempIdentityProvider.type === IdentityProviderType.LDAP) {+ configForLDAP.value =+ tempIdentityProvider.config?.ldapConfig ||+ LDAPIdentityProviderConfig.fromPartial({+ fieldMapping: FieldMapping.fromPartial({}),+ });}};@@ -1034,6 +1301,8 @@ const handleCreateButtonClick = async () => {identityProviderCreate.config!.oauth2Config = configForOAuth2.value;} else if (state.type === IdentityProviderType.OIDC) {identityProviderCreate.config!.oidcConfig = configForOIDC.value;+ } else if (state.type === IdentityProviderType.LDAP) {+ identityProviderCreate.config!.ldapConfig = configForLDAP.value;} else {throw new Error(`identity provider type ${state.type} is invalid`);}@@ -1077,8 +1346,11 @@ watch(selectedTemplate.value as IdentityProviderTemplate);}- } else if (state.type === IdentityProviderType.OIDC) {- // NOTE: We do not yet have templates for OIDC providers so resetting+ } else if (+ state.type === IdentityProviderType.OIDC ||+ state.type === IdentityProviderType.LDAP+ ) {+ // NOTE: We do not yet have templates for OIDC nor LDAP providers so resetting// leftover values when we switch from other provider types to not confuse users.identityProvider.value.title = "";identityProvider.value.name = "";diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 93938cb336..623f05f82a 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -500,6 +500,7 @@"scopes-description": "A space-separated list of scopes to be carried when accessing the Auth URL","token-url-description": "The API address for obtaining accessToken","user-info-url-description": "The API address for obtaining user information by accessToken",+ "security-protocol": "Security protocol","connection-security": "Connection security","connection-security-skip-tls-verify": "Skip TLS verify for self-signed certificates","user-information-mapping": "User information mapping",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 35df51e412..a37a1f2cca 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -487,7 +487,7 @@"resource-id-description": "唯一的字符串,有效字符为 /[a-z][0-9]-/","domain": "域名","domain-description": "OAuth 提供商的域名",- "identity-provider-information": "OAuth 提供商信息",+ "identity-provider-information": "身份提供商信息","identity-provider-information-description": "这些信息是由您的身份提供商提供的。","identity-provider-needed-information": "用以下信息创建您的 SSO 应用程序。","endpoints": "链接信息",@@ -498,6 +498,7 @@"user-info-url-description": "用于通过 accessToken 获取用户信息的 API 地址","user-information-mapping": "用户信息映射","user-information-mapping-description": "字段映射保存了来自 API 用户信息的字段名。",+ "security-protocol": "安全协议","connection-security": "安全性选项","connection-security-skip-tls-verify": "跳过自签名证书验证","identifier": "Bytebase 用户的邮箱",diff --git a/frontend/src/types/proto/store/idp.ts b/frontend/src/types/proto/store/idp.tsindex b6da71b0d6..f3fb775e64 100644--- a/frontend/src/types/proto/store/idp.ts+++ b/frontend/src/types/proto/store/idp.ts@@ -7,6 +7,7 @@ export enum IdentityProviderType {IDENTITY_PROVIDER_TYPE_UNSPECIFIED = 0,OAUTH2 = 1,OIDC = 2,+ LDAP = 3,UNRECOGNIZED = -1,}@@ -21,6 +22,9 @@ export function identityProviderTypeFromJSON(object: any): IdentityProviderTypecase 2:case "OIDC":return IdentityProviderType.OIDC;+ case 3:+ case "LDAP":+ return IdentityProviderType.LDAP;case -1:case "UNRECOGNIZED":default:@@ -36,6 +40,8 @@ export function identityProviderTypeToJSON(object: IdentityProviderType): stringreturn "OAUTH2";case IdentityProviderType.OIDC:return "OIDC";+ case IdentityProviderType.LDAP:+ return "LDAP";case IdentityProviderType.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -92,6 +98,7 @@ export function oAuth2AuthStyleToJSON(object: OAuth2AuthStyle): string {export interface IdentityProviderConfig {oauth2Config?: OAuth2IdentityProviderConfig | undefined;oidcConfig?: OIDCIdentityProviderConfig | undefined;+ ldapConfig?: LDAPIdentityProviderConfig | undefined;}/** OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config. */@@ -117,6 +124,45 @@ export interface OIDCIdentityProviderConfig {authStyle: OAuth2AuthStyle;}+/** LDAPIdentityProviderConfig is the structure for LDAP identity provider config. */+export interface LDAPIdentityProviderConfig {+ /**+ * Host is the hostname or IP address of the LDAP server, e.g.+ * "ldap.example.com".+ */+ host: string;+ /**+ * Port is the port number of the LDAP server, e.g. 389. When not set, the+ * default port of the corresponding security protocol will be used, i.e. 389+ * for StartTLS and 636 for LDAPS.+ */+ port: number;+ /** SkipTLSVerify controls whether to skip TLS certificate verification. */+ skipTlsVerify: boolean;+ /**+ * BindDN is the DN of the user to bind as a service account to perform+ * search requests.+ */+ bindDn: string;+ /** BindPassword is the password of the user to bind as a service account. */+ bindPassword: string;+ /** BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". */+ baseDn: string;+ /** UserFilter is the filter to search for users, e.g. "(uid=%s)". */+ userFilter: string;+ /**+ * SecurityProtocol is the security protocol to be used for establishing+ * connections with the LDAP server. It should be either StartTLS or LDAPS, and+ * cannot be empty.+ */+ securityProtocol: string;+ /**+ * FieldMapping is the mapping of the user attributes returned by the LDAP+ * server.+ */+ fieldMapping?: FieldMapping | undefined;+}+/*** FieldMapping saves the field names from user info API of identity provider.* As we save all raw json string of user info response data into `principal.idp_user_info`,@@ -150,7 +196,7 @@ export interface IdentityProviderUserInfo {}function createBaseIdentityProviderConfig(): IdentityProviderConfig {- return { oauth2Config: undefined, oidcConfig: undefined };+ return { oauth2Config: undefined, oidcConfig: undefined, ldapConfig: undefined };}export const IdentityProviderConfig = {@@ -161,6 +207,9 @@ export const IdentityProviderConfig = {if (message.oidcConfig !== undefined) {OIDCIdentityProviderConfig.encode(message.oidcConfig, writer.uint32(18).fork()).ldelim();}+ if (message.ldapConfig !== undefined) {+ LDAPIdentityProviderConfig.encode(message.ldapConfig, writer.uint32(26).fork()).ldelim();+ }return writer;},@@ -185,6 +234,13 @@ export const IdentityProviderConfig = {message.oidcConfig = OIDCIdentityProviderConfig.decode(reader, reader.uint32());continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.ldapConfig = LDAPIdentityProviderConfig.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -198,6 +254,7 @@ export const IdentityProviderConfig = {return {oauth2Config: isSet(object.oauth2Config) ? OAuth2IdentityProviderConfig.fromJSON(object.oauth2Config) : undefined,oidcConfig: isSet(object.oidcConfig) ? OIDCIdentityProviderConfig.fromJSON(object.oidcConfig) : undefined,+ ldapConfig: isSet(object.ldapConfig) ? LDAPIdentityProviderConfig.fromJSON(object.ldapConfig) : undefined,};},@@ -207,6 +264,8 @@ export const IdentityProviderConfig = {(obj.oauth2Config = message.oauth2Config ? OAuth2IdentityProviderConfig.toJSON(message.oauth2Config) : undefined);message.oidcConfig !== undefined &&(obj.oidcConfig = message.oidcConfig ? OIDCIdentityProviderConfig.toJSON(message.oidcConfig) : undefined);+ message.ldapConfig !== undefined &&+ (obj.ldapConfig = message.ldapConfig ? LDAPIdentityProviderConfig.toJSON(message.ldapConfig) : undefined);return obj;},@@ -222,6 +281,9 @@ export const IdentityProviderConfig = {message.oidcConfig = (object.oidcConfig !== undefined && object.oidcConfig !== null)? OIDCIdentityProviderConfig.fromPartial(object.oidcConfig): undefined;+ message.ldapConfig = (object.ldapConfig !== undefined && object.ldapConfig !== null)+ ? LDAPIdentityProviderConfig.fromPartial(object.ldapConfig)+ : undefined;return message;},};@@ -531,6 +593,181 @@ export const OIDCIdentityProviderConfig = {},};+function createBaseLDAPIdentityProviderConfig(): LDAPIdentityProviderConfig {+ return {+ host: "",+ port: 0,+ skipTlsVerify: false,+ bindDn: "",+ bindPassword: "",+ baseDn: "",+ userFilter: "",+ securityProtocol: "",+ fieldMapping: undefined,+ };+}++export const LDAPIdentityProviderConfig = {+ encode(message: LDAPIdentityProviderConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.host !== "") {+ writer.uint32(10).string(message.host);+ }+ if (message.port !== 0) {+ writer.uint32(16).int32(message.port);+ }+ if (message.skipTlsVerify === true) {+ writer.uint32(24).bool(message.skipTlsVerify);+ }+ if (message.bindDn !== "") {+ writer.uint32(34).string(message.bindDn);+ }+ if (message.bindPassword !== "") {+ writer.uint32(42).string(message.bindPassword);+ }+ if (message.baseDn !== "") {+ writer.uint32(50).string(message.baseDn);+ }+ if (message.userFilter !== "") {+ writer.uint32(58).string(message.userFilter);+ }+ if (message.securityProtocol !== "") {+ writer.uint32(66).string(message.securityProtocol);+ }+ if (message.fieldMapping !== undefined) {+ FieldMapping.encode(message.fieldMapping, writer.uint32(74).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): LDAPIdentityProviderConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseLDAPIdentityProviderConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.host = reader.string();+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.port = reader.int32();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.skipTlsVerify = reader.bool();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.bindDn = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.bindPassword = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.baseDn = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.userFilter = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.securityProtocol = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.fieldMapping = FieldMapping.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): LDAPIdentityProviderConfig {+ return {+ host: isSet(object.host) ? String(object.host) : "",+ port: isSet(object.port) ? Number(object.port) : 0,+ skipTlsVerify: isSet(object.skipTlsVerify) ? Boolean(object.skipTlsVerify) : false,+ bindDn: isSet(object.bindDn) ? String(object.bindDn) : "",+ bindPassword: isSet(object.bindPassword) ? String(object.bindPassword) : "",+ baseDn: isSet(object.baseDn) ? String(object.baseDn) : "",+ userFilter: isSet(object.userFilter) ? String(object.userFilter) : "",+ securityProtocol: isSet(object.securityProtocol) ? String(object.securityProtocol) : "",+ fieldMapping: isSet(object.fieldMapping) ? FieldMapping.fromJSON(object.fieldMapping) : undefined,+ };+ },++ toJSON(message: LDAPIdentityProviderConfig): unknown {+ const obj: any = {};+ message.host !== undefined && (obj.host = message.host);+ message.port !== undefined && (obj.port = Math.round(message.port));+ message.skipTlsVerify !== undefined && (obj.skipTlsVerify = message.skipTlsVerify);+ message.bindDn !== undefined && (obj.bindDn = message.bindDn);+ message.bindPassword !== undefined && (obj.bindPassword = message.bindPassword);+ message.baseDn !== undefined && (obj.baseDn = message.baseDn);+ message.userFilter !== undefined && (obj.userFilter = message.userFilter);+ message.securityProtocol !== undefined && (obj.securityProtocol = message.securityProtocol);+ message.fieldMapping !== undefined &&+ (obj.fieldMapping = message.fieldMapping ? FieldMapping.toJSON(message.fieldMapping) : undefined);+ return obj;+ },++ create(base?: DeepPartial<LDAPIdentityProviderConfig>): LDAPIdentityProviderConfig {+ return LDAPIdentityProviderConfig.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<LDAPIdentityProviderConfig>): LDAPIdentityProviderConfig {+ const message = createBaseLDAPIdentityProviderConfig();+ message.host = object.host ?? "";+ message.port = object.port ?? 0;+ message.skipTlsVerify = object.skipTlsVerify ?? false;+ message.bindDn = object.bindDn ?? "";+ message.bindPassword = object.bindPassword ?? "";+ message.baseDn = object.baseDn ?? "";+ message.userFilter = object.userFilter ?? "";+ message.securityProtocol = object.securityProtocol ?? "";+ message.fieldMapping = (object.fieldMapping !== undefined && object.fieldMapping !== null)+ ? FieldMapping.fromPartial(object.fieldMapping)+ : undefined;+ return message;+ },+};+function createBaseFieldMapping(): FieldMapping {return { identifier: "", displayName: "", email: "", phone: "" };}diff --git a/frontend/src/types/proto/v1/idp_service.ts b/frontend/src/types/proto/v1/idp_service.tsindex ed409160c3..6de3936442 100644--- a/frontend/src/types/proto/v1/idp_service.ts+++ b/frontend/src/types/proto/v1/idp_service.ts@@ -11,6 +11,7 @@ export enum IdentityProviderType {IDENTITY_PROVIDER_TYPE_UNSPECIFIED = 0,OAUTH2 = 1,OIDC = 2,+ LDAP = 3,UNRECOGNIZED = -1,}@@ -25,6 +26,9 @@ export function identityProviderTypeFromJSON(object: any): IdentityProviderTypecase 2:case "OIDC":return IdentityProviderType.OIDC;+ case 3:+ case "LDAP":+ return IdentityProviderType.LDAP;case -1:case "UNRECOGNIZED":default:@@ -40,6 +44,8 @@ export function identityProviderTypeToJSON(object: IdentityProviderType): stringreturn "OAUTH2";case IdentityProviderType.OIDC:return "OIDC";+ case IdentityProviderType.LDAP:+ return "LDAP";case IdentityProviderType.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -204,6 +210,7 @@ export interface IdentityProvider {export interface IdentityProviderConfig {oauth2Config?: OAuth2IdentityProviderConfig | undefined;oidcConfig?: OIDCIdentityProviderConfig | undefined;+ ldapConfig?: LDAPIdentityProviderConfig | undefined;}/** OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config. */@@ -230,6 +237,45 @@ export interface OIDCIdentityProviderConfig {authStyle: OAuth2AuthStyle;}+/** LDAPIdentityProviderConfig is the structure for LDAP identity provider config. */+export interface LDAPIdentityProviderConfig {+ /**+ * Host is the hostname or IP address of the LDAP server, e.g.+ * "ldap.example.com".+ */+ host: string;+ /**+ * Port is the port number of the LDAP server, e.g. 389. When not set, the+ * default port of the corresponding security protocol will be used, i.e. 389+ * for StartTLS and 636 for LDAPS.+ */+ port: number;+ /** SkipTLSVerify controls whether to skip TLS certificate verification. */+ skipTlsVerify: boolean;+ /**+ * BindDN is the DN of the user to bind as a service account to perform+ * search requests.+ */+ bindDn: string;+ /** BindPassword is the password of the user to bind as a service account. */+ bindPassword: string;+ /** BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". */+ baseDn: string;+ /** UserFilter is the filter to search for users, e.g. "(uid=%s)". */+ userFilter: string;+ /**+ * SecurityProtocol is the security protocol to be used for establishing+ * connections with the LDAP server. It should be either StartTLS or LDAPS, and+ * cannot be empty.+ */+ securityProtocol: string;+ /**+ * FieldMapping is the mapping of the user attributes returned by the LDAP+ * server.+ */+ fieldMapping?: FieldMapping | undefined;+}+/*** FieldMapping saves the field names from user info API of identity provider.* As we save all raw json string of user info response data into `principal.idp_user_info`,@@ -1048,7 +1094,7 @@ export const IdentityProvider = {};function createBaseIdentityProviderConfig(): IdentityProviderConfig {- return { oauth2Config: undefined, oidcConfig: undefined };+ return { oauth2Config: undefined, oidcConfig: undefined, ldapConfig: undefined };}export const IdentityProviderConfig = {@@ -1059,6 +1105,9 @@ export const IdentityProviderConfig = {if (message.oidcConfig !== undefined) {OIDCIdentityProviderConfig.encode(message.oidcConfig, writer.uint32(18).fork()).ldelim();}+ if (message.ldapConfig !== undefined) {+ LDAPIdentityProviderConfig.encode(message.ldapConfig, writer.uint32(26).fork()).ldelim();+ }return writer;},@@ -1083,6 +1132,13 @@ export const IdentityProviderConfig = {message.oidcConfig = OIDCIdentityProviderConfig.decode(reader, reader.uint32());continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.ldapConfig = LDAPIdentityProviderConfig.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -1096,6 +1152,7 @@ export const IdentityProviderConfig = {return {oauth2Config: isSet(object.oauth2Config) ? OAuth2IdentityProviderConfig.fromJSON(object.oauth2Config) : undefined,oidcConfig: isSet(object.oidcConfig) ? OIDCIdentityProviderConfig.fromJSON(object.oidcConfig) : undefined,+ ldapConfig: isSet(object.ldapConfig) ? LDAPIdentityProviderConfig.fromJSON(object.ldapConfig) : undefined,};},@@ -1105,6 +1162,8 @@ export const IdentityProviderConfig = {(obj.oauth2Config = message.oauth2Config ? OAuth2IdentityProviderConfig.toJSON(message.oauth2Config) : undefined);message.oidcConfig !== undefined &&(obj.oidcConfig = message.oidcConfig ? OIDCIdentityProviderConfig.toJSON(message.oidcConfig) : undefined);+ message.ldapConfig !== undefined &&+ (obj.ldapConfig = message.ldapConfig ? LDAPIdentityProviderConfig.toJSON(message.ldapConfig) : undefined);return obj;},@@ -1120,6 +1179,9 @@ export const IdentityProviderConfig = {message.oidcConfig = (object.oidcConfig !== undefined && object.oidcConfig !== null)? OIDCIdentityProviderConfig.fromPartial(object.oidcConfig): undefined;+ message.ldapConfig = (object.ldapConfig !== undefined && object.ldapConfig !== null)+ ? LDAPIdentityProviderConfig.fromPartial(object.ldapConfig)+ : undefined;return message;},};@@ -1454,6 +1516,181 @@ export const OIDCIdentityProviderConfig = {},};+function createBaseLDAPIdentityProviderConfig(): LDAPIdentityProviderConfig {+ return {+ host: "",+ port: 0,+ skipTlsVerify: false,+ bindDn: "",+ bindPassword: "",+ baseDn: "",+ userFilter: "",+ securityProtocol: "",+ fieldMapping: undefined,+ };+}++export const LDAPIdentityProviderConfig = {+ encode(message: LDAPIdentityProviderConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.host !== "") {+ writer.uint32(10).string(message.host);+ }+ if (message.port !== 0) {+ writer.uint32(16).int32(message.port);+ }+ if (message.skipTlsVerify === true) {+ writer.uint32(24).bool(message.skipTlsVerify);+ }+ if (message.bindDn !== "") {+ writer.uint32(34).string(message.bindDn);+ }+ if (message.bindPassword !== "") {+ writer.uint32(42).string(message.bindPassword);+ }+ if (message.baseDn !== "") {+ writer.uint32(50).string(message.baseDn);+ }+ if (message.userFilter !== "") {+ writer.uint32(58).string(message.userFilter);+ }+ if (message.securityProtocol !== "") {+ writer.uint32(66).string(message.securityProtocol);+ }+ if (message.fieldMapping !== undefined) {+ FieldMapping.encode(message.fieldMapping, writer.uint32(74).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): LDAPIdentityProviderConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseLDAPIdentityProviderConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.host = reader.string();+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.port = reader.int32();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.skipTlsVerify = reader.bool();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.bindDn = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.bindPassword = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.baseDn = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.userFilter = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.securityProtocol = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.fieldMapping = FieldMapping.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): LDAPIdentityProviderConfig {+ return {+ host: isSet(object.host) ? String(object.host) : "",+ port: isSet(object.port) ? Number(object.port) : 0,+ skipTlsVerify: isSet(object.skipTlsVerify) ? Boolean(object.skipTlsVerify) : false,+ bindDn: isSet(object.bindDn) ? String(object.bindDn) : "",+ bindPassword: isSet(object.bindPassword) ? String(object.bindPassword) : "",+ baseDn: isSet(object.baseDn) ? String(object.baseDn) : "",+ userFilter: isSet(object.userFilter) ? String(object.userFilter) : "",+ securityProtocol: isSet(object.securityProtocol) ? String(object.securityProtocol) : "",+ fieldMapping: isSet(object.fieldMapping) ? FieldMapping.fromJSON(object.fieldMapping) : undefined,+ };+ },++ toJSON(message: LDAPIdentityProviderConfig): unknown {+ const obj: any = {};+ message.host !== undefined && (obj.host = message.host);+ message.port !== undefined && (obj.port = Math.round(message.port));+ message.skipTlsVerify !== undefined && (obj.skipTlsVerify = message.skipTlsVerify);+ message.bindDn !== undefined && (obj.bindDn = message.bindDn);+ message.bindPassword !== undefined && (obj.bindPassword = message.bindPassword);+ message.baseDn !== undefined && (obj.baseDn = message.baseDn);+ message.userFilter !== undefined && (obj.userFilter = message.userFilter);+ message.securityProtocol !== undefined && (obj.securityProtocol = message.securityProtocol);+ message.fieldMapping !== undefined &&+ (obj.fieldMapping = message.fieldMapping ? FieldMapping.toJSON(message.fieldMapping) : undefined);+ return obj;+ },++ create(base?: DeepPartial<LDAPIdentityProviderConfig>): LDAPIdentityProviderConfig {+ return LDAPIdentityProviderConfig.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<LDAPIdentityProviderConfig>): LDAPIdentityProviderConfig {+ const message = createBaseLDAPIdentityProviderConfig();+ message.host = object.host ?? "";+ message.port = object.port ?? 0;+ message.skipTlsVerify = object.skipTlsVerify ?? false;+ message.bindDn = object.bindDn ?? "";+ message.bindPassword = object.bindPassword ?? "";+ message.baseDn = object.baseDn ?? "";+ message.userFilter = object.userFilter ?? "";+ message.securityProtocol = object.securityProtocol ?? "";+ message.fieldMapping = (object.fieldMapping !== undefined && object.fieldMapping !== null)+ ? FieldMapping.fromPartial(object.fieldMapping)+ : undefined;+ return message;+ },+};+function createBaseFieldMapping(): FieldMapping {return { identifier: "", displayName: "", email: "", phone: "" };}diff --git a/frontend/src/utils/idp.ts b/frontend/src/utils/idp.tsindex 5fe3956dcd..6340738cc7 100644--- a/frontend/src/utils/idp.ts+++ b/frontend/src/utils/idp.ts@@ -11,6 +11,8 @@ export const identityProviderTypeToString = (return "OAuth 2.0";} else if (type === IdentityProviderType.OIDC) {return "OIDC";+ } else if (type == IdentityProviderType.LDAP) {+ return "LDAP";} else {throw new Error(`identity provider type ${type} not found`);}diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex a6830e2a0f..bd43de75fd 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -63,6 +63,7 @@- [FieldMapping](#bytebase-store-FieldMapping)- [IdentityProviderConfig](#bytebase-store-IdentityProviderConfig)- [IdentityProviderUserInfo](#bytebase-store-IdentityProviderUserInfo)+ - [LDAPIdentityProviderConfig](#bytebase-store-LDAPIdentityProviderConfig)- [OAuth2IdentityProviderConfig](#bytebase-store-OAuth2IdentityProviderConfig)- [OIDCIdentityProviderConfig](#bytebase-store-OIDCIdentityProviderConfig)@@ -1019,6 +1020,7 @@ reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get| ----- | ---- | ----- | ----------- || oauth2_config | [OAuth2IdentityProviderConfig](#bytebase-store-OAuth2IdentityProviderConfig) | | || oidc_config | [OIDCIdentityProviderConfig](#bytebase-store-OIDCIdentityProviderConfig) | | |+| ldap_config | [LDAPIdentityProviderConfig](#bytebase-store-LDAPIdentityProviderConfig) | | |@@ -1043,6 +1045,29 @@ reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get+<a name="bytebase-store-LDAPIdentityProviderConfig"></a>++### LDAPIdentityProviderConfig+LDAPIdentityProviderConfig is the structure for LDAP identity provider config.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| host | [string](#string) | | Host is the hostname or IP address of the LDAP server, e.g. "ldap.example.com". |+| port | [int32](#int32) | | Port is the port number of the LDAP server, e.g. 389. When not set, the default port of the corresponding security protocol will be used, i.e. 389 for StartTLS and 636 for LDAPS. |+| skip_tls_verify | [bool](#bool) | | SkipTLSVerify controls whether to skip TLS certificate verification. |+| bind_dn | [string](#string) | | BindDN is the DN of the user to bind as a service account to perform search requests. |+| bind_password | [string](#string) | | BindPassword is the password of the user to bind as a service account. |+| base_dn | [string](#string) | | BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". |+| user_filter | [string](#string) | | UserFilter is the filter to search for users, e.g. "(uid=%s)". |+| security_protocol | [string](#string) | | SecurityProtocol is the security protocol to be used for establishing connections with the LDAP server. It should be either StartTLS or LDAPS, and cannot be empty. |+| field_mapping | [FieldMapping](#bytebase-store-FieldMapping) | | FieldMapping is the mapping of the user attributes returned by the LDAP server. |++++++<a name="bytebase-store-OAuth2IdentityProviderConfig"></a>### OAuth2IdentityProviderConfig@@ -1098,6 +1123,7 @@ OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| IDENTITY_PROVIDER_TYPE_UNSPECIFIED | 0 | || OAUTH2 | 1 | || OIDC | 2 | |+| LDAP | 3 | |diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 1d7e53202a..eed5486646 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -240,6 +240,7 @@- [GetIdentityProviderRequest](#bytebase-v1-GetIdentityProviderRequest)- [IdentityProvider](#bytebase-v1-IdentityProvider)- [IdentityProviderConfig](#bytebase-v1-IdentityProviderConfig)+ - [LDAPIdentityProviderConfig](#bytebase-v1-LDAPIdentityProviderConfig)- [ListIdentityProvidersRequest](#bytebase-v1-ListIdentityProvidersRequest)- [ListIdentityProvidersResponse](#bytebase-v1-ListIdentityProvidersResponse)- [OAuth2IdentityProviderConfig](#bytebase-v1-OAuth2IdentityProviderConfig)@@ -4116,6 +4117,30 @@ reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get| ----- | ---- | ----- | ----------- || oauth2_config | [OAuth2IdentityProviderConfig](#bytebase-v1-OAuth2IdentityProviderConfig) | | || oidc_config | [OIDCIdentityProviderConfig](#bytebase-v1-OIDCIdentityProviderConfig) | | |+| ldap_config | [LDAPIdentityProviderConfig](#bytebase-v1-LDAPIdentityProviderConfig) | | |+++++++<a name="bytebase-v1-LDAPIdentityProviderConfig"></a>++### LDAPIdentityProviderConfig+LDAPIdentityProviderConfig is the structure for LDAP identity provider config.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| host | [string](#string) | | Host is the hostname or IP address of the LDAP server, e.g. "ldap.example.com". |+| port | [int32](#int32) | | Port is the port number of the LDAP server, e.g. 389. When not set, the default port of the corresponding security protocol will be used, i.e. 389 for StartTLS and 636 for LDAPS. |+| skip_tls_verify | [bool](#bool) | | SkipTLSVerify controls whether to skip TLS certificate verification. |+| bind_dn | [string](#string) | | BindDN is the DN of the user to bind as a service account to perform search requests. |+| bind_password | [string](#string) | | BindPassword is the password of the user to bind as a service account. |+| base_dn | [string](#string) | | BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". |+| user_filter | [string](#string) | | UserFilter is the filter to search for users, e.g. "(uid=%s)". |+| security_protocol | [string](#string) | | SecurityProtocol is the security protocol to be used for establishing connections with the LDAP server. It should be either StartTLS or LDAPS, and cannot be empty. |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | FieldMapping is the mapping of the user attributes returned by the LDAP server. |@@ -4287,6 +4312,7 @@ The identity provider's `name` field is used to identify the identity provid| IDENTITY_PROVIDER_TYPE_UNSPECIFIED | 0 | || OAUTH2 | 1 | || OIDC | 2 | |+| LDAP | 3 | |diff --git a/proto/generated-go/store/idp.pb.go b/proto/generated-go/store/idp.pb.goindex 9c16d7a579..94399297c7 100644--- a/proto/generated-go/store/idp.pb.go+++ b/proto/generated-go/store/idp.pb.go@@ -26,6 +26,7 @@ const (IdentityProviderType_IDENTITY_PROVIDER_TYPE_UNSPECIFIED IdentityProviderType = 0IdentityProviderType_OAUTH2 IdentityProviderType = 1IdentityProviderType_OIDC IdentityProviderType = 2+ IdentityProviderType_LDAP IdentityProviderType = 3)// Enum value maps for IdentityProviderType.@@ -34,11 +35,13 @@ var (0: "IDENTITY_PROVIDER_TYPE_UNSPECIFIED",1: "OAUTH2",2: "OIDC",+ 3: "LDAP",}IdentityProviderType_value = map[string]int32{"IDENTITY_PROVIDER_TYPE_UNSPECIFIED": 0,"OAUTH2": 1,"OIDC": 2,+ "LDAP": 3,})@@ -131,6 +134,7 @@ type IdentityProviderConfig struct {//// *IdentityProviderConfig_Oauth2Config// *IdentityProviderConfig_OidcConfig+ // *IdentityProviderConfig_LdapConfigConfig isIdentityProviderConfig_Config `protobuf_oneof:"config"`}@@ -187,6 +191,13 @@ func (x *IdentityProviderConfig) GetOidcConfig() *OIDCIdentityProviderConfig {return nil}+func (x *IdentityProviderConfig) GetLdapConfig() *LDAPIdentityProviderConfig {+ if x, ok := x.GetConfig().(*IdentityProviderConfig_LdapConfig); ok {+ return x.LdapConfig+ }+ return nil+}+type isIdentityProviderConfig_Config interface {isIdentityProviderConfig_Config()}@@ -199,10 +210,16 @@ type IdentityProviderConfig_OidcConfig struct {OidcConfig *OIDCIdentityProviderConfig `protobuf:"bytes,2,opt,name=oidc_config,json=oidcConfig,proto3,oneof"`}+type IdentityProviderConfig_LdapConfig struct {+ LdapConfig *LDAPIdentityProviderConfig `protobuf:"bytes,3,opt,name=ldap_config,json=ldapConfig,proto3,oneof"`+}+func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}func (*IdentityProviderConfig_OidcConfig) isIdentityProviderConfig_Config() {}+func (*IdentityProviderConfig_LdapConfig) isIdentityProviderConfig_Config() {}+// OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.type OAuth2IdentityProviderConfig struct {state protoimpl.MessageState@@ -403,6 +420,134 @@ func (x *OIDCIdentityProviderConfig) GetAuthStyle() OAuth2AuthStyle {return OAuth2AuthStyle_OAUTH2_AUTH_STYLE_UNSPECIFIED}+// LDAPIdentityProviderConfig is the structure for LDAP identity provider config.+type LDAPIdentityProviderConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Host is the hostname or IP address of the LDAP server, e.g.+ // "ldap.example.com".+ Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`+ // Port is the port number of the LDAP server, e.g. 389. When not set, the+ // default port of the corresponding security protocol will be used, i.e. 389+ // for StartTLS and 636 for LDAPS.+ Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`+ // SkipTLSVerify controls whether to skip TLS certificate verification.+ SkipTlsVerify bool `protobuf:"varint,3,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ // BindDN is the DN of the user to bind as a service account to perform+ // search requests.+ BindDn string `protobuf:"bytes,4,opt,name=bind_dn,json=bindDn,proto3" json:"bind_dn,omitempty"`+ // BindPassword is the password of the user to bind as a service account.+ BindPassword string `protobuf:"bytes,5,opt,name=bind_password,json=bindPassword,proto3" json:"bind_password,omitempty"`+ // BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com".+ BaseDn string `protobuf:"bytes,6,opt,name=base_dn,json=baseDn,proto3" json:"base_dn,omitempty"`+ // UserFilter is the filter to search for users, e.g. "(uid=%s)".+ UserFilter string `protobuf:"bytes,7,opt,name=user_filter,json=userFilter,proto3" json:"user_filter,omitempty"`+ // SecurityProtocol is the security protocol to be used for establishing+ // connections with the LDAP server. It should be either StartTLS or LDAPS, and+ // cannot be empty.+ SecurityProtocol string `protobuf:"bytes,8,opt,name=security_protocol,json=securityProtocol,proto3" json:"security_protocol,omitempty"`+ // FieldMapping is the mapping of the user attributes returned by the LDAP+ // server.+ FieldMapping *FieldMapping `protobuf:"bytes,9,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`+}++func (x *LDAPIdentityProviderConfig) Reset() {+ *x = LDAPIdentityProviderConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_idp_proto_msgTypes[3]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *LDAPIdentityProviderConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*LDAPIdentityProviderConfig) ProtoMessage() {}++func (x *LDAPIdentityProviderConfig) ProtoReflect() protoreflect.Message {+ mi := &file_store_idp_proto_msgTypes[3]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use LDAPIdentityProviderConfig.ProtoReflect.Descriptor instead.+func (*LDAPIdentityProviderConfig) Descriptor() ([]byte, []int) {+ return file_store_idp_proto_rawDescGZIP(), []int{3}+}++func (x *LDAPIdentityProviderConfig) GetHost() string {+ if x != nil {+ return x.Host+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetPort() int32 {+ if x != nil {+ return x.Port+ }+ return 0+}++func (x *LDAPIdentityProviderConfig) GetSkipTlsVerify() bool {+ if x != nil {+ return x.SkipTlsVerify+ }+ return false+}++func (x *LDAPIdentityProviderConfig) GetBindDn() string {+ if x != nil {+ return x.BindDn+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetBindPassword() string {+ if x != nil {+ return x.BindPassword+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetBaseDn() string {+ if x != nil {+ return x.BaseDn+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetUserFilter() string {+ if x != nil {+ return x.UserFilter+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetSecurityProtocol() string {+ if x != nil {+ return x.SecurityProtocol+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetFieldMapping() *FieldMapping {+ if x != nil {+ return x.FieldMapping+ }+ return nil+}+// FieldMapping saves the field names from user info API of identity provider.// As we save all raw json string of user info response data into `principal.idp_user_info`,// we can extract the relevant data based with `FieldMapping`.@@ -429,7 +574,7 @@ type FieldMapping struct {func (x *FieldMapping) Reset() {*x = FieldMapping{}if protoimpl.UnsafeEnabled {- mi := &file_store_idp_proto_msgTypes[3]+ mi := &file_store_idp_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -442,7 +587,7 @@ func (x *FieldMapping) String() string {func (*FieldMapping) ProtoMessage() {}func (x *FieldMapping) ProtoReflect() protoreflect.Message {- mi := &file_store_idp_proto_msgTypes[3]+ mi := &file_store_idp_proto_msgTypes[4]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -455,7 +600,7 @@ func (x *FieldMapping) ProtoReflect() protoreflect.Message {// Deprecated: Use FieldMapping.ProtoReflect.Descriptor instead.func (*FieldMapping) Descriptor() ([]byte, []int) {- return file_store_idp_proto_rawDescGZIP(), []int{3}+ return file_store_idp_proto_rawDescGZIP(), []int{4}}func (x *FieldMapping) GetIdentifier() string {@@ -504,7 +649,7 @@ type IdentityProviderUserInfo struct {func (x *IdentityProviderUserInfo) Reset() {*x = IdentityProviderUserInfo{}if protoimpl.UnsafeEnabled {- mi := &file_store_idp_proto_msgTypes[4]+ mi := &file_store_idp_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -517,7 +662,7 @@ func (x *IdentityProviderUserInfo) String() string {func (*IdentityProviderUserInfo) ProtoMessage() {}func (x *IdentityProviderUserInfo) ProtoReflect() protoreflect.Message {- mi := &file_store_idp_proto_msgTypes[4]+ mi := &file_store_idp_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -530,7 +675,7 @@ func (x *IdentityProviderUserInfo) ProtoReflect() protoreflect.Message {// Deprecated: Use IdentityProviderUserInfo.ProtoReflect.Descriptor instead.func (*IdentityProviderUserInfo) Descriptor() ([]byte, []int) {- return file_store_idp_proto_rawDescGZIP(), []int{4}+ return file_store_idp_proto_rawDescGZIP(), []int{5}}func (x *IdentityProviderUserInfo) GetIdentifier() string {@@ -566,7 +711,7 @@ var File_store_idp_proto protoreflect.FileDescriptorvar file_store_idp_proto_rawDesc = []byte{0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x16, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,+ 0x65, 0x22, 0x95, 0x02, 0x0a, 0x16, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x53, 0x0a, 0x0d,0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20,0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,@@ -578,72 +723,99 @@ var file_store_idp_proto_rawDesc = []byte{0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e,0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,0x69, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xff, 0x02, 0x0a, 0x1c, 0x4f,- 0x41, 0x75, 0x74, 0x68, 0x32, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,- 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61,- 0x75, 0x74, 0x68, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61,- 0x75, 0x74, 0x68, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f,- 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x55, 0x72, 0x6c, 0x12, 0x22, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f,- 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72,- 0x49, 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e,- 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65,- 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73,- 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69,- 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f,- 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65,- 0x73, 0x12, 0x41, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69,- 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d,- 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70,- 0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73,- 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73,- 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3e, 0x0a, 0x0a,- 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e,- 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c,- 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0xa1, 0x02, 0x0a,- 0x1a, 0x4f, 0x49, 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,- 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x69,- 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73,- 0x75, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64,- 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65,- 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53,- 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x41, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d,- 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x46, 0x69,- 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c,- 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70,- 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28,- 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79,- 0x12, 0x3e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x06,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68,- 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65,- 0x22, 0x7d, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67,- 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,- 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e,- 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f,- 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x22,- 0x89, 0x01, 0x0a, 0x18, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,- 0x69, 0x64, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a,- 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c,- 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12,- 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,- 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x2a, 0x54, 0x0a, 0x14, 0x49,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54,- 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x22, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f,- 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f,- 0x41, 0x55, 0x54, 0x48, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x49, 0x44, 0x43, 0x10,- 0x02, 0x2a, 0x52, 0x0a, 0x0f, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53,+ 0x12, 0x4d, 0x0a, 0x0b, 0x6c, 0x64, 0x61, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x44, 0x41, 0x50, 0x49, 0x64, 0x65, 0x6e, 0x74,+ 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x48, 0x00, 0x52, 0x0a, 0x6c, 0x64, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,+ 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xff, 0x02, 0x0a, 0x1c, 0x4f, 0x41,+ 0x75, 0x74, 0x68, 0x32, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x75,+ 0x74, 0x68, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75,+ 0x74, 0x68, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x75,+ 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x55,+ 0x72, 0x6c, 0x12, 0x22, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f,+ 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x49,+ 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,+ 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e,+ 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65,+ 0x63, 0x72, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65,+ 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70,+ 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73,+ 0x12, 0x41, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e,+ 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,+ 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70,+ 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73, 0x5f,+ 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b,+ 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3e, 0x0a, 0x0a, 0x61,+ 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65,+ 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0xa1, 0x02, 0x0a, 0x1a,+ 0x4f, 0x49, 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73,+ 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75,+ 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,+ 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65,+ 0x63, 0x72, 0x65, 0x74, 0x12, 0x41, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61,+ 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x46, 0x69, 0x65,+ 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64,+ 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f,+ 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,+ 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12,+ 0x3e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x06, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53,+ 0x74, 0x79, 0x6c, 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22,+ 0xd4, 0x02, 0x0a, 0x1a, 0x4c, 0x44, 0x41, 0x50, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12,+ 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f,+ 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,+ 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74,+ 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,+ 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x17,+ 0x0a, 0x07, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x64, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x06, 0x62, 0x69, 0x6e, 0x64, 0x44, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, 0x6e, 0x64, 0x5f,+ 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,+ 0x62, 0x69, 0x6e, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x17, 0x0a, 0x07,+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62,+ 0x61, 0x73, 0x65, 0x44, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x69,+ 0x6c, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72,+ 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,+ 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f,+ 0x63, 0x6f, 0x6c, 0x12, 0x41, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70,+ 0x70, 0x69, 0x6e, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x46, 0x69, 0x65, 0x6c,+ 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d,+ 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x22, 0x7d, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d,+ 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e,+ 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,+ 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69,+ 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61,+ 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12,+ 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,+ 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x18, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e,+ 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69,+ 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,+ 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70,+ 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,+ 0x65, 0x2a, 0x5e, 0x0a, 0x14, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x22, 0x49, 0x44, 0x45,+ 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x54,+ 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a,+ 0x04, 0x4f, 0x49, 0x44, 0x43, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x44, 0x41, 0x50, 0x10,+ 0x03, 0x2a, 0x52, 0x0a, 0x0f, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53,0x74, 0x79, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x5f, 0x41,0x55, 0x54, 0x48, 0x5f, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x5f, 0x50, 0x41,@@ -666,28 +838,31 @@ func file_store_idp_proto_rawDescGZIP() []byte {}var file_store_idp_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_store_idp_proto_msgTypes = make([]protoimpl.MessageInfo, 5)+var file_store_idp_proto_msgTypes = make([]protoimpl.MessageInfo, 6)var file_store_idp_proto_goTypes = []interface{}{(IdentityProviderType)(0), // 0: bytebase.store.IdentityProviderType(OAuth2AuthStyle)(0), // 1: bytebase.store.OAuth2AuthStyle(*IdentityProviderConfig)(nil), // 2: bytebase.store.IdentityProviderConfig(*OAuth2IdentityProviderConfig)(nil), // 3: bytebase.store.OAuth2IdentityProviderConfig(*OIDCIdentityProviderConfig)(nil), // 4: bytebase.store.OIDCIdentityProviderConfig- (*FieldMapping)(nil), // 5: bytebase.store.FieldMapping- (*IdentityProviderUserInfo)(nil), // 6: bytebase.store.IdentityProviderUserInfo+ (*LDAPIdentityProviderConfig)(nil), // 5: bytebase.store.LDAPIdentityProviderConfig+ (*FieldMapping)(nil), // 6: bytebase.store.FieldMapping+ (*IdentityProviderUserInfo)(nil), // 7: bytebase.store.IdentityProviderUserInfo}var file_store_idp_proto_depIdxs = []int32{3, // 0: bytebase.store.IdentityProviderConfig.oauth2_config:type_name -> bytebase.store.OAuth2IdentityProviderConfig4, // 1: bytebase.store.IdentityProviderConfig.oidc_config:type_name -> bytebase.store.OIDCIdentityProviderConfig- 5, // 2: bytebase.store.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping- 1, // 3: bytebase.store.OAuth2IdentityProviderConfig.auth_style:type_name -> bytebase.store.OAuth2AuthStyle- 5, // 4: bytebase.store.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping- 1, // 5: bytebase.store.OIDCIdentityProviderConfig.auth_style:type_name -> bytebase.store.OAuth2AuthStyle- 6, // [6:6] is the sub-list for method output_type- 6, // [6:6] is the sub-list for method input_type- 6, // [6:6] is the sub-list for extension type_name- 6, // [6:6] is the sub-list for extension extendee- 0, // [0:6] is the sub-list for field type_name+ 5, // 2: bytebase.store.IdentityProviderConfig.ldap_config:type_name -> bytebase.store.LDAPIdentityProviderConfig+ 6, // 3: bytebase.store.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping+ 1, // 4: bytebase.store.OAuth2IdentityProviderConfig.auth_style:type_name -> bytebase.store.OAuth2AuthStyle+ 6, // 5: bytebase.store.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping+ 1, // 6: bytebase.store.OIDCIdentityProviderConfig.auth_style:type_name -> bytebase.store.OAuth2AuthStyle+ 6, // 7: bytebase.store.LDAPIdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping+ 8, // [8:8] is the sub-list for method output_type+ 8, // [8:8] is the sub-list for method input_type+ 8, // [8:8] is the sub-list for extension type_name+ 8, // [8:8] is the sub-list for extension extendee+ 0, // [0:8] is the sub-list for field type_name}func init() { file_store_idp_proto_init() }@@ -733,7 +908,7 @@ func file_store_idp_proto_init() {}}file_store_idp_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*FieldMapping); i {+ switch v := v.(*LDAPIdentityProviderConfig); i {case 0:return &v.statecase 1:@@ -745,6 +920,18 @@ func file_store_idp_proto_init() {}}file_store_idp_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*FieldMapping); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_idp_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*IdentityProviderUserInfo); i {case 0:return &v.state@@ -760,6 +947,7 @@ func file_store_idp_proto_init() {file_store_idp_proto_msgTypes[0].OneofWrappers = []interface{}{(*IdentityProviderConfig_Oauth2Config)(nil),(*IdentityProviderConfig_OidcConfig)(nil),+ (*IdentityProviderConfig_LdapConfig)(nil),}type x struct{}out := protoimpl.TypeBuilder{@@ -767,7 +955,7 @@ func file_store_idp_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_idp_proto_rawDesc,NumEnums: 2,- NumMessages: 5,+ NumMessages: 6,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/idp_service.pb.go b/proto/generated-go/v1/idp_service.pb.goindex c71d910806..917f3f3570 100644--- a/proto/generated-go/v1/idp_service.pb.go+++ b/proto/generated-go/v1/idp_service.pb.go@@ -29,6 +29,7 @@ const (IdentityProviderType_IDENTITY_PROVIDER_TYPE_UNSPECIFIED IdentityProviderType = 0IdentityProviderType_OAUTH2 IdentityProviderType = 1IdentityProviderType_OIDC IdentityProviderType = 2+ IdentityProviderType_LDAP IdentityProviderType = 3)// Enum value maps for IdentityProviderType.@@ -37,11 +38,13 @@ var (0: "IDENTITY_PROVIDER_TYPE_UNSPECIFIED",1: "OAUTH2",2: "OIDC",+ 3: "LDAP",}IdentityProviderType_value = map[string]int32{"IDENTITY_PROVIDER_TYPE_UNSPECIFIED": 0,"OAUTH2": 1,"OIDC": 2,+ "LDAP": 3,})@@ -791,6 +794,7 @@ type IdentityProviderConfig struct {//// *IdentityProviderConfig_Oauth2Config// *IdentityProviderConfig_OidcConfig+ // *IdentityProviderConfig_LdapConfigConfig isIdentityProviderConfig_Config `protobuf_oneof:"config"`}@@ -847,6 +851,13 @@ func (x *IdentityProviderConfig) GetOidcConfig() *OIDCIdentityProviderConfig {return nil}+func (x *IdentityProviderConfig) GetLdapConfig() *LDAPIdentityProviderConfig {+ if x, ok := x.GetConfig().(*IdentityProviderConfig_LdapConfig); ok {+ return x.LdapConfig+ }+ return nil+}+type isIdentityProviderConfig_Config interface {isIdentityProviderConfig_Config()}@@ -859,10 +870,16 @@ type IdentityProviderConfig_OidcConfig struct {OidcConfig *OIDCIdentityProviderConfig `protobuf:"bytes,2,opt,name=oidc_config,json=oidcConfig,proto3,oneof"`}+type IdentityProviderConfig_LdapConfig struct {+ LdapConfig *LDAPIdentityProviderConfig `protobuf:"bytes,3,opt,name=ldap_config,json=ldapConfig,proto3,oneof"`+}+func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}func (*IdentityProviderConfig_OidcConfig) isIdentityProviderConfig_Config() {}+func (*IdentityProviderConfig_LdapConfig) isIdentityProviderConfig_Config() {}+// OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.type OAuth2IdentityProviderConfig struct {state protoimpl.MessageState@@ -1071,6 +1088,134 @@ func (x *OIDCIdentityProviderConfig) GetAuthStyle() OAuth2AuthStyle {return OAuth2AuthStyle_OAUTH2_AUTH_STYLE_UNSPECIFIED}+// LDAPIdentityProviderConfig is the structure for LDAP identity provider config.+type LDAPIdentityProviderConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Host is the hostname or IP address of the LDAP server, e.g.+ // "ldap.example.com".+ Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`+ // Port is the port number of the LDAP server, e.g. 389. When not set, the+ // default port of the corresponding security protocol will be used, i.e. 389+ // for StartTLS and 636 for LDAPS.+ Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`+ // SkipTLSVerify controls whether to skip TLS certificate verification.+ SkipTlsVerify bool `protobuf:"varint,3,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ // BindDN is the DN of the user to bind as a service account to perform+ // search requests.+ BindDn string `protobuf:"bytes,4,opt,name=bind_dn,json=bindDn,proto3" json:"bind_dn,omitempty"`+ // BindPassword is the password of the user to bind as a service account.+ BindPassword string `protobuf:"bytes,5,opt,name=bind_password,json=bindPassword,proto3" json:"bind_password,omitempty"`+ // BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com".+ BaseDn string `protobuf:"bytes,6,opt,name=base_dn,json=baseDn,proto3" json:"base_dn,omitempty"`+ // UserFilter is the filter to search for users, e.g. "(uid=%s)".+ UserFilter string `protobuf:"bytes,7,opt,name=user_filter,json=userFilter,proto3" json:"user_filter,omitempty"`+ // SecurityProtocol is the security protocol to be used for establishing+ // connections with the LDAP server. It should be either StartTLS or LDAPS, and+ // cannot be empty.+ SecurityProtocol string `protobuf:"bytes,8,opt,name=security_protocol,json=securityProtocol,proto3" json:"security_protocol,omitempty"`+ // FieldMapping is the mapping of the user attributes returned by the LDAP+ // server.+ FieldMapping *FieldMapping `protobuf:"bytes,9,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`+}++func (x *LDAPIdentityProviderConfig) Reset() {+ *x = LDAPIdentityProviderConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_idp_service_proto_msgTypes[14]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *LDAPIdentityProviderConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*LDAPIdentityProviderConfig) ProtoMessage() {}++func (x *LDAPIdentityProviderConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_idp_service_proto_msgTypes[14]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use LDAPIdentityProviderConfig.ProtoReflect.Descriptor instead.+func (*LDAPIdentityProviderConfig) Descriptor() ([]byte, []int) {+ return file_v1_idp_service_proto_rawDescGZIP(), []int{14}+}++func (x *LDAPIdentityProviderConfig) GetHost() string {+ if x != nil {+ return x.Host+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetPort() int32 {+ if x != nil {+ return x.Port+ }+ return 0+}++func (x *LDAPIdentityProviderConfig) GetSkipTlsVerify() bool {+ if x != nil {+ return x.SkipTlsVerify+ }+ return false+}++func (x *LDAPIdentityProviderConfig) GetBindDn() string {+ if x != nil {+ return x.BindDn+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetBindPassword() string {+ if x != nil {+ return x.BindPassword+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetBaseDn() string {+ if x != nil {+ return x.BaseDn+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetUserFilter() string {+ if x != nil {+ return x.UserFilter+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetSecurityProtocol() string {+ if x != nil {+ return x.SecurityProtocol+ }+ return ""+}++func (x *LDAPIdentityProviderConfig) GetFieldMapping() *FieldMapping {+ if x != nil {+ return x.FieldMapping+ }+ return nil+}+// FieldMapping saves the field names from user info API of identity provider.// As we save all raw json string of user info response data into `principal.idp_user_info`,// we can extract the relevant data based with `FieldMapping`.@@ -1097,7 +1242,7 @@ type FieldMapping struct {func (x *FieldMapping) Reset() {*x = FieldMapping{}if protoimpl.UnsafeEnabled {- mi := &file_v1_idp_service_proto_msgTypes[14]+ mi := &file_v1_idp_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1110,7 +1255,7 @@ func (x *FieldMapping) String() string {func (*FieldMapping) ProtoMessage() {}func (x *FieldMapping) ProtoReflect() protoreflect.Message {- mi := &file_v1_idp_service_proto_msgTypes[14]+ mi := &file_v1_idp_service_proto_msgTypes[15]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1123,7 +1268,7 @@ func (x *FieldMapping) ProtoReflect() protoreflect.Message {// Deprecated: Use FieldMapping.ProtoReflect.Descriptor instead.func (*FieldMapping) Descriptor() ([]byte, []int) {- return file_v1_idp_service_proto_rawDescGZIP(), []int{14}+ return file_v1_idp_service_proto_rawDescGZIP(), []int{15}}func (x *FieldMapping) GetIdentifier() string {@@ -1255,7 +1400,7 @@ var file_v1_idp_service_proto_rawDesc = []byte{0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74,0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,- 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xc0, 0x01, 0x0a, 0x16, 0x49, 0x64, 0x65, 0x6e,+ 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x8c, 0x02, 0x0a, 0x16, 0x49, 0x64, 0x65, 0x6e,0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,0x69, 0x67, 0x12, 0x50, 0x0a, 0x0d, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x5f, 0x63, 0x6f, 0x6e,0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65,@@ -1267,50 +1412,76 @@ var file_v1_idp_service_proto_rawDesc = []byte{0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e,0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,0x69, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xf9, 0x02, 0x0a, 0x1c, 0x4f,- 0x41, 0x75, 0x74, 0x68, 0x32, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,- 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61,- 0x75, 0x74, 0x68, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61,- 0x75, 0x74, 0x68, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f,- 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x55, 0x72, 0x6c, 0x12, 0x22, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f,- 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72,- 0x49, 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e,- 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65,- 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73,- 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69,- 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f,- 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65,- 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69,- 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70,- 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e,- 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65,- 0x72, 0x69, 0x66, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70,- 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x75, 0x74,- 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x41, 0x75, 0x74,- 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x09, 0x61, 0x75, 0x74,- 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x1a, 0x4f, 0x49, 0x44, 0x43, 0x49,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1b, 0x0a,- 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c,- 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,- 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52,- 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64,- 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65,- 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64,- 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f,- 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,- 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12,- 0x3b, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x07, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c,- 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0x7d, 0x0a, 0x0c,+ 0x12, 0x4a, 0x0a, 0x0b, 0x6c, 0x64, 0x61, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x44, 0x41, 0x50, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00,+ 0x52, 0x0a, 0x6c, 0x64, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x08, 0x0a, 0x06,+ 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xf9, 0x02, 0x0a, 0x1c, 0x4f, 0x41, 0x75, 0x74, 0x68,+ 0x32, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,+ 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x5f,+ 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x55,+ 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x12,+ 0x22, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, 0x6c,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,+ 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64,+ 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65,+ 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18,+ 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x3e, 0x0a,+ 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x07,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52,+ 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a,+ 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79,+ 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56,+ 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74,+ 0x79, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75,+ 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79,+ 0x6c, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x1a, 0x4f, 0x49, 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e, 0x74,+ 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69,+ 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c,+ 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,+ 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63,+ 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73,+ 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f,+ 0x70, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70,+ 0x70, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,+ 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70,+ 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73, 0x5f,+ 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b,+ 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3b, 0x0a, 0x0a, 0x61,+ 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x41,+ 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x09, 0x61,+ 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0xd1, 0x02, 0x0a, 0x1a, 0x4c, 0x44, 0x41,+ 0x50, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,+ 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70,+ 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12,+ 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69,+ 0x66, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c,+ 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x69, 0x6e, 0x64, 0x5f,+ 0x64, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x69, 0x6e, 0x64, 0x44, 0x6e,+ 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,+ 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x50, 0x61, 0x73,+ 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x6e,+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x61, 0x73, 0x65, 0x44, 0x6e, 0x12, 0x1f,+ 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,+ 0x2b, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75,+ 0x72, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x3e, 0x0a, 0x0d,+ 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x09, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c,+ 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x22, 0x7d, 0x0a, 0x0c,0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a,0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c,@@ -1318,85 +1489,85 @@ var file_v1_idp_service_proto_rawDesc = []byte{0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12,0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x2a, 0x54, 0x0a, 0x14, 0x49,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x2a, 0x5e, 0x0a, 0x14, 0x49,0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54,0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x22, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f,0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f,0x41, 0x55, 0x54, 0x48, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x49, 0x44, 0x43, 0x10,- 0x02, 0x2a, 0x52, 0x0a, 0x0f, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53,- 0x74, 0x79, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x5f, 0x41,- 0x55, 0x54, 0x48, 0x5f, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x5f, 0x50, 0x41,- 0x52, 0x41, 0x4d, 0x53, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x5f, 0x48, 0x45, 0x41,- 0x44, 0x45, 0x52, 0x10, 0x02, 0x32, 0x8f, 0x08, 0x0a, 0x17, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,- 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,- 0x65, 0x12, 0x7f, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,- 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x44, 0x41, 0x50, 0x10, 0x03, 0x2a, 0x52, 0x0a, 0x0f, 0x4f,+ 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x21,+ 0x0a, 0x1d, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x53, 0x54,+ 0x59, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x53, 0x10, 0x01,+ 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x02, 0x32,+ 0x8f, 0x08, 0x0a, 0x17, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7f, 0x0a, 0x13, 0x47,+ 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,+ 0x65, 0x72, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x47, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x83, 0x01, 0x0a,+ 0x15, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,+ 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0xda,+ 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64,+ 0x70, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65,+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,+ 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x26, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x1d, 0x3a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72,+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x70, 0x73,+ 0x12, 0xc3, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74,+ 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x5e, 0xda, 0x41, 0x1d, 0x69, 0x64, 0x65, 0x6e, 0x74,+ 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x3a, 0x11,+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,+ 0x72, 0x32, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,+ 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,+ 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,+ 0x76, 0x69, 0x64, 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, 0x20, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x13, 0x2a, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,+ 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x18, 0x55, 0x6e, 0x64, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,+ 0x64, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,- 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12,- 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74,- 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,- 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x22, 0x13, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08,- 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,- 0x64, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,- 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64,- 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x26,- 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74,- 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x08, 0x2f, 0x76,- 0x31, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x12, 0xc3, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,- 0x72, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e,- 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x5e, 0xda, 0x41,- 0x1d, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,- 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x38, 0x3a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70,- 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x32, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x64,- 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x16,- 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74,- 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 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, 0x20, 0xda, 0x41, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x2a, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8e, 0x01, 0x0a,- 0x18, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,- 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75,+ 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74,0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01,- 0x2a, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70,- 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x87, 0x01,- 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,- 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54,+ 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54,0x65, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,- 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x70, 0x73,- 0x2f, 0x2a, 0x3a, 0x74, 0x65, 0x73, 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,+ 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x64, 0x65,+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a,+ 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x3a, 0x74, 0x65, 0x73,+ 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 (@@ -1412,7 +1583,7 @@ func file_v1_idp_service_proto_rawDescGZIP() []byte {}var file_v1_idp_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_v1_idp_service_proto_msgTypes = make([]protoimpl.MessageInfo, 15)+var file_v1_idp_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)var file_v1_idp_service_proto_goTypes = []interface{}{(IdentityProviderType)(0), // 0: bytebase.v1.IdentityProviderType(OAuth2AuthStyle)(0), // 1: bytebase.v1.OAuth2AuthStyle@@ -1430,46 +1601,49 @@ var file_v1_idp_service_proto_goTypes = []interface{}{(*IdentityProviderConfig)(nil), // 13: bytebase.v1.IdentityProviderConfig(*OAuth2IdentityProviderConfig)(nil), // 14: bytebase.v1.OAuth2IdentityProviderConfig(*OIDCIdentityProviderConfig)(nil), // 15: bytebase.v1.OIDCIdentityProviderConfig- (*FieldMapping)(nil), // 16: bytebase.v1.FieldMapping- (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask- (State)(0), // 18: bytebase.v1.State- (*emptypb.Empty)(nil), // 19: google.protobuf.Empty+ (*LDAPIdentityProviderConfig)(nil), // 16: bytebase.v1.LDAPIdentityProviderConfig+ (*FieldMapping)(nil), // 17: bytebase.v1.FieldMapping+ (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask+ (State)(0), // 19: bytebase.v1.State+ (*emptypb.Empty)(nil), // 20: google.protobuf.Empty}var file_v1_idp_service_proto_depIdxs = []int32{12, // 0: bytebase.v1.ListIdentityProvidersResponse.identity_providers:type_name -> bytebase.v1.IdentityProvider12, // 1: bytebase.v1.CreateIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider12, // 2: bytebase.v1.UpdateIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider- 17, // 3: bytebase.v1.UpdateIdentityProviderRequest.update_mask:type_name -> google.protobuf.FieldMask+ 18, // 3: bytebase.v1.UpdateIdentityProviderRequest.update_mask:type_name -> google.protobuf.FieldMask12, // 4: bytebase.v1.TestIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider10, // 5: bytebase.v1.TestIdentityProviderRequest.oauth2_context:type_name -> bytebase.v1.OAuth2IdentityProviderTestRequestContext- 18, // 6: bytebase.v1.IdentityProvider.state:type_name -> bytebase.v1.State+ 19, // 6: bytebase.v1.IdentityProvider.state:type_name -> bytebase.v1.State0, // 7: bytebase.v1.IdentityProvider.type:type_name -> bytebase.v1.IdentityProviderType13, // 8: bytebase.v1.IdentityProvider.config:type_name -> bytebase.v1.IdentityProviderConfig14, // 9: bytebase.v1.IdentityProviderConfig.oauth2_config:type_name -> bytebase.v1.OAuth2IdentityProviderConfig15, // 10: bytebase.v1.IdentityProviderConfig.oidc_config:type_name -> bytebase.v1.OIDCIdentityProviderConfig- 16, // 11: bytebase.v1.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping- 1, // 12: bytebase.v1.OAuth2IdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle- 16, // 13: bytebase.v1.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping- 1, // 14: bytebase.v1.OIDCIdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle- 2, // 15: bytebase.v1.IdentityProviderService.GetIdentityProvider:input_type -> bytebase.v1.GetIdentityProviderRequest- 3, // 16: bytebase.v1.IdentityProviderService.ListIdentityProviders:input_type -> bytebase.v1.ListIdentityProvidersRequest- 5, // 17: bytebase.v1.IdentityProviderService.CreateIdentityProvider:input_type -> bytebase.v1.CreateIdentityProviderRequest- 6, // 18: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:input_type -> bytebase.v1.UpdateIdentityProviderRequest- 7, // 19: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:input_type -> bytebase.v1.DeleteIdentityProviderRequest- 8, // 20: bytebase.v1.IdentityProviderService.UndeleteIdentityProvider:input_type -> bytebase.v1.UndeleteIdentityProviderRequest- 9, // 21: bytebase.v1.IdentityProviderService.TestIdentityProvider:input_type -> bytebase.v1.TestIdentityProviderRequest- 12, // 22: bytebase.v1.IdentityProviderService.GetIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 4, // 23: bytebase.v1.IdentityProviderService.ListIdentityProviders:output_type -> bytebase.v1.ListIdentityProvidersResponse- 12, // 24: bytebase.v1.IdentityProviderService.CreateIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 12, // 25: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 19, // 26: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:output_type -> google.protobuf.Empty- 12, // 27: bytebase.v1.IdentityProviderService.UndeleteIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 11, // 28: bytebase.v1.IdentityProviderService.TestIdentityProvider:output_type -> bytebase.v1.TestIdentityProviderResponse- 22, // [22:29] is the sub-list for method output_type- 15, // [15:22] is the sub-list for method input_type- 15, // [15:15] is the sub-list for extension type_name- 15, // [15:15] is the sub-list for extension extendee- 0, // [0:15] is the sub-list for field type_name+ 16, // 11: bytebase.v1.IdentityProviderConfig.ldap_config:type_name -> bytebase.v1.LDAPIdentityProviderConfig+ 17, // 12: bytebase.v1.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping+ 1, // 13: bytebase.v1.OAuth2IdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle+ 17, // 14: bytebase.v1.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping+ 1, // 15: bytebase.v1.OIDCIdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle+ 17, // 16: bytebase.v1.LDAPIdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping+ 2, // 17: bytebase.v1.IdentityProviderService.GetIdentityProvider:input_type -> bytebase.v1.GetIdentityProviderRequest+ 3, // 18: bytebase.v1.IdentityProviderService.ListIdentityProviders:input_type -> bytebase.v1.ListIdentityProvidersRequest+ 5, // 19: bytebase.v1.IdentityProviderService.CreateIdentityProvider:input_type -> bytebase.v1.CreateIdentityProviderRequest+ 6, // 20: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:input_type -> bytebase.v1.UpdateIdentityProviderRequest+ 7, // 21: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:input_type -> bytebase.v1.DeleteIdentityProviderRequest+ 8, // 22: bytebase.v1.IdentityProviderService.UndeleteIdentityProvider:input_type -> bytebase.v1.UndeleteIdentityProviderRequest+ 9, // 23: bytebase.v1.IdentityProviderService.TestIdentityProvider:input_type -> bytebase.v1.TestIdentityProviderRequest+ 12, // 24: bytebase.v1.IdentityProviderService.GetIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 4, // 25: bytebase.v1.IdentityProviderService.ListIdentityProviders:output_type -> bytebase.v1.ListIdentityProvidersResponse+ 12, // 26: bytebase.v1.IdentityProviderService.CreateIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 12, // 27: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 20, // 28: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:output_type -> google.protobuf.Empty+ 12, // 29: bytebase.v1.IdentityProviderService.UndeleteIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 11, // 30: bytebase.v1.IdentityProviderService.TestIdentityProvider:output_type -> bytebase.v1.TestIdentityProviderResponse+ 24, // [24:31] is the sub-list for method output_type+ 17, // [17:24] is the sub-list for method input_type+ 17, // [17:17] is the sub-list for extension type_name+ 17, // [17:17] is the sub-list for extension extendee+ 0, // [0:17] is the sub-list for field type_name}func init() { file_v1_idp_service_proto_init() }@@ -1648,6 +1822,18 @@ func file_v1_idp_service_proto_init() {}}file_v1_idp_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*LDAPIdentityProviderConfig); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_idp_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*FieldMapping); i {case 0:return &v.state@@ -1666,6 +1852,7 @@ func file_v1_idp_service_proto_init() {file_v1_idp_service_proto_msgTypes[11].OneofWrappers = []interface{}{(*IdentityProviderConfig_Oauth2Config)(nil),(*IdentityProviderConfig_OidcConfig)(nil),+ (*IdentityProviderConfig_LdapConfig)(nil),}type x struct{}out := protoimpl.TypeBuilder{@@ -1673,7 +1860,7 @@ func file_v1_idp_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_idp_service_proto_rawDesc,NumEnums: 2,- NumMessages: 15,+ NumMessages: 16,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/idp.proto b/proto/store/idp.protoindex e5acd2f68e..21302b4773 100644--- a/proto/store/idp.proto+++ b/proto/store/idp.proto@@ -8,12 +8,14 @@ enum IdentityProviderType {IDENTITY_PROVIDER_TYPE_UNSPECIFIED = 0;OAUTH2 = 1;OIDC = 2;+ LDAP = 3;}message IdentityProviderConfig {oneof config {OAuth2IdentityProviderConfig oauth2_config = 1;OIDCIdentityProviderConfig oidc_config = 2;+ LDAPIdentityProviderConfig ldap_config = 3;}}@@ -53,6 +55,35 @@ message OIDCIdentityProviderConfig {OAuth2AuthStyle auth_style = 6;}+// LDAPIdentityProviderConfig is the structure for LDAP identity provider config.+message LDAPIdentityProviderConfig {+ // Host is the hostname or IP address of the LDAP server, e.g.+ // "ldap.example.com".+ string host = 1;+ // Port is the port number of the LDAP server, e.g. 389. When not set, the+ // default port of the corresponding security protocol will be used, i.e. 389+ // for StartTLS and 636 for LDAPS.+ int32 port = 2;+ // SkipTLSVerify controls whether to skip TLS certificate verification.+ bool skip_tls_verify = 3;+ // BindDN is the DN of the user to bind as a service account to perform+ // search requests.+ string bind_dn = 4;+ // BindPassword is the password of the user to bind as a service account.+ string bind_password = 5;+ // BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com".+ string base_dn = 6;+ // UserFilter is the filter to search for users, e.g. "(uid=%s)".+ string user_filter = 7;+ // SecurityProtocol is the security protocol to be used for establishing+ // connections with the LDAP server. It should be either StartTLS or LDAPS, and+ // cannot be empty.+ string security_protocol = 8;+ // FieldMapping is the mapping of the user attributes returned by the LDAP+ // server.+ FieldMapping field_mapping = 9;+}+// FieldMapping saves the field names from user info API of identity provider.// As we save all raw json string of user info response data into `principal.idp_user_info`,// we can extract the relevant data based with `FieldMapping`.diff --git a/proto/v1/idp_service.proto b/proto/v1/idp_service.protoindex f28f48039e..accd800ca9 100644--- a/proto/v1/idp_service.proto+++ b/proto/v1/idp_service.proto@@ -163,12 +163,14 @@ enum IdentityProviderType {IDENTITY_PROVIDER_TYPE_UNSPECIFIED = 0;OAUTH2 = 1;OIDC = 2;+ LDAP = 3;}message IdentityProviderConfig {oneof config {OAuth2IdentityProviderConfig oauth2_config = 1;OIDCIdentityProviderConfig oidc_config = 2;+ LDAPIdentityProviderConfig ldap_config = 3;}}@@ -210,6 +212,35 @@ message OIDCIdentityProviderConfig {OAuth2AuthStyle auth_style = 7;}+// LDAPIdentityProviderConfig is the structure for LDAP identity provider config.+message LDAPIdentityProviderConfig {+ // Host is the hostname or IP address of the LDAP server, e.g.+ // "ldap.example.com".+ string host = 1;+ // Port is the port number of the LDAP server, e.g. 389. When not set, the+ // default port of the corresponding security protocol will be used, i.e. 389+ // for StartTLS and 636 for LDAPS.+ int32 port = 2;+ // SkipTLSVerify controls whether to skip TLS certificate verification.+ bool skip_tls_verify = 3;+ // BindDN is the DN of the user to bind as a service account to perform+ // search requests.+ string bind_dn = 4;+ // BindPassword is the password of the user to bind as a service account.+ string bind_password = 5;+ // BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com".+ string base_dn = 6;+ // UserFilter is the filter to search for users, e.g. "(uid=%s)".+ string user_filter = 7;+ // SecurityProtocol is the security protocol to be used for establishing+ // connections with the LDAP server. It should be either StartTLS or LDAPS, and+ // cannot be empty.+ string security_protocol = 8;+ // FieldMapping is the mapping of the user attributes returned by the LDAP+ // server.+ FieldMapping field_mapping = 9;+}+// FieldMapping saves the field names from user info API of identity provider.// As we save all raw json string of user info response data into `principal.idp_user_info`,// we can extract the relevant data based with `FieldMapping`.