Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: introduce external secret proto (#11173)
ecmadao2f821df49b2f
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.goindex af2ed726a3..d1479121a1 100644--- a/backend/api/v1/database_service.go+++ b/backend/api/v1/database_service.go@@ -2084,6 +2084,10 @@ func (s *DatabaseService) convertToDatabase(ctx context.Context, database *storeif database.EffectiveEnvironmentID != "" {effectiveEnvironment = fmt.Sprintf("%s%s", common.EnvironmentNamePrefix, database.EffectiveEnvironmentID)}+ instanceResource, err := convertToInstanceResource(instance)+ if err != nil {+ return nil, err+ }return &v1pb.Database{Name: common.FormatDatabase(database.InstanceID, database.DatabaseName),Uid: fmt.Sprintf("%d", database.UID),@@ -2094,7 +2098,7 @@ func (s *DatabaseService) convertToDatabase(ctx context.Context, database *storeEffectiveEnvironment: effectiveEnvironment,SchemaVersion: database.SchemaVersion.Version,Labels: database.Metadata.Labels,- InstanceResource: convertToInstanceResource(instance),+ InstanceResource: instanceResource,}, nil}diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.goindex f53081508f..a102bbd941 100644--- a/backend/api/v1/instance_service.go+++ b/backend/api/v1/instance_service.go@@ -64,7 +64,7 @@ func (s *InstanceService) GetInstance(ctx context.Context, request *v1pb.GetInstif err != nil {return nil, err}- return convertToInstance(instance), nil+ return convertToInstance(instance)}// ListInstances lists all instances.@@ -92,7 +92,11 @@ func (s *InstanceService) ListInstances(ctx context.Context, request *v1pb.ListI}response := &v1pb.ListInstancesResponse{}for _, instance := range instances {- response.Instances = append(response.Instances, convertToInstance(instance))+ ins, err := convertToInstance(instance)+ if err != nil {+ return nil, err+ }+ response.Instances = append(response.Instances, ins)}return response, nil}@@ -139,7 +143,11 @@ func (s *InstanceService) SearchInstances(ctx context.Context, request *v1pb.Sea}response := &v1pb.SearchInstancesResponse{}for _, instance := range instances {- response.Instances = append(response.Instances, convertToInstance(instance))+ ins, err := convertToInstance(instance)+ if err != nil {+ return nil, err+ }+ response.Instances = append(response.Instances, ins)}return response, nil}@@ -180,7 +188,7 @@ func (s *InstanceService) CreateInstance(ctx context.Context, request *v1pb.Creareturn nil, err}}- return convertToInstance(instanceMessage), nil+ return convertToInstance(instanceMessage)}instanceCountLimit := s.licenseService.GetInstanceLicenseCount(ctx)@@ -235,7 +243,7 @@ func (s *InstanceService) CreateInstance(ctx context.Context, request *v1pb.Crea},})- return convertToInstance(instance), nil+ return convertToInstance(instance)}func (s *InstanceService) checkDataSource(instance *store.InstanceMessage, dataSource *store.DataSourceMessage) error {@@ -243,12 +251,18 @@ func (s *InstanceService) checkDataSource(instance *store.InstanceMessage, dataSif err != nil {return err}- if ok, _ := secret.GetExternalSecretURL(password); !ok {- return nil- }+if err := s.licenseService.IsFeatureEnabledForInstance(api.FeatureExternalSecretManager, instance); err != nil {- return status.Errorf(codes.PermissionDenied, err.Error())+ missingFeatureError := status.Errorf(codes.PermissionDenied, err.Error())+ if dataSource.ExternalSecret != nil {+ return missingFeatureError+ }+ if ok, _ := secret.GetExternalSecretURL(password); !ok {+ return nil+ }+ return missingFeatureError}+return nil}@@ -331,7 +345,7 @@ func (s *InstanceService) UpdateInstance(ctx context.Context, request *v1pb.Updaif err != nil {return nil, status.Errorf(codes.Internal, err.Error())}- return convertToInstance(ins), nil+ return convertToInstance(ins)}func (s *InstanceService) syncSlowQueriesForInstance(ctx context.Context, instanceName string) (*emptypb.Empty, error) {@@ -570,7 +584,7 @@ func (s *InstanceService) UndeleteInstance(ctx context.Context, request *v1pb.Unreturn nil, status.Errorf(codes.Internal, err.Error())}- return convertToInstance(ins), nil+ return convertToInstance(ins)}// SyncInstance syncs the instance.@@ -659,7 +673,7 @@ func (s *InstanceService) AddDataSource(ctx context.Context, request *v1pb.AddDaif err != nil {return nil, err}- return convertToInstance(instance), nil+ return convertToInstance(instance)}if err := s.licenseService.IsFeatureEnabledForInstance(api.FeatureReadReplicaConnection, instance); err != nil {@@ -681,7 +695,7 @@ func (s *InstanceService) AddDataSource(ctx context.Context, request *v1pb.AddDareturn nil, status.Errorf(codes.Internal, err.Error())}- return convertToInstance(instance), nil+ return convertToInstance(instance)}// UpdateDataSource updates a data source of an instance.@@ -797,6 +811,13 @@ func (s *InstanceService) UpdateDataSource(ctx context.Context, request *v1pb.Upobfuscated := common.Obfuscate(request.DataSource.AuthenticationPrivateKey, s.secret)patch.AuthenticationPrivateKeyObfuscated = &obfuscateddataSource.AuthenticationPrivateKeyObfuscated = obfuscated+ case "external_secret":+ externalSecret, err := convertToStoreDataSourceExternalSecret(request.DataSource.ExternalSecret)+ if err != nil {+ return nil, err+ }+ patch.ExternalSecret = externalSecret+ patch.RemoveExternalSecret = externalSecret == nildefault:return nil, status.Errorf(codes.InvalidArgument, `unsupport update_mask "%s"`, path)}@@ -824,7 +845,7 @@ func (s *InstanceService) UpdateDataSource(ctx context.Context, request *v1pb.Upif err != nil {return nil, err}- return convertToInstance(instance), nil+ return convertToInstance(instance)}if err := s.store.UpdateDataSourceV2(ctx, patch); err != nil {@@ -838,7 +859,7 @@ func (s *InstanceService) UpdateDataSource(ctx context.Context, request *v1pb.Upreturn nil, status.Errorf(codes.Internal, err.Error())}- return convertToInstance(instance), nil+ return convertToInstance(instance)}// RemoveDataSource removes a data source to an instance.@@ -892,7 +913,7 @@ func (s *InstanceService) RemoveDataSource(ctx context.Context, request *v1pb.Rereturn nil, status.Errorf(codes.Internal, err.Error())}- return convertToInstance(instance), nil+ return convertToInstance(instance)}func (s *InstanceService) getProjectMessage(ctx context.Context, name string) (*store.ProjectMessage, error) {@@ -948,32 +969,13 @@ func (s *InstanceService) getInstanceMessage(ctx context.Context, name string) (return instance, nil}-func convertToInstance(instance *store.InstanceMessage) *v1pb.Instance {+func convertToInstance(instance *store.InstanceMessage) (*v1pb.Instance, error) {engine := convertToEngine(instance.Engine)- dataSourceList := []*v1pb.DataSource{}- for _, ds := range instance.DataSources {- dataSourceType := v1pb.DataSourceType_DATA_SOURCE_UNSPECIFIED- switch ds.Type {- case api.Admin:- dataSourceType = v1pb.DataSourceType_ADMIN- case api.RO:- dataSourceType = v1pb.DataSourceType_READ_ONLY- }-- dataSourceList = append(dataSourceList, &v1pb.DataSource{- Id: ds.ID,- Type: dataSourceType,- Username: ds.Username,- // We don't return the password and SSLs on reads.- Host: ds.Host,- Port: ds.Port,- Database: ds.Database,- Srv: ds.SRV,- AuthenticationDatabase: ds.AuthenticationDatabase,- Sid: ds.SID,- ServiceName: ds.ServiceName,- })+ dataSourceList, err := convertToV1DataSources(instance.DataSources)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to convert data source with error: %v", err.Error())}+return &v1pb.Instance{Name: fmt.Sprintf("%s%s", common.InstanceNamePrefix, instance.ResourceID),Uid: fmt.Sprintf("%d", instance.UID),@@ -986,7 +988,7 @@ func convertToInstance(instance *store.InstanceMessage) *v1pb.Instance {Environment: fmt.Sprintf("environments/%s", instance.EnvironmentID),Activation: instance.Activation,Options: convertToInstanceOptions(instance.Options),- }+ }, nil}func (s *InstanceService) convertToInstanceMessage(instanceID string, instance *v1pb.Instance) (*store.InstanceMessage, error) {@@ -1011,15 +1013,18 @@ func (s *InstanceService) convertToInstanceMessage(instanceID string, instance *}, nil}-func convertToInstanceResource(instanceMessage *store.InstanceMessage) *v1pb.InstanceResource {- instance := convertToInstance(instanceMessage)+func convertToInstanceResource(instanceMessage *store.InstanceMessage) (*v1pb.InstanceResource, error) {+ instance, err := convertToInstance(instanceMessage)+ if err != nil {+ return nil, err+ }return &v1pb.InstanceResource{Title: instance.Title,Engine: instance.Engine,EngineVersion: instance.EngineVersion,DataSources: instance.DataSources,Activation: instance.Activation,- }+ }, nil}func (s *InstanceService) convertToDataSourceMessages(dataSources []*v1pb.DataSource) ([]*store.DataSourceMessage, error) {@@ -1035,11 +1040,95 @@ func (s *InstanceService) convertToDataSourceMessages(dataSources []*v1pb.DataSoreturn datasources, nil}+func convertToV1DataSourceExternalSecret(externalSecret *storepb.DataSourceExternalSecret) (*v1pb.DataSourceExternalSecret, error) {+ if externalSecret == nil {+ return nil, nil+ }+ secret := new(v1pb.DataSourceExternalSecret)+ if err := convertV1PbToStorePb(externalSecret, secret); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to convert external secret with error: %v", err.Error())+ }++ resp := &v1pb.DataSourceExternalSecret{+ SecretType: secret.SecretType,+ Url: secret.Url,+ AuthType: secret.AuthType,+ EngineName: secret.EngineName,+ SecretName: secret.SecretName,+ KeyName: secret.KeyName,+ }++ // clear sensitive data.+ switch resp.AuthType {+ case v1pb.DataSourceExternalSecret_APP_ROLE:+ resp.AuthOption = &v1pb.DataSourceExternalSecret_AppRole{+ AppRole: &v1pb.DataSourceExternalSecret_AppRoleAuthOption{},+ }+ case v1pb.DataSourceExternalSecret_TOKEN:+ resp.AuthOption = &v1pb.DataSourceExternalSecret_Token{+ Token: "",+ }+ }++ return resp, nil+}++func convertToV1DataSources(dataSources []*store.DataSourceMessage) ([]*v1pb.DataSource, error) {+ dataSourceList := []*v1pb.DataSource{}+ for _, ds := range dataSources {+ externalSecret, err := convertToV1DataSourceExternalSecret(ds.ExternalSecret)+ if err != nil {+ return nil, err+ }++ dataSourceType := v1pb.DataSourceType_DATA_SOURCE_UNSPECIFIED+ switch ds.Type {+ case api.Admin:+ dataSourceType = v1pb.DataSourceType_ADMIN+ case api.RO:+ dataSourceType = v1pb.DataSourceType_READ_ONLY+ }++ dataSourceList = append(dataSourceList, &v1pb.DataSource{+ Id: ds.ID,+ Type: dataSourceType,+ Username: ds.Username,+ // We don't return the password and SSLs on reads.+ Host: ds.Host,+ Port: ds.Port,+ Database: ds.Database,+ Srv: ds.SRV,+ AuthenticationDatabase: ds.AuthenticationDatabase,+ Sid: ds.SID,+ ServiceName: ds.ServiceName,+ ExternalSecret: externalSecret,+ })+ }++ return dataSourceList, nil+}++func convertToStoreDataSourceExternalSecret(externalSecret *v1pb.DataSourceExternalSecret) (*storepb.DataSourceExternalSecret, error) {+ if externalSecret == nil {+ return nil, nil+ }+ secret := new(storepb.DataSourceExternalSecret)+ if err := convertV1PbToStorePb(externalSecret, secret); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to convert external secret with error: %v", err.Error())+ }++ return secret, nil+}+func (s *InstanceService) convertToDataSourceMessage(dataSource *v1pb.DataSource) (*store.DataSourceMessage, error) {dsType, err := convertDataSourceTp(dataSource.Type)if err != nil {return nil, err}+ externalSecret, err := convertToStoreDataSourceExternalSecret(dataSource.ExternalSecret)+ if err != nil {+ return nil, err+ }return &store.DataSourceMessage{ID: dataSource.Id,@@ -1062,6 +1151,7 @@ func (s *InstanceService) convertToDataSourceMessage(dataSource *v1pb.DataSourceSSHObfuscatedPassword: common.Obfuscate(dataSource.SshPassword, s.secret),SSHObfuscatedPrivateKey: common.Obfuscate(dataSource.SshPrivateKey, s.secret),AuthenticationPrivateKeyObfuscated: common.Obfuscate(dataSource.AuthenticationPrivateKey, s.secret),+ ExternalSecret: externalSecret,}, nil}diff --git a/backend/store/data_source.go b/backend/store/data_source.goindex d255b666f6..dee976d93c 100644--- a/backend/store/data_source.go+++ b/backend/store/data_source.go@@ -39,6 +39,8 @@ type DataSourceMessage struct {AuthenticationPrivateKeyObfuscated string// (deprecated) Output only.UID int+ // external secret+ ExternalSecret *storepb.DataSourceExternalSecret}// Copy returns a copy of the data source message.@@ -65,6 +67,7 @@ func (m *DataSourceMessage) Copy() *DataSourceMessage {SSHObfuscatedPrivateKey: m.SSHObfuscatedPrivateKey,UID: m.UID,AuthenticationPrivateKeyObfuscated: m.AuthenticationPrivateKeyObfuscated,+ ExternalSecret: m.ExternalSecret,}}@@ -96,6 +99,9 @@ type UpdateDataSourceMessage struct {SSHObfuscatedPrivateKey *string// AuthenticationAuthenticationPrivateKeyObfuscated *string+ // external secret+ ExternalSecret *storepb.DataSourceExternalSecret+ RemoveExternalSecret bool}func (*Store) listDataSourceV2(ctx context.Context, tx *Tx, instanceID string) ([]*DataSourceMessage, error) {@@ -157,7 +163,7 @@ func (*Store) listDataSourceV2(ctx context.Context, tx *Tx, instanceID string) (dataSourceMessage.SSHObfuscatedPassword = dataSourceOptions.SshObfuscatedPassworddataSourceMessage.SSHObfuscatedPrivateKey = dataSourceOptions.SshObfuscatedPrivateKeydataSourceMessage.AuthenticationPrivateKeyObfuscated = dataSourceOptions.AuthenticationPrivateKeyObfuscated-+ dataSourceMessage.ExternalSecret = dataSourceOptions.ExternalSecretdataSourceMessages = append(dataSourceMessages, &dataSourceMessage)}if err := rows.Err(); err != nil {@@ -282,6 +288,15 @@ func (s *Store) UpdateDataSourceV2(ctx context.Context, patch *UpdateDataSourceMif v := patch.AuthenticationPrivateKeyObfuscated; v != nil {optionSet, args = append(optionSet, fmt.Sprintf("jsonb_build_object('authenticationPrivateKeyObfuscated', to_jsonb($%d::TEXT))", len(args)+1)), append(args, *v)}+ if v := patch.ExternalSecret; v != nil {+ protoBytes, err := protojson.Marshal(v)+ if err != nil {+ return errors.Wrap(err, "failed to marshal external secret")+ }+ optionSet, args = append(optionSet, fmt.Sprintf("jsonb_build_object('externalSecret', $%d::JSONB)", len(args)+1)), append(args, protoBytes)+ } else if patch.RemoveExternalSecret {+ optionSet, args = append(optionSet, fmt.Sprintf("jsonb_build_object('externalSecret', $%d::JSONB)", len(args)+1)), append(args, nil)+ }if len(optionSet) != 0 {set = append(set, fmt.Sprintf(`options = options || %s`, strings.Join(optionSet, "||")))}@@ -331,6 +346,7 @@ func (*Store) addDataSourceToInstanceImplV2(ctx context.Context, tx *Tx, instancSshObfuscatedPassword: dataSource.SSHObfuscatedPassword,SshObfuscatedPrivateKey: dataSource.SSHObfuscatedPrivateKey,AuthenticationPrivateKeyObfuscated: dataSource.AuthenticationPrivateKeyObfuscated,+ ExternalSecret: dataSource.ExternalSecret,}protoBytes, err := protojson.Marshal(&dataSourceOptions)if err != nil {diff --git a/frontend/src/types/proto/store/data_source.ts b/frontend/src/types/proto/store/data_source.tsindex 921673049d..e0fa75970b 100644--- a/frontend/src/types/proto/store/data_source.ts+++ b/frontend/src/types/proto/store/data_source.ts@@ -4,6 +4,100 @@ import _m0 from "protobufjs/minimal";export const protobufPackage = "bytebase.store";+export interface DataSourceExternalSecret {+ secretType: DataSourceExternalSecret_SecretType;+ url: string;+ authType: DataSourceExternalSecret_AuthType;+ appRole?: DataSourceExternalSecret_AppRoleAuthOption | undefined;+ token?:+ | string+ | undefined;+ /** engine name is the name for secret engine. */+ engineName: string;+ /** the secret name in the engine to store the password. */+ secretName: string;+ /** the key name for the password. */+ keyName: string;+}++export enum DataSourceExternalSecret_SecretType {+ SAECRET_TYPE_UNSPECIFIED = 0,+ VAULT_KV_V2 = 1,+ UNRECOGNIZED = -1,+}++export function dataSourceExternalSecret_SecretTypeFromJSON(object: any): DataSourceExternalSecret_SecretType {+ switch (object) {+ case 0:+ case "SAECRET_TYPE_UNSPECIFIED":+ return DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED;+ case 1:+ case "VAULT_KV_V2":+ return DataSourceExternalSecret_SecretType.VAULT_KV_V2;+ case -1:+ case "UNRECOGNIZED":+ default:+ return DataSourceExternalSecret_SecretType.UNRECOGNIZED;+ }+}++export function dataSourceExternalSecret_SecretTypeToJSON(object: DataSourceExternalSecret_SecretType): string {+ switch (object) {+ case DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED:+ return "SAECRET_TYPE_UNSPECIFIED";+ case DataSourceExternalSecret_SecretType.VAULT_KV_V2:+ return "VAULT_KV_V2";+ case DataSourceExternalSecret_SecretType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum DataSourceExternalSecret_AuthType {+ AUTH_TYPE_UNSPECIFIED = 0,+ TOKEN = 1,+ APP_ROLE = 2,+ UNRECOGNIZED = -1,+}++export function dataSourceExternalSecret_AuthTypeFromJSON(object: any): DataSourceExternalSecret_AuthType {+ switch (object) {+ case 0:+ case "AUTH_TYPE_UNSPECIFIED":+ return DataSourceExternalSecret_AuthType.AUTH_TYPE_UNSPECIFIED;+ case 1:+ case "TOKEN":+ return DataSourceExternalSecret_AuthType.TOKEN;+ case 2:+ case "APP_ROLE":+ return DataSourceExternalSecret_AuthType.APP_ROLE;+ case -1:+ case "UNRECOGNIZED":+ default:+ return DataSourceExternalSecret_AuthType.UNRECOGNIZED;+ }+}++export function dataSourceExternalSecret_AuthTypeToJSON(object: DataSourceExternalSecret_AuthType): string {+ switch (object) {+ case DataSourceExternalSecret_AuthType.AUTH_TYPE_UNSPECIFIED:+ return "AUTH_TYPE_UNSPECIFIED";+ case DataSourceExternalSecret_AuthType.TOKEN:+ return "TOKEN";+ case DataSourceExternalSecret_AuthType.APP_ROLE:+ return "APP_ROLE";+ case DataSourceExternalSecret_AuthType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++/** app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle */+export interface DataSourceExternalSecret_AppRoleAuthOption {+ roleId: string;+ secretId: string;+}+export interface DataSourceOptions {/** srv is a boolean flag that indicates whether the host is a DNS SRV record. */srv: boolean;@@ -30,8 +124,260 @@ export interface DataSourceOptions {* Used for authentication when connecting to the data source.*/authenticationPrivateKeyObfuscated: string;+ externalSecret: DataSourceExternalSecret | undefined;+}++function createBaseDataSourceExternalSecret(): DataSourceExternalSecret {+ return {+ secretType: 0,+ url: "",+ authType: 0,+ appRole: undefined,+ token: undefined,+ engineName: "",+ secretName: "",+ keyName: "",+ };+}++export const DataSourceExternalSecret = {+ encode(message: DataSourceExternalSecret, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.secretType !== 0) {+ writer.uint32(8).int32(message.secretType);+ }+ if (message.url !== "") {+ writer.uint32(18).string(message.url);+ }+ if (message.authType !== 0) {+ writer.uint32(24).int32(message.authType);+ }+ if (message.appRole !== undefined) {+ DataSourceExternalSecret_AppRoleAuthOption.encode(message.appRole, writer.uint32(34).fork()).ldelim();+ }+ if (message.token !== undefined) {+ writer.uint32(42).string(message.token);+ }+ if (message.engineName !== "") {+ writer.uint32(50).string(message.engineName);+ }+ if (message.secretName !== "") {+ writer.uint32(58).string(message.secretName);+ }+ if (message.keyName !== "") {+ writer.uint32(66).string(message.keyName);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DataSourceExternalSecret {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataSourceExternalSecret();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.secretType = reader.int32() as any;+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.url = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.authType = reader.int32() as any;+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.appRole = DataSourceExternalSecret_AppRoleAuthOption.decode(reader, reader.uint32());+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.token = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.engineName = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.secretName = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.keyName = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataSourceExternalSecret {+ return {+ secretType: isSet(object.secretType) ? dataSourceExternalSecret_SecretTypeFromJSON(object.secretType) : 0,+ url: isSet(object.url) ? globalThis.String(object.url) : "",+ authType: isSet(object.authType) ? dataSourceExternalSecret_AuthTypeFromJSON(object.authType) : 0,+ appRole: isSet(object.appRole) ? DataSourceExternalSecret_AppRoleAuthOption.fromJSON(object.appRole) : undefined,+ token: isSet(object.token) ? globalThis.String(object.token) : undefined,+ engineName: isSet(object.engineName) ? globalThis.String(object.engineName) : "",+ secretName: isSet(object.secretName) ? globalThis.String(object.secretName) : "",+ keyName: isSet(object.keyName) ? globalThis.String(object.keyName) : "",+ };+ },++ toJSON(message: DataSourceExternalSecret): unknown {+ const obj: any = {};+ if (message.secretType !== 0) {+ obj.secretType = dataSourceExternalSecret_SecretTypeToJSON(message.secretType);+ }+ if (message.url !== "") {+ obj.url = message.url;+ }+ if (message.authType !== 0) {+ obj.authType = dataSourceExternalSecret_AuthTypeToJSON(message.authType);+ }+ if (message.appRole !== undefined) {+ obj.appRole = DataSourceExternalSecret_AppRoleAuthOption.toJSON(message.appRole);+ }+ if (message.token !== undefined) {+ obj.token = message.token;+ }+ if (message.engineName !== "") {+ obj.engineName = message.engineName;+ }+ if (message.secretName !== "") {+ obj.secretName = message.secretName;+ }+ if (message.keyName !== "") {+ obj.keyName = message.keyName;+ }+ return obj;+ },++ create(base?: DeepPartial<DataSourceExternalSecret>): DataSourceExternalSecret {+ return DataSourceExternalSecret.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<DataSourceExternalSecret>): DataSourceExternalSecret {+ const message = createBaseDataSourceExternalSecret();+ message.secretType = object.secretType ?? 0;+ message.url = object.url ?? "";+ message.authType = object.authType ?? 0;+ message.appRole = (object.appRole !== undefined && object.appRole !== null)+ ? DataSourceExternalSecret_AppRoleAuthOption.fromPartial(object.appRole)+ : undefined;+ message.token = object.token ?? undefined;+ message.engineName = object.engineName ?? "";+ message.secretName = object.secretName ?? "";+ message.keyName = object.keyName ?? "";+ return message;+ },+};++function createBaseDataSourceExternalSecret_AppRoleAuthOption(): DataSourceExternalSecret_AppRoleAuthOption {+ return { roleId: "", secretId: "" };}+export const DataSourceExternalSecret_AppRoleAuthOption = {+ encode(message: DataSourceExternalSecret_AppRoleAuthOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.roleId !== "") {+ writer.uint32(10).string(message.roleId);+ }+ if (message.secretId !== "") {+ writer.uint32(18).string(message.secretId);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DataSourceExternalSecret_AppRoleAuthOption {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataSourceExternalSecret_AppRoleAuthOption();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.roleId = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.secretId = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataSourceExternalSecret_AppRoleAuthOption {+ return {+ roleId: isSet(object.roleId) ? globalThis.String(object.roleId) : "",+ secretId: isSet(object.secretId) ? globalThis.String(object.secretId) : "",+ };+ },++ toJSON(message: DataSourceExternalSecret_AppRoleAuthOption): unknown {+ const obj: any = {};+ if (message.roleId !== "") {+ obj.roleId = message.roleId;+ }+ if (message.secretId !== "") {+ obj.secretId = message.secretId;+ }+ return obj;+ },++ create(base?: DeepPartial<DataSourceExternalSecret_AppRoleAuthOption>): DataSourceExternalSecret_AppRoleAuthOption {+ return DataSourceExternalSecret_AppRoleAuthOption.fromPartial(base ?? {});+ },+ fromPartial(+ object: DeepPartial<DataSourceExternalSecret_AppRoleAuthOption>,+ ): DataSourceExternalSecret_AppRoleAuthOption {+ const message = createBaseDataSourceExternalSecret_AppRoleAuthOption();+ message.roleId = object.roleId ?? "";+ message.secretId = object.secretId ?? "";+ return message;+ },+};+function createBaseDataSourceOptions(): DataSourceOptions {return {srv: false,@@ -44,6 +390,7 @@ function createBaseDataSourceOptions(): DataSourceOptions {sshObfuscatedPassword: "",sshObfuscatedPrivateKey: "",authenticationPrivateKeyObfuscated: "",+ externalSecret: undefined,};}@@ -79,6 +426,9 @@ export const DataSourceOptions = {if (message.authenticationPrivateKeyObfuscated !== "") {writer.uint32(82).string(message.authenticationPrivateKeyObfuscated);}+ if (message.externalSecret !== undefined) {+ DataSourceExternalSecret.encode(message.externalSecret, writer.uint32(90).fork()).ldelim();+ }return writer;},@@ -159,6 +509,13 @@ export const DataSourceOptions = {message.authenticationPrivateKeyObfuscated = reader.string();continue;+ case 11:+ if (tag !== 90) {+ break;+ }++ message.externalSecret = DataSourceExternalSecret.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -186,6 +543,9 @@ export const DataSourceOptions = {authenticationPrivateKeyObfuscated: isSet(object.authenticationPrivateKeyObfuscated)? globalThis.String(object.authenticationPrivateKeyObfuscated): "",+ externalSecret: isSet(object.externalSecret)+ ? DataSourceExternalSecret.fromJSON(object.externalSecret)+ : undefined,};},@@ -221,6 +581,9 @@ export const DataSourceOptions = {if (message.authenticationPrivateKeyObfuscated !== "") {obj.authenticationPrivateKeyObfuscated = message.authenticationPrivateKeyObfuscated;}+ if (message.externalSecret !== undefined) {+ obj.externalSecret = DataSourceExternalSecret.toJSON(message.externalSecret);+ }return obj;},@@ -239,6 +602,9 @@ export const DataSourceOptions = {message.sshObfuscatedPassword = object.sshObfuscatedPassword ?? "";message.sshObfuscatedPrivateKey = object.sshObfuscatedPrivateKey ?? "";message.authenticationPrivateKeyObfuscated = object.authenticationPrivateKeyObfuscated ?? "";+ message.externalSecret = (object.externalSecret !== undefined && object.externalSecret !== null)+ ? DataSourceExternalSecret.fromPartial(object.externalSecret)+ : undefined;return message;},};diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.tsindex 1a28462e94..30ed03f758 100644--- a/frontend/src/types/proto/v1/instance_service.ts+++ b/frontend/src/types/proto/v1/instance_service.ts@@ -276,6 +276,100 @@ export interface Instance {options: InstanceOptions | undefined;}+export interface DataSourceExternalSecret {+ secretType: DataSourceExternalSecret_SecretType;+ url: string;+ authType: DataSourceExternalSecret_AuthType;+ appRole?: DataSourceExternalSecret_AppRoleAuthOption | undefined;+ token?:+ | string+ | undefined;+ /** engine name is the name for secret engine. */+ engineName: string;+ /** the secret name in the engine to store the password. */+ secretName: string;+ /** the key name for the password. */+ keyName: string;+}++export enum DataSourceExternalSecret_SecretType {+ SAECRET_TYPE_UNSPECIFIED = 0,+ VAULT_KV_V2 = 1,+ UNRECOGNIZED = -1,+}++export function dataSourceExternalSecret_SecretTypeFromJSON(object: any): DataSourceExternalSecret_SecretType {+ switch (object) {+ case 0:+ case "SAECRET_TYPE_UNSPECIFIED":+ return DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED;+ case 1:+ case "VAULT_KV_V2":+ return DataSourceExternalSecret_SecretType.VAULT_KV_V2;+ case -1:+ case "UNRECOGNIZED":+ default:+ return DataSourceExternalSecret_SecretType.UNRECOGNIZED;+ }+}++export function dataSourceExternalSecret_SecretTypeToJSON(object: DataSourceExternalSecret_SecretType): string {+ switch (object) {+ case DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED:+ return "SAECRET_TYPE_UNSPECIFIED";+ case DataSourceExternalSecret_SecretType.VAULT_KV_V2:+ return "VAULT_KV_V2";+ case DataSourceExternalSecret_SecretType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum DataSourceExternalSecret_AuthType {+ AUTH_TYPE_UNSPECIFIED = 0,+ TOKEN = 1,+ APP_ROLE = 2,+ UNRECOGNIZED = -1,+}++export function dataSourceExternalSecret_AuthTypeFromJSON(object: any): DataSourceExternalSecret_AuthType {+ switch (object) {+ case 0:+ case "AUTH_TYPE_UNSPECIFIED":+ return DataSourceExternalSecret_AuthType.AUTH_TYPE_UNSPECIFIED;+ case 1:+ case "TOKEN":+ return DataSourceExternalSecret_AuthType.TOKEN;+ case 2:+ case "APP_ROLE":+ return DataSourceExternalSecret_AuthType.APP_ROLE;+ case -1:+ case "UNRECOGNIZED":+ default:+ return DataSourceExternalSecret_AuthType.UNRECOGNIZED;+ }+}++export function dataSourceExternalSecret_AuthTypeToJSON(object: DataSourceExternalSecret_AuthType): string {+ switch (object) {+ case DataSourceExternalSecret_AuthType.AUTH_TYPE_UNSPECIFIED:+ return "AUTH_TYPE_UNSPECIFIED";+ case DataSourceExternalSecret_AuthType.TOKEN:+ return "TOKEN";+ case DataSourceExternalSecret_AuthType.APP_ROLE:+ return "APP_ROLE";+ case DataSourceExternalSecret_AuthType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++/** app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle */+export interface DataSourceExternalSecret_AppRoleAuthOption {+ roleId: string;+ secretId: string;+}+export interface DataSource {id: string;type: DataSourceType;@@ -318,6 +412,7 @@ export interface DataSource {* Used for authentication when connecting to the data source.*/authenticationPrivateKey: string;+ externalSecret: DataSourceExternalSecret | undefined;}export interface InstanceResource {@@ -1848,6 +1943,257 @@ export const Instance = {},};+function createBaseDataSourceExternalSecret(): DataSourceExternalSecret {+ return {+ secretType: 0,+ url: "",+ authType: 0,+ appRole: undefined,+ token: undefined,+ engineName: "",+ secretName: "",+ keyName: "",+ };+}++export const DataSourceExternalSecret = {+ encode(message: DataSourceExternalSecret, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.secretType !== 0) {+ writer.uint32(8).int32(message.secretType);+ }+ if (message.url !== "") {+ writer.uint32(18).string(message.url);+ }+ if (message.authType !== 0) {+ writer.uint32(24).int32(message.authType);+ }+ if (message.appRole !== undefined) {+ DataSourceExternalSecret_AppRoleAuthOption.encode(message.appRole, writer.uint32(34).fork()).ldelim();+ }+ if (message.token !== undefined) {+ writer.uint32(42).string(message.token);+ }+ if (message.engineName !== "") {+ writer.uint32(50).string(message.engineName);+ }+ if (message.secretName !== "") {+ writer.uint32(58).string(message.secretName);+ }+ if (message.keyName !== "") {+ writer.uint32(66).string(message.keyName);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DataSourceExternalSecret {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataSourceExternalSecret();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.secretType = reader.int32() as any;+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.url = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.authType = reader.int32() as any;+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.appRole = DataSourceExternalSecret_AppRoleAuthOption.decode(reader, reader.uint32());+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.token = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.engineName = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.secretName = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.keyName = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataSourceExternalSecret {+ return {+ secretType: isSet(object.secretType) ? dataSourceExternalSecret_SecretTypeFromJSON(object.secretType) : 0,+ url: isSet(object.url) ? globalThis.String(object.url) : "",+ authType: isSet(object.authType) ? dataSourceExternalSecret_AuthTypeFromJSON(object.authType) : 0,+ appRole: isSet(object.appRole) ? DataSourceExternalSecret_AppRoleAuthOption.fromJSON(object.appRole) : undefined,+ token: isSet(object.token) ? globalThis.String(object.token) : undefined,+ engineName: isSet(object.engineName) ? globalThis.String(object.engineName) : "",+ secretName: isSet(object.secretName) ? globalThis.String(object.secretName) : "",+ keyName: isSet(object.keyName) ? globalThis.String(object.keyName) : "",+ };+ },++ toJSON(message: DataSourceExternalSecret): unknown {+ const obj: any = {};+ if (message.secretType !== 0) {+ obj.secretType = dataSourceExternalSecret_SecretTypeToJSON(message.secretType);+ }+ if (message.url !== "") {+ obj.url = message.url;+ }+ if (message.authType !== 0) {+ obj.authType = dataSourceExternalSecret_AuthTypeToJSON(message.authType);+ }+ if (message.appRole !== undefined) {+ obj.appRole = DataSourceExternalSecret_AppRoleAuthOption.toJSON(message.appRole);+ }+ if (message.token !== undefined) {+ obj.token = message.token;+ }+ if (message.engineName !== "") {+ obj.engineName = message.engineName;+ }+ if (message.secretName !== "") {+ obj.secretName = message.secretName;+ }+ if (message.keyName !== "") {+ obj.keyName = message.keyName;+ }+ return obj;+ },++ create(base?: DeepPartial<DataSourceExternalSecret>): DataSourceExternalSecret {+ return DataSourceExternalSecret.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<DataSourceExternalSecret>): DataSourceExternalSecret {+ const message = createBaseDataSourceExternalSecret();+ message.secretType = object.secretType ?? 0;+ message.url = object.url ?? "";+ message.authType = object.authType ?? 0;+ message.appRole = (object.appRole !== undefined && object.appRole !== null)+ ? DataSourceExternalSecret_AppRoleAuthOption.fromPartial(object.appRole)+ : undefined;+ message.token = object.token ?? undefined;+ message.engineName = object.engineName ?? "";+ message.secretName = object.secretName ?? "";+ message.keyName = object.keyName ?? "";+ return message;+ },+};++function createBaseDataSourceExternalSecret_AppRoleAuthOption(): DataSourceExternalSecret_AppRoleAuthOption {+ return { roleId: "", secretId: "" };+}++export const DataSourceExternalSecret_AppRoleAuthOption = {+ encode(message: DataSourceExternalSecret_AppRoleAuthOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.roleId !== "") {+ writer.uint32(10).string(message.roleId);+ }+ if (message.secretId !== "") {+ writer.uint32(18).string(message.secretId);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DataSourceExternalSecret_AppRoleAuthOption {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataSourceExternalSecret_AppRoleAuthOption();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.roleId = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.secretId = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataSourceExternalSecret_AppRoleAuthOption {+ return {+ roleId: isSet(object.roleId) ? globalThis.String(object.roleId) : "",+ secretId: isSet(object.secretId) ? globalThis.String(object.secretId) : "",+ };+ },++ toJSON(message: DataSourceExternalSecret_AppRoleAuthOption): unknown {+ const obj: any = {};+ if (message.roleId !== "") {+ obj.roleId = message.roleId;+ }+ if (message.secretId !== "") {+ obj.secretId = message.secretId;+ }+ return obj;+ },++ create(base?: DeepPartial<DataSourceExternalSecret_AppRoleAuthOption>): DataSourceExternalSecret_AppRoleAuthOption {+ return DataSourceExternalSecret_AppRoleAuthOption.fromPartial(base ?? {});+ },+ fromPartial(+ object: DeepPartial<DataSourceExternalSecret_AppRoleAuthOption>,+ ): DataSourceExternalSecret_AppRoleAuthOption {+ const message = createBaseDataSourceExternalSecret_AppRoleAuthOption();+ message.roleId = object.roleId ?? "";+ message.secretId = object.secretId ?? "";+ return message;+ },+};+function createBaseDataSource(): DataSource {return {id: "",@@ -1870,6 +2216,7 @@ function createBaseDataSource(): DataSource {sshPassword: "",sshPrivateKey: "",authenticationPrivateKey: "",+ externalSecret: undefined,};}@@ -1935,6 +2282,9 @@ export const DataSource = {if (message.authenticationPrivateKey !== "") {writer.uint32(162).string(message.authenticationPrivateKey);}+ if (message.externalSecret !== undefined) {+ DataSourceExternalSecret.encode(message.externalSecret, writer.uint32(170).fork()).ldelim();+ }return writer;},@@ -2085,6 +2435,13 @@ export const DataSource = {message.authenticationPrivateKey = reader.string();continue;+ case 21:+ if (tag !== 170) {+ break;+ }++ message.externalSecret = DataSourceExternalSecret.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -2120,6 +2477,9 @@ export const DataSource = {authenticationPrivateKey: isSet(object.authenticationPrivateKey)? globalThis.String(object.authenticationPrivateKey): "",+ externalSecret: isSet(object.externalSecret)+ ? DataSourceExternalSecret.fromJSON(object.externalSecret)+ : undefined,};},@@ -2185,6 +2545,9 @@ export const DataSource = {if (message.authenticationPrivateKey !== "") {obj.authenticationPrivateKey = message.authenticationPrivateKey;}+ if (message.externalSecret !== undefined) {+ obj.externalSecret = DataSourceExternalSecret.toJSON(message.externalSecret);+ }return obj;},@@ -2213,6 +2576,9 @@ export const DataSource = {message.sshPassword = object.sshPassword ?? "";message.sshPrivateKey = object.sshPrivateKey ?? "";message.authenticationPrivateKey = object.authenticationPrivateKey ?? "";+ message.externalSecret = (object.externalSecret !== undefined && object.externalSecret !== null)+ ? DataSourceExternalSecret.fromPartial(object.externalSecret)+ : undefined;return message;},};diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 0510abec2c..dfd193d555 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -77,8 +77,13 @@- [VcsType](#bytebase-store-VcsType)- [store/data_source.proto](#store_data_source-proto)+ - [DataSourceExternalSecret](#bytebase-store-DataSourceExternalSecret)+ - [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-store-DataSourceExternalSecret-AppRoleAuthOption)- [DataSourceOptions](#bytebase-store-DataSourceOptions)+ - [DataSourceExternalSecret.AuthType](#bytebase-store-DataSourceExternalSecret-AuthType)+ - [DataSourceExternalSecret.SecretType](#bytebase-store-DataSourceExternalSecret-SecretType)+- [store/idp.proto](#store_idp-proto)- [FieldMapping](#bytebase-store-FieldMapping)- [IdentityProviderConfig](#bytebase-store-IdentityProviderConfig)@@ -1316,6 +1321,44 @@ Used internally for obfuscating the page token.+<a name="bytebase-store-DataSourceExternalSecret"></a>++### DataSourceExternalSecret++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| secret_type | [DataSourceExternalSecret.SecretType](#bytebase-store-DataSourceExternalSecret-SecretType) | | |+| url | [string](#string) | | |+| auth_type | [DataSourceExternalSecret.AuthType](#bytebase-store-DataSourceExternalSecret-AuthType) | | |+| app_role | [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-store-DataSourceExternalSecret-AppRoleAuthOption) | | |+| token | [string](#string) | | |+| engine_name | [string](#string) | | engine name is the name for secret engine. |+| secret_name | [string](#string) | | the secret name in the engine to store the password. |+| key_name | [string](#string) | | the key name for the password. |+++++++<a name="bytebase-store-DataSourceExternalSecret-AppRoleAuthOption"></a>++### DataSourceExternalSecret.AppRoleAuthOption+app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| role_id | [string](#string) | | |+| secret_id | [string](#string) | | |++++++<a name="bytebase-store-DataSourceOptions"></a>### DataSourceOptions@@ -1334,6 +1377,7 @@ Used internally for obfuscating the page token.| ssh_obfuscated_password | [string](#string) | | The password to login the server. If it's empty string, no password is required. || ssh_obfuscated_private_key | [string](#string) | | The private key to login the server. If it's empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK"). || authentication_private_key_obfuscated | [string](#string) | | PKCS#8 private key in PEM format. If it's empty string, no private key is required. Used for authentication when connecting to the data source. |+| external_secret | [DataSourceExternalSecret](#bytebase-store-DataSourceExternalSecret) | | |@@ -1341,6 +1385,31 @@ Used internally for obfuscating the page token.++<a name="bytebase-store-DataSourceExternalSecret-AuthType"></a>++### DataSourceExternalSecret.AuthType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| AUTH_TYPE_UNSPECIFIED | 0 | |+| TOKEN | 1 | |+| APP_ROLE | 2 | |++++<a name="bytebase-store-DataSourceExternalSecret-SecretType"></a>++### DataSourceExternalSecret.SecretType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| SAECRET_TYPE_UNSPECIFIED | 0 | |+| VAULT_KV_V2 | 1 | |++diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 79aed002b3..ec918b65ec 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -472,11 +472,27 @@<a href="#store%2fdata_source.proto">store/data_source.proto</a><ul>+ <li>+ <a href="#bytebase.store.DataSourceExternalSecret"><span class="badge">M</span>DataSourceExternalSecret</a>+ </li>++ <li>+ <a href="#bytebase.store.DataSourceExternalSecret.AppRoleAuthOption"><span class="badge">M</span>DataSourceExternalSecret.AppRoleAuthOption</a>+ </li>+<li><a href="#bytebase.store.DataSourceOptions"><span class="badge">M</span>DataSourceOptions</a></li>+ <li>+ <a href="#bytebase.store.DataSourceExternalSecret.AuthType"><span class="badge">E</span>DataSourceExternalSecret.AuthType</a>+ </li>++ <li>+ <a href="#bytebase.store.DataSourceExternalSecret.SecretType"><span class="badge">E</span>DataSourceExternalSecret.SecretType</a>+ </li>+</ul>@@ -3652,6 +3668,110 @@ Example: projects/project-id/branches/branch-id. </p></td><p></p>+ <h3 id="bytebase.store.DataSourceExternalSecret">DataSourceExternalSecret</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>secret_type</td>+ <td><a href="#bytebase.store.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>auth_type</td>+ <td><a href="#bytebase.store.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>app_role</td>+ <td><a href="#bytebase.store.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>engine name is the name for secret engine. </p></td>+ </tr>++ <tr>+ <td>secret_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the secret name in the engine to store the password. </p></td>+ </tr>++ <tr>+ <td>key_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the key name for the password. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</h3>+ <p>app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>role_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>secret_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.store.DataSourceOptions">DataSourceOptions</h3><p></p>@@ -3734,6 +3854,13 @@ The hostname of the SSH server agent. </p></td>Used for authentication when connecting to the data source. </p></td></tr>+ <tr>+ <td>external_secret</td>+ <td><a href="#bytebase.store.DataSourceExternalSecret">DataSourceExternalSecret</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -3743,6 +3870,58 @@ Used for authentication when connecting to the data source. </p></td>+ <h3 id="bytebase.store.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>AUTH_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TOKEN</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>APP_ROLE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.store.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SAECRET_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>VAULT_KV_V2</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex ceafd010ae..3e891460ac 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -97,6 +97,8 @@- [BatchSyncInstanceResponse](#bytebase-v1-BatchSyncInstanceResponse)- [CreateInstanceRequest](#bytebase-v1-CreateInstanceRequest)- [DataSource](#bytebase-v1-DataSource)+ - [DataSourceExternalSecret](#bytebase-v1-DataSourceExternalSecret)+ - [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption)- [DeleteInstanceRequest](#bytebase-v1-DeleteInstanceRequest)- [GetInstanceRequest](#bytebase-v1-GetInstanceRequest)- [Instance](#bytebase-v1-Instance)@@ -114,6 +116,8 @@- [UpdateDataSourceRequest](#bytebase-v1-UpdateDataSourceRequest)- [UpdateInstanceRequest](#bytebase-v1-UpdateInstanceRequest)+ - [DataSourceExternalSecret.AuthType](#bytebase-v1-DataSourceExternalSecret-AuthType)+ - [DataSourceExternalSecret.SecretType](#bytebase-v1-DataSourceExternalSecret-SecretType)- [DataSourceType](#bytebase-v1-DataSourceType)- [InstanceService](#bytebase-v1-InstanceService)@@ -1988,6 +1992,45 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. || ssh_password | [string](#string) | | The password to login the server. If it's empty string, no password is required. || ssh_private_key | [string](#string) | | The private key to login the server. If it's empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK"). || authentication_private_key | [string](#string) | | PKCS#8 private key in PEM format. If it's empty string, no private key is required. Used for authentication when connecting to the data source. |+| external_secret | [DataSourceExternalSecret](#bytebase-v1-DataSourceExternalSecret) | | |+++++++<a name="bytebase-v1-DataSourceExternalSecret"></a>++### DataSourceExternalSecret++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| secret_type | [DataSourceExternalSecret.SecretType](#bytebase-v1-DataSourceExternalSecret-SecretType) | | |+| url | [string](#string) | | |+| auth_type | [DataSourceExternalSecret.AuthType](#bytebase-v1-DataSourceExternalSecret-AuthType) | | |+| app_role | [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption) | | |+| token | [string](#string) | | |+| engine_name | [string](#string) | | engine name is the name for secret engine. |+| secret_name | [string](#string) | | the secret name in the engine to store the password. |+| key_name | [string](#string) | | the key name for the password. |+++++++<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption"></a>++### DataSourceExternalSecret.AppRoleAuthOption+app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| role_id | [string](#string) | | |+| secret_id | [string](#string) | | |@@ -2262,6 +2305,31 @@ The instance's `name` field is used to identify the instance to update. Form+<a name="bytebase-v1-DataSourceExternalSecret-AuthType"></a>++### DataSourceExternalSecret.AuthType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| AUTH_TYPE_UNSPECIFIED | 0 | |+| TOKEN | 1 | |+| APP_ROLE | 2 | |++++<a name="bytebase-v1-DataSourceExternalSecret-SecretType"></a>++### DataSourceExternalSecret.SecretType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| SAECRET_TYPE_UNSPECIFIED | 0 | |+| VAULT_KV_V2 | 1 | |+++<a name="bytebase-v1-DataSourceType"></a>### DataSourceTypediff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 65dc3a9341..b0dc5b3e44 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -540,6 +540,14 @@<a href="#bytebase.v1.DataSource"><span class="badge">M</span>DataSource</a></li>+ <li>+ <a href="#bytebase.v1.DataSourceExternalSecret"><span class="badge">M</span>DataSourceExternalSecret</a>+ </li>++ <li>+ <a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption"><span class="badge">M</span>DataSourceExternalSecret.AppRoleAuthOption</a>+ </li>+<li><a href="#bytebase.v1.DeleteInstanceRequest"><span class="badge">M</span>DeleteInstanceRequest</a></li>@@ -605,6 +613,14 @@</li>+ <li>+ <a href="#bytebase.v1.DataSourceExternalSecret.AuthType"><span class="badge">E</span>DataSourceExternalSecret.AuthType</a>+ </li>++ <li>+ <a href="#bytebase.v1.DataSourceExternalSecret.SecretType"><span class="badge">E</span>DataSourceExternalSecret.SecretType</a>+ </li>+<li><a href="#bytebase.v1.DataSourceType"><span class="badge">E</span>DataSourceType</a></li>@@ -6216,6 +6232,117 @@ Required. </p></td>Used for authentication when connecting to the data source. </p></td></tr>+ <tr>+ <td>external_secret</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret">DataSourceExternalSecret</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DataSourceExternalSecret">DataSourceExternalSecret</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>secret_type</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>auth_type</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>app_role</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>engine name is the name for secret engine. </p></td>+ </tr>++ <tr>+ <td>secret_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the secret name in the engine to store the password. </p></td>+ </tr>++ <tr>+ <td>key_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the key name for the password. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</h3>+ <p>app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>role_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>secret_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -6809,6 +6936,58 @@ Format: instances/{instance} </p></td>+ <h3 id="bytebase.v1.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>AUTH_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TOKEN</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>APP_ROLE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SAECRET_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>VAULT_KV_V2</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+<h3 id="bytebase.v1.DataSourceType">DataSourceType</h3><p></p><table class="enum-table">diff --git a/proto/generated-go/store/data_source.pb.go b/proto/generated-go/store/data_source.pb.goindex b2359189c2..3c641f1ca7 100644--- a/proto/generated-go/store/data_source.pb.go+++ b/proto/generated-go/store/data_source.pb.go@@ -20,6 +20,233 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))+type DataSourceExternalSecret_SecretType int32++const (+ DataSourceExternalSecret_SAECRET_TYPE_UNSPECIFIED DataSourceExternalSecret_SecretType = 0+ DataSourceExternalSecret_VAULT_KV_V2 DataSourceExternalSecret_SecretType = 1+)++// Enum value maps for DataSourceExternalSecret_SecretType.+var (+ DataSourceExternalSecret_SecretType_name = map[int32]string{+ 0: "SAECRET_TYPE_UNSPECIFIED",+ 1: "VAULT_KV_V2",+ }+ DataSourceExternalSecret_SecretType_value = map[string]int32{+ "SAECRET_TYPE_UNSPECIFIED": 0,+ "VAULT_KV_V2": 1,+ }+)++func (x DataSourceExternalSecret_SecretType) Enum() *DataSourceExternalSecret_SecretType {+ p := new(DataSourceExternalSecret_SecretType)+ *p = x+ return p+}++func (x DataSourceExternalSecret_SecretType) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (DataSourceExternalSecret_SecretType) Descriptor() protoreflect.EnumDescriptor {+ return file_store_data_source_proto_enumTypes[0].Descriptor()+}++func (DataSourceExternalSecret_SecretType) Type() protoreflect.EnumType {+ return &file_store_data_source_proto_enumTypes[0]+}++func (x DataSourceExternalSecret_SecretType) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use DataSourceExternalSecret_SecretType.Descriptor instead.+func (DataSourceExternalSecret_SecretType) EnumDescriptor() ([]byte, []int) {+ return file_store_data_source_proto_rawDescGZIP(), []int{0, 0}+}++type DataSourceExternalSecret_AuthType int32++const (+ DataSourceExternalSecret_AUTH_TYPE_UNSPECIFIED DataSourceExternalSecret_AuthType = 0+ DataSourceExternalSecret_TOKEN DataSourceExternalSecret_AuthType = 1+ DataSourceExternalSecret_APP_ROLE DataSourceExternalSecret_AuthType = 2+)++// Enum value maps for DataSourceExternalSecret_AuthType.+var (+ DataSourceExternalSecret_AuthType_name = map[int32]string{+ 0: "AUTH_TYPE_UNSPECIFIED",+ 1: "TOKEN",+ 2: "APP_ROLE",+ }+ DataSourceExternalSecret_AuthType_value = map[string]int32{+ "AUTH_TYPE_UNSPECIFIED": 0,+ "TOKEN": 1,+ "APP_ROLE": 2,+ }+)++func (x DataSourceExternalSecret_AuthType) Enum() *DataSourceExternalSecret_AuthType {+ p := new(DataSourceExternalSecret_AuthType)+ *p = x+ return p+}++func (x DataSourceExternalSecret_AuthType) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (DataSourceExternalSecret_AuthType) Descriptor() protoreflect.EnumDescriptor {+ return file_store_data_source_proto_enumTypes[1].Descriptor()+}++func (DataSourceExternalSecret_AuthType) Type() protoreflect.EnumType {+ return &file_store_data_source_proto_enumTypes[1]+}++func (x DataSourceExternalSecret_AuthType) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use DataSourceExternalSecret_AuthType.Descriptor instead.+func (DataSourceExternalSecret_AuthType) EnumDescriptor() ([]byte, []int) {+ return file_store_data_source_proto_rawDescGZIP(), []int{0, 1}+}++type DataSourceExternalSecret struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ SecretType DataSourceExternalSecret_SecretType `protobuf:"varint,1,opt,name=secret_type,json=secretType,proto3,enum=bytebase.store.DataSourceExternalSecret_SecretType" json:"secret_type,omitempty"`+ Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`+ AuthType DataSourceExternalSecret_AuthType `protobuf:"varint,3,opt,name=auth_type,json=authType,proto3,enum=bytebase.store.DataSourceExternalSecret_AuthType" json:"auth_type,omitempty"`+ // Types that are assignable to AuthOption:+ //+ // *DataSourceExternalSecret_AppRole+ // *DataSourceExternalSecret_Token+ AuthOption isDataSourceExternalSecret_AuthOption `protobuf_oneof:"auth_option"`+ // engine name is the name for secret engine.+ EngineName string `protobuf:"bytes,6,opt,name=engine_name,json=engineName,proto3" json:"engine_name,omitempty"`+ // the secret name in the engine to store the password.+ SecretName string `protobuf:"bytes,7,opt,name=secret_name,json=secretName,proto3" json:"secret_name,omitempty"`+ // the key name for the password.+ KeyName string `protobuf:"bytes,8,opt,name=key_name,json=keyName,proto3" json:"key_name,omitempty"`+}++func (x *DataSourceExternalSecret) Reset() {+ *x = DataSourceExternalSecret{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_data_source_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataSourceExternalSecret) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataSourceExternalSecret) ProtoMessage() {}++func (x *DataSourceExternalSecret) ProtoReflect() protoreflect.Message {+ mi := &file_store_data_source_proto_msgTypes[0]+ 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 DataSourceExternalSecret.ProtoReflect.Descriptor instead.+func (*DataSourceExternalSecret) Descriptor() ([]byte, []int) {+ return file_store_data_source_proto_rawDescGZIP(), []int{0}+}++func (x *DataSourceExternalSecret) GetSecretType() DataSourceExternalSecret_SecretType {+ if x != nil {+ return x.SecretType+ }+ return DataSourceExternalSecret_SAECRET_TYPE_UNSPECIFIED+}++func (x *DataSourceExternalSecret) GetUrl() string {+ if x != nil {+ return x.Url+ }+ return ""+}++func (x *DataSourceExternalSecret) GetAuthType() DataSourceExternalSecret_AuthType {+ if x != nil {+ return x.AuthType+ }+ return DataSourceExternalSecret_AUTH_TYPE_UNSPECIFIED+}++func (m *DataSourceExternalSecret) GetAuthOption() isDataSourceExternalSecret_AuthOption {+ if m != nil {+ return m.AuthOption+ }+ return nil+}++func (x *DataSourceExternalSecret) GetAppRole() *DataSourceExternalSecret_AppRoleAuthOption {+ if x, ok := x.GetAuthOption().(*DataSourceExternalSecret_AppRole); ok {+ return x.AppRole+ }+ return nil+}++func (x *DataSourceExternalSecret) GetToken() string {+ if x, ok := x.GetAuthOption().(*DataSourceExternalSecret_Token); ok {+ return x.Token+ }+ return ""+}++func (x *DataSourceExternalSecret) GetEngineName() string {+ if x != nil {+ return x.EngineName+ }+ return ""+}++func (x *DataSourceExternalSecret) GetSecretName() string {+ if x != nil {+ return x.SecretName+ }+ return ""+}++func (x *DataSourceExternalSecret) GetKeyName() string {+ if x != nil {+ return x.KeyName+ }+ return ""+}++type isDataSourceExternalSecret_AuthOption interface {+ isDataSourceExternalSecret_AuthOption()+}++type DataSourceExternalSecret_AppRole struct {+ AppRole *DataSourceExternalSecret_AppRoleAuthOption `protobuf:"bytes,4,opt,name=app_role,json=appRole,proto3,oneof"`+}++type DataSourceExternalSecret_Token struct {+ Token string `protobuf:"bytes,5,opt,name=token,proto3,oneof"`+}++func (*DataSourceExternalSecret_AppRole) isDataSourceExternalSecret_AuthOption() {}++func (*DataSourceExternalSecret_Token) isDataSourceExternalSecret_AuthOption() {}+type DataSourceOptions struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -45,13 +272,14 @@ type DataSourceOptions struct {SshObfuscatedPrivateKey string `protobuf:"bytes,9,opt,name=ssh_obfuscated_private_key,json=sshObfuscatedPrivateKey,proto3" json:"ssh_obfuscated_private_key,omitempty"`// PKCS#8 private key in PEM format. If it's empty string, no private key is required.// Used for authentication when connecting to the data source.- AuthenticationPrivateKeyObfuscated string `protobuf:"bytes,10,opt,name=authentication_private_key_obfuscated,json=authenticationPrivateKeyObfuscated,proto3" json:"authentication_private_key_obfuscated,omitempty"`+ AuthenticationPrivateKeyObfuscated string `protobuf:"bytes,10,opt,name=authentication_private_key_obfuscated,json=authenticationPrivateKeyObfuscated,proto3" json:"authentication_private_key_obfuscated,omitempty"`+ ExternalSecret *DataSourceExternalSecret `protobuf:"bytes,11,opt,name=external_secret,json=externalSecret,proto3" json:"external_secret,omitempty"`}func (x *DataSourceOptions) Reset() {*x = DataSourceOptions{}if protoimpl.UnsafeEnabled {- mi := &file_store_data_source_proto_msgTypes[0]+ mi := &file_store_data_source_proto_msgTypes[1]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -64,7 +292,7 @@ func (x *DataSourceOptions) String() string {func (*DataSourceOptions) ProtoMessage() {}func (x *DataSourceOptions) ProtoReflect() protoreflect.Message {- mi := &file_store_data_source_proto_msgTypes[0]+ mi := &file_store_data_source_proto_msgTypes[1]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -77,7 +305,7 @@ func (x *DataSourceOptions) ProtoReflect() protoreflect.Message {// Deprecated: Use DataSourceOptions.ProtoReflect.Descriptor instead.func (*DataSourceOptions) Descriptor() ([]byte, []int) {- return file_store_data_source_proto_rawDescGZIP(), []int{0}+ return file_store_data_source_proto_rawDescGZIP(), []int{1}}func (x *DataSourceOptions) GetSrv() bool {@@ -150,41 +378,149 @@ func (x *DataSourceOptions) GetAuthenticationPrivateKeyObfuscated() string {return ""}+func (x *DataSourceOptions) GetExternalSecret() *DataSourceExternalSecret {+ if x != nil {+ return x.ExternalSecret+ }+ return nil+}++// app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle+type DataSourceExternalSecret_AppRoleAuthOption struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`+ SecretId string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`+}++func (x *DataSourceExternalSecret_AppRoleAuthOption) Reset() {+ *x = DataSourceExternalSecret_AppRoleAuthOption{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_data_source_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataSourceExternalSecret_AppRoleAuthOption) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataSourceExternalSecret_AppRoleAuthOption) ProtoMessage() {}++func (x *DataSourceExternalSecret_AppRoleAuthOption) ProtoReflect() protoreflect.Message {+ mi := &file_store_data_source_proto_msgTypes[2]+ 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 DataSourceExternalSecret_AppRoleAuthOption.ProtoReflect.Descriptor instead.+func (*DataSourceExternalSecret_AppRoleAuthOption) Descriptor() ([]byte, []int) {+ return file_store_data_source_proto_rawDescGZIP(), []int{0, 0}+}++func (x *DataSourceExternalSecret_AppRoleAuthOption) GetRoleId() string {+ if x != nil {+ return x.RoleId+ }+ return ""+}++func (x *DataSourceExternalSecret_AppRoleAuthOption) GetSecretId() string {+ if x != nil {+ return x.SecretId+ }+ return ""+}+var File_store_data_source_proto protoreflect.FileDescriptorvar file_store_data_source_proto_rawDesc = []byte{0x0a, 0x17, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75,0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xac, 0x03, 0x0a, 0x11, 0x44, 0x61,- 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12,- 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72,- 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,- 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x16, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69,- 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69,- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c,- 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,- 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73,- 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73,- 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65,- 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72,- 0x12, 0x36, 0x0a, 0x17, 0x73, 0x73, 0x68, 0x5f, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74,- 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x15, 0x73, 0x73, 0x68, 0x4f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64,- 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x73, 0x68, 0x5f,- 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61,- 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x73, 0x73,- 0x68, 0x4f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61,- 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x51, 0x0a, 0x25, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,- 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f,- 0x6b, 0x65, 0x79, 0x5f, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0a,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x22, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,- 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x4f, 0x62,- 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xf7, 0x04, 0x0a, 0x18, 0x44, 0x61,+ 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,+ 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x54, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,+ 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74,+ 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65,+ 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03,+ 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x4e,+ 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,+ 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74,+ 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x75, 0x74, 0x68,+ 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x57,+ 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x3a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65,+ 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x6f,+ 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07,+ 0x61, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12,+ 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65,+ 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d,+ 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x49, 0x0a, 0x11,+ 0x41, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f,+ 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65,+ 0x63, 0x72, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x0a, 0x53, 0x65, 0x63, 0x72, 0x65,+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x41, 0x45, 0x43, 0x52, 0x45, 0x54,+ 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,+ 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x4b, 0x56, 0x5f,+ 0x56, 0x32, 0x10, 0x01, 0x22, 0x3e, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65,+ 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54,+ 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x5f, 0x52, 0x4f,+ 0x4c, 0x45, 0x10, 0x02, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74,+ 0x69, 0x6f, 0x6e, 0x22, 0xff, 0x03, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61,+ 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75,+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,+ 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65,+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68,+ 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68,+ 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74,+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12,+ 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x73,+ 0x68, 0x5f, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73,+ 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x73, 0x73, 0x68,+ 0x4f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,+ 0x72, 0x64, 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x73, 0x68, 0x5f, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63,+ 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79,+ 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x73, 0x73, 0x68, 0x4f, 0x62, 0x66, 0x75, 0x73,+ 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12,+ 0x51, 0x0a, 0x25, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,+ 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6f, 0x62,+ 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x22,+ 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72,+ 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x4f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74,+ 0x65, 0x64, 0x12, 0x51, 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74,+ 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,+ 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x33,}var (@@ -199,16 +535,25 @@ func file_store_data_source_proto_rawDescGZIP() []byte {return file_store_data_source_proto_rawDescData}-var file_store_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 1)+var file_store_data_source_proto_enumTypes = make([]protoimpl.EnumInfo, 2)+var file_store_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 3)var file_store_data_source_proto_goTypes = []interface{}{- (*DataSourceOptions)(nil), // 0: bytebase.store.DataSourceOptions+ (DataSourceExternalSecret_SecretType)(0), // 0: bytebase.store.DataSourceExternalSecret.SecretType+ (DataSourceExternalSecret_AuthType)(0), // 1: bytebase.store.DataSourceExternalSecret.AuthType+ (*DataSourceExternalSecret)(nil), // 2: bytebase.store.DataSourceExternalSecret+ (*DataSourceOptions)(nil), // 3: bytebase.store.DataSourceOptions+ (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 4: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption}var file_store_data_source_proto_depIdxs = []int32{- 0, // [0:0] is the sub-list for method output_type- 0, // [0:0] is the sub-list for method input_type- 0, // [0:0] is the sub-list for extension type_name- 0, // [0:0] is the sub-list for extension extendee- 0, // [0:0] is the sub-list for field type_name+ 0, // 0: bytebase.store.DataSourceExternalSecret.secret_type:type_name -> bytebase.store.DataSourceExternalSecret.SecretType+ 1, // 1: bytebase.store.DataSourceExternalSecret.auth_type:type_name -> bytebase.store.DataSourceExternalSecret.AuthType+ 4, // 2: bytebase.store.DataSourceExternalSecret.app_role:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption+ 2, // 3: bytebase.store.DataSourceOptions.external_secret:type_name -> bytebase.store.DataSourceExternalSecret+ 4, // [4:4] is the sub-list for method output_type+ 4, // [4:4] is the sub-list for method input_type+ 4, // [4:4] is the sub-list for extension type_name+ 4, // [4:4] is the sub-list for extension extendee+ 0, // [0:4] is the sub-list for field type_name}func init() { file_store_data_source_proto_init() }@@ -218,6 +563,18 @@ func file_store_data_source_proto_init() {}if !protoimpl.UnsafeEnabled {file_store_data_source_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataSourceExternalSecret); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_data_source_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DataSourceOptions); i {case 0:return &v.state@@ -229,19 +586,36 @@ func file_store_data_source_proto_init() {return nil}}+ file_store_data_source_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataSourceExternalSecret_AppRoleAuthOption); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ }+ file_store_data_source_proto_msgTypes[0].OneofWrappers = []interface{}{+ (*DataSourceExternalSecret_AppRole)(nil),+ (*DataSourceExternalSecret_Token)(nil),}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_data_source_proto_rawDesc,- NumEnums: 0,- NumMessages: 1,+ NumEnums: 2,+ NumMessages: 3,NumExtensions: 0,NumServices: 0,},GoTypes: file_store_data_source_proto_goTypes,DependencyIndexes: file_store_data_source_proto_depIdxs,+ EnumInfos: file_store_data_source_proto_enumTypes,MessageInfos: file_store_data_source_proto_msgTypes,}.Build()File_store_data_source_proto = out.Filediff --git a/proto/generated-go/v1/instance_service.pb.go b/proto/generated-go/v1/instance_service.pb.goindex 632a9f1b62..78ccc89fb9 100644--- a/proto/generated-go/v1/instance_service.pb.go+++ b/proto/generated-go/v1/instance_service.pb.go@@ -73,6 +73,101 @@ func (DataSourceType) EnumDescriptor() ([]byte, []int) {return file_v1_instance_service_proto_rawDescGZIP(), []int{0}}+type DataSourceExternalSecret_SecretType int32++const (+ DataSourceExternalSecret_SAECRET_TYPE_UNSPECIFIED DataSourceExternalSecret_SecretType = 0+ DataSourceExternalSecret_VAULT_KV_V2 DataSourceExternalSecret_SecretType = 1+)++// Enum value maps for DataSourceExternalSecret_SecretType.+var (+ DataSourceExternalSecret_SecretType_name = map[int32]string{+ 0: "SAECRET_TYPE_UNSPECIFIED",+ 1: "VAULT_KV_V2",+ }+ DataSourceExternalSecret_SecretType_value = map[string]int32{+ "SAECRET_TYPE_UNSPECIFIED": 0,+ "VAULT_KV_V2": 1,+ }+)++func (x DataSourceExternalSecret_SecretType) Enum() *DataSourceExternalSecret_SecretType {+ p := new(DataSourceExternalSecret_SecretType)+ *p = x+ return p+}++func (x DataSourceExternalSecret_SecretType) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (DataSourceExternalSecret_SecretType) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_instance_service_proto_enumTypes[1].Descriptor()+}++func (DataSourceExternalSecret_SecretType) Type() protoreflect.EnumType {+ return &file_v1_instance_service_proto_enumTypes[1]+}++func (x DataSourceExternalSecret_SecretType) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use DataSourceExternalSecret_SecretType.Descriptor instead.+func (DataSourceExternalSecret_SecretType) EnumDescriptor() ([]byte, []int) {+ return file_v1_instance_service_proto_rawDescGZIP(), []int{19, 0}+}++type DataSourceExternalSecret_AuthType int32++const (+ DataSourceExternalSecret_AUTH_TYPE_UNSPECIFIED DataSourceExternalSecret_AuthType = 0+ DataSourceExternalSecret_TOKEN DataSourceExternalSecret_AuthType = 1+ DataSourceExternalSecret_APP_ROLE DataSourceExternalSecret_AuthType = 2+)++// Enum value maps for DataSourceExternalSecret_AuthType.+var (+ DataSourceExternalSecret_AuthType_name = map[int32]string{+ 0: "AUTH_TYPE_UNSPECIFIED",+ 1: "TOKEN",+ 2: "APP_ROLE",+ }+ DataSourceExternalSecret_AuthType_value = map[string]int32{+ "AUTH_TYPE_UNSPECIFIED": 0,+ "TOKEN": 1,+ "APP_ROLE": 2,+ }+)++func (x DataSourceExternalSecret_AuthType) Enum() *DataSourceExternalSecret_AuthType {+ p := new(DataSourceExternalSecret_AuthType)+ *p = x+ return p+}++func (x DataSourceExternalSecret_AuthType) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (DataSourceExternalSecret_AuthType) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_instance_service_proto_enumTypes[2].Descriptor()+}++func (DataSourceExternalSecret_AuthType) Type() protoreflect.EnumType {+ return &file_v1_instance_service_proto_enumTypes[2]+}++func (x DataSourceExternalSecret_AuthType) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use DataSourceExternalSecret_AuthType.Descriptor instead.+func (DataSourceExternalSecret_AuthType) EnumDescriptor() ([]byte, []int) {+ return file_v1_instance_service_proto_rawDescGZIP(), []int{19, 1}+}+type GetInstanceRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1237,6 +1332,138 @@ func (x *Instance) GetOptions() *InstanceOptions {return nil}+type DataSourceExternalSecret struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ SecretType DataSourceExternalSecret_SecretType `protobuf:"varint,1,opt,name=secret_type,json=secretType,proto3,enum=bytebase.v1.DataSourceExternalSecret_SecretType" json:"secret_type,omitempty"`+ Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`+ AuthType DataSourceExternalSecret_AuthType `protobuf:"varint,3,opt,name=auth_type,json=authType,proto3,enum=bytebase.v1.DataSourceExternalSecret_AuthType" json:"auth_type,omitempty"`+ // Types that are assignable to AuthOption:+ //+ // *DataSourceExternalSecret_AppRole+ // *DataSourceExternalSecret_Token+ AuthOption isDataSourceExternalSecret_AuthOption `protobuf_oneof:"auth_option"`+ // engine name is the name for secret engine.+ EngineName string `protobuf:"bytes,6,opt,name=engine_name,json=engineName,proto3" json:"engine_name,omitempty"`+ // the secret name in the engine to store the password.+ SecretName string `protobuf:"bytes,7,opt,name=secret_name,json=secretName,proto3" json:"secret_name,omitempty"`+ // the key name for the password.+ KeyName string `protobuf:"bytes,8,opt,name=key_name,json=keyName,proto3" json:"key_name,omitempty"`+}++func (x *DataSourceExternalSecret) Reset() {+ *x = DataSourceExternalSecret{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_instance_service_proto_msgTypes[19]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataSourceExternalSecret) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataSourceExternalSecret) ProtoMessage() {}++func (x *DataSourceExternalSecret) ProtoReflect() protoreflect.Message {+ mi := &file_v1_instance_service_proto_msgTypes[19]+ 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 DataSourceExternalSecret.ProtoReflect.Descriptor instead.+func (*DataSourceExternalSecret) Descriptor() ([]byte, []int) {+ return file_v1_instance_service_proto_rawDescGZIP(), []int{19}+}++func (x *DataSourceExternalSecret) GetSecretType() DataSourceExternalSecret_SecretType {+ if x != nil {+ return x.SecretType+ }+ return DataSourceExternalSecret_SAECRET_TYPE_UNSPECIFIED+}++func (x *DataSourceExternalSecret) GetUrl() string {+ if x != nil {+ return x.Url+ }+ return ""+}++func (x *DataSourceExternalSecret) GetAuthType() DataSourceExternalSecret_AuthType {+ if x != nil {+ return x.AuthType+ }+ return DataSourceExternalSecret_AUTH_TYPE_UNSPECIFIED+}++func (m *DataSourceExternalSecret) GetAuthOption() isDataSourceExternalSecret_AuthOption {+ if m != nil {+ return m.AuthOption+ }+ return nil+}++func (x *DataSourceExternalSecret) GetAppRole() *DataSourceExternalSecret_AppRoleAuthOption {+ if x, ok := x.GetAuthOption().(*DataSourceExternalSecret_AppRole); ok {+ return x.AppRole+ }+ return nil+}++func (x *DataSourceExternalSecret) GetToken() string {+ if x, ok := x.GetAuthOption().(*DataSourceExternalSecret_Token); ok {+ return x.Token+ }+ return ""+}++func (x *DataSourceExternalSecret) GetEngineName() string {+ if x != nil {+ return x.EngineName+ }+ return ""+}++func (x *DataSourceExternalSecret) GetSecretName() string {+ if x != nil {+ return x.SecretName+ }+ return ""+}++func (x *DataSourceExternalSecret) GetKeyName() string {+ if x != nil {+ return x.KeyName+ }+ return ""+}++type isDataSourceExternalSecret_AuthOption interface {+ isDataSourceExternalSecret_AuthOption()+}++type DataSourceExternalSecret_AppRole struct {+ AppRole *DataSourceExternalSecret_AppRoleAuthOption `protobuf:"bytes,4,opt,name=app_role,json=appRole,proto3,oneof"`+}++type DataSourceExternalSecret_Token struct {+ Token string `protobuf:"bytes,5,opt,name=token,proto3,oneof"`+}++func (*DataSourceExternalSecret_AppRole) isDataSourceExternalSecret_AuthOption() {}++func (*DataSourceExternalSecret_Token) isDataSourceExternalSecret_AuthOption() {}+type DataSource struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1274,13 +1501,14 @@ type DataSource struct {SshPrivateKey string `protobuf:"bytes,19,opt,name=ssh_private_key,json=sshPrivateKey,proto3" json:"ssh_private_key,omitempty"`// PKCS#8 private key in PEM format. If it's empty string, no private key is required.// Used for authentication when connecting to the data source.- AuthenticationPrivateKey string `protobuf:"bytes,20,opt,name=authentication_private_key,json=authenticationPrivateKey,proto3" json:"authentication_private_key,omitempty"`+ AuthenticationPrivateKey string `protobuf:"bytes,20,opt,name=authentication_private_key,json=authenticationPrivateKey,proto3" json:"authentication_private_key,omitempty"`+ ExternalSecret *DataSourceExternalSecret `protobuf:"bytes,21,opt,name=external_secret,json=externalSecret,proto3" json:"external_secret,omitempty"`}func (x *DataSource) Reset() {*x = DataSource{}if protoimpl.UnsafeEnabled {- mi := &file_v1_instance_service_proto_msgTypes[19]+ mi := &file_v1_instance_service_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1293,7 +1521,7 @@ func (x *DataSource) String() string {func (*DataSource) ProtoMessage() {}func (x *DataSource) ProtoReflect() protoreflect.Message {- mi := &file_v1_instance_service_proto_msgTypes[19]+ mi := &file_v1_instance_service_proto_msgTypes[20]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1306,7 +1534,7 @@ func (x *DataSource) ProtoReflect() protoreflect.Message {// Deprecated: Use DataSource.ProtoReflect.Descriptor instead.func (*DataSource) Descriptor() ([]byte, []int) {- return file_v1_instance_service_proto_rawDescGZIP(), []int{19}+ return file_v1_instance_service_proto_rawDescGZIP(), []int{20}}func (x *DataSource) GetId() string {@@ -1449,6 +1677,13 @@ func (x *DataSource) GetAuthenticationPrivateKey() string {return ""}+func (x *DataSource) GetExternalSecret() *DataSourceExternalSecret {+ if x != nil {+ return x.ExternalSecret+ }+ return nil+}+type InstanceResource struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1464,7 +1699,7 @@ type InstanceResource struct {func (x *InstanceResource) Reset() {*x = InstanceResource{}if protoimpl.UnsafeEnabled {- mi := &file_v1_instance_service_proto_msgTypes[20]+ mi := &file_v1_instance_service_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1477,7 +1712,7 @@ func (x *InstanceResource) String() string {func (*InstanceResource) ProtoMessage() {}func (x *InstanceResource) ProtoReflect() protoreflect.Message {- mi := &file_v1_instance_service_proto_msgTypes[20]+ mi := &file_v1_instance_service_proto_msgTypes[21]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1490,7 +1725,7 @@ func (x *InstanceResource) ProtoReflect() protoreflect.Message {// Deprecated: Use InstanceResource.ProtoReflect.Descriptor instead.func (*InstanceResource) Descriptor() ([]byte, []int) {- return file_v1_instance_service_proto_rawDescGZIP(), []int{20}+ return file_v1_instance_service_proto_rawDescGZIP(), []int{21}}func (x *InstanceResource) GetTitle() string {@@ -1528,6 +1763,62 @@ func (x *InstanceResource) GetActivation() bool {return false}+// app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle+type DataSourceExternalSecret_AppRoleAuthOption struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`+ SecretId string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`+}++func (x *DataSourceExternalSecret_AppRoleAuthOption) Reset() {+ *x = DataSourceExternalSecret_AppRoleAuthOption{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_instance_service_proto_msgTypes[22]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataSourceExternalSecret_AppRoleAuthOption) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataSourceExternalSecret_AppRoleAuthOption) ProtoMessage() {}++func (x *DataSourceExternalSecret_AppRoleAuthOption) ProtoReflect() protoreflect.Message {+ mi := &file_v1_instance_service_proto_msgTypes[22]+ 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 DataSourceExternalSecret_AppRoleAuthOption.ProtoReflect.Descriptor instead.+func (*DataSourceExternalSecret_AppRoleAuthOption) Descriptor() ([]byte, []int) {+ return file_v1_instance_service_proto_rawDescGZIP(), []int{19, 0}+}++func (x *DataSourceExternalSecret_AppRoleAuthOption) GetRoleId() string {+ if x != nil {+ return x.RoleId+ }+ return ""+}++func (x *DataSourceExternalSecret_AppRoleAuthOption) GetSecretId() string {+ if x != nil {+ return x.SecretId+ }+ return ""+}+var File_v1_instance_service_proto protoreflect.FileDescriptorvar file_v1_instance_service_proto_rawDesc = []byte{@@ -1687,181 +1978,226 @@ var file_v1_instance_service_proto_rawDesc = []byte{0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61,0x6e, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69,- 0x6f, 0x6e, 0x73, 0x22, 0x91, 0x05, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,- 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,- 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,- 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,- 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,- 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,- 0x12, 0x1a, 0x0a, 0x06, 0x73, 0x73, 0x6c, 0x5f, 0x63, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x05, 0x73, 0x73, 0x6c, 0x43, 0x61, 0x12, 0x1e, 0x0a, 0x08,- 0x73, 0x73, 0x6c, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,- 0xe0, 0x41, 0x04, 0x52, 0x07, 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x12, 0x1c, 0x0a, 0x07,- 0x73, 0x73, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x04, 0x52, 0x06, 0x73, 0x73, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f,- 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12,- 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f,- 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0a,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10,- 0x0a, 0x03, 0x73, 0x72, 0x76, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72, 0x76,- 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69,- 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x16, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64,- 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73,- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19,- 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x07, 0x73, 0x73, 0x68, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68,- 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68,- 0x50, 0x6f, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65, 0x72,- 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12,- 0x26, 0x0a, 0x0c, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,- 0x12, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x73, 0x73, 0x68, 0x50,- 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x0f, 0x73, 0x73, 0x68, 0x5f, 0x70,- 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0d, 0x73, 0x73, 0x68, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74,- 0x65, 0x4b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69,- 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b,- 0x65, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x18, 0x61,- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69,- 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0xdd, 0x01, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05,- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,- 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12,- 0x2a, 0x0a, 0x0e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,- 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x65, 0x6e,- 0x67, 0x69, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x0c, 0x64,- 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61,- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74,- 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54,- 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10,- 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02,- 0x32, 0x91, 0x0e, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72,- 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x25, 0xda, 0x41, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,- 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x00,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,- 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x0d, 0x2f, 0x76, 0x31,- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x0f, 0x53,- 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x23,+ 0x6f, 0x6e, 0x73, 0x22, 0xf8, 0x04, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,+ 0x12, 0x51, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78,+ 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x63,+ 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54,+ 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x4b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x79,+ 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e,+ 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x54, 0x79,+ 0x70, 0x65, 0x12, 0x59, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74,+ 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x70, 0x70, 0x52,+ 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0,+ 0x41, 0x04, 0x48, 0x00, 0x52, 0x07, 0x61, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1b, 0x0a,+ 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x04, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e,+ 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0a, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08,+ 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,+ 0x6b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x49, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x52, 0x6f,+ 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07,+ 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72,+ 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f,+ 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,+ 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x0a, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65,+ 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x41, 0x45, 0x43, 0x52, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f,+ 0x0a, 0x0b, 0x56, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x4b, 0x56, 0x5f, 0x56, 0x32, 0x10, 0x01, 0x22,+ 0x3e, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x41,+ 0x55, 0x54, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10,+ 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x42,+ 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe1,+ 0x05, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0e, 0x0a,+ 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a,+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a,+ 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61,+ 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x06, 0x73,+ 0x73, 0x6c, 0x5f, 0x63, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04,+ 0x52, 0x05, 0x73, 0x73, 0x6c, 0x43, 0x61, 0x12, 0x1e, 0x0a, 0x08, 0x73, 0x73, 0x6c, 0x5f, 0x63,+ 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x07,+ 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x12, 0x1c, 0x0a, 0x07, 0x73, 0x73, 0x6c, 0x5f, 0x6b,+ 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x06, 0x73,+ 0x73, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72,+ 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a,+ 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76,+ 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61,+ 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75,+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,+ 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65,+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68,+ 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68,+ 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74,+ 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12,+ 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x73,+ 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09,+ 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x73, 0x73, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,+ 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x0f, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74,+ 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04,+ 0x52, 0x0d, 0x73, 0x73, 0x68, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12,+ 0x41, 0x0a, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,+ 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x14, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x18, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b,+ 0x65, 0x79, 0x12, 0x4e, 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72,+ 0x65, 0x74, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72,+ 0x65, 0x74, 0x22, 0xdd, 0x01, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b, 0x0a,+ 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69,+ 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x0e, 0x65, 0x6e,+ 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56,+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e,+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55,+ 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09,+ 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x32, 0x91, 0x0e, 0x0a, 0x0f,+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,+ 0x6c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x95, 0x01,+ 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12,+ 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,+ 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x34, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61,- 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0xda, 0x41, 0x00, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x42, 0x5a, 0x2a, 0x12, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68,- 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a,- 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x77, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x22, 0x2a, 0xda, 0x41, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x22, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12,- 0x95, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,- 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x48, 0xda,- 0x41, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x08, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x32, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74,- 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 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, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7b, 0x0a, 0x10,- 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,- 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d,- 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x7b, 0x0a, 0x0c, 0x53, 0x79, 0x6e,- 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68,- 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68,- 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x12,- 0x7e, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,- 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,- 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,- 0x87, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,- 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44,- 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77,- 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,- 0x65, 0x72, 0x69, 0x65, 0x73, 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, 0x5e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x58, 0x3a, 0x01, 0x2a, 0x5a,- 0x29, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53,- 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65,- 0x72, 0x69, 0x65, 0x73, 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,+ 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x5a,+ 0x2a, 0x12, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x14, 0x2f, 0x76, 0x31,+ 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63,+ 0x68, 0x12, 0x77, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a,+ 0xda, 0x41, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x19, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x0d, 0x2f, 0x76, 0x31,+ 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0e, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x48, 0xda, 0x41, 0x14, 0x69, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,+ 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x32, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,+ 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 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, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a,+ 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7b, 0x0a, 0x10, 0x55, 0x6e, 0x64, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65,+ 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24,+ 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65,+ 0x6c, 0x65, 0x74, 0x65, 0x12, 0x7b, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e,+ 0x63, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74,+ 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01,+ 0x2a, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,+ 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x7e, 0x0a, 0x0d, 0x41, 0x64,+ 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74,+ 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a,+ 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d,+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64,+ 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x52,+ 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,+ 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,+ 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,+ 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,+ 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01,+ 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0xae,+ 0x01, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69,+ 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73,+ 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,+ 0x5e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x58, 0x3a, 0x01, 0x2a, 0x5a, 0x29, 0x22, 0x27, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,+ 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,+ 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 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 (@@ -1876,87 +2212,95 @@ func file_v1_instance_service_proto_rawDescGZIP() []byte {return file_v1_instance_service_proto_rawDescData}-var file_v1_instance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 21)+var file_v1_instance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3)+var file_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 23)var file_v1_instance_service_proto_goTypes = []interface{}{- (DataSourceType)(0), // 0: bytebase.v1.DataSourceType- (*GetInstanceRequest)(nil), // 1: bytebase.v1.GetInstanceRequest- (*ListInstancesRequest)(nil), // 2: bytebase.v1.ListInstancesRequest- (*ListInstancesResponse)(nil), // 3: bytebase.v1.ListInstancesResponse- (*SearchInstancesRequest)(nil), // 4: bytebase.v1.SearchInstancesRequest- (*SearchInstancesResponse)(nil), // 5: bytebase.v1.SearchInstancesResponse- (*CreateInstanceRequest)(nil), // 6: bytebase.v1.CreateInstanceRequest- (*UpdateInstanceRequest)(nil), // 7: bytebase.v1.UpdateInstanceRequest- (*DeleteInstanceRequest)(nil), // 8: bytebase.v1.DeleteInstanceRequest- (*UndeleteInstanceRequest)(nil), // 9: bytebase.v1.UndeleteInstanceRequest- (*SyncInstanceRequest)(nil), // 10: bytebase.v1.SyncInstanceRequest- (*SyncInstanceResponse)(nil), // 11: bytebase.v1.SyncInstanceResponse- (*BatchSyncInstanceRequest)(nil), // 12: bytebase.v1.BatchSyncInstanceRequest- (*BatchSyncInstanceResponse)(nil), // 13: bytebase.v1.BatchSyncInstanceResponse- (*AddDataSourceRequest)(nil), // 14: bytebase.v1.AddDataSourceRequest- (*RemoveDataSourceRequest)(nil), // 15: bytebase.v1.RemoveDataSourceRequest- (*UpdateDataSourceRequest)(nil), // 16: bytebase.v1.UpdateDataSourceRequest- (*SyncSlowQueriesRequest)(nil), // 17: bytebase.v1.SyncSlowQueriesRequest- (*InstanceOptions)(nil), // 18: bytebase.v1.InstanceOptions- (*Instance)(nil), // 19: bytebase.v1.Instance- (*DataSource)(nil), // 20: bytebase.v1.DataSource- (*InstanceResource)(nil), // 21: bytebase.v1.InstanceResource- (*fieldmaskpb.FieldMask)(nil), // 22: google.protobuf.FieldMask- (*durationpb.Duration)(nil), // 23: google.protobuf.Duration- (State)(0), // 24: bytebase.v1.State- (Engine)(0), // 25: bytebase.v1.Engine- (*emptypb.Empty)(nil), // 26: google.protobuf.Empty+ (DataSourceType)(0), // 0: bytebase.v1.DataSourceType+ (DataSourceExternalSecret_SecretType)(0), // 1: bytebase.v1.DataSourceExternalSecret.SecretType+ (DataSourceExternalSecret_AuthType)(0), // 2: bytebase.v1.DataSourceExternalSecret.AuthType+ (*GetInstanceRequest)(nil), // 3: bytebase.v1.GetInstanceRequest+ (*ListInstancesRequest)(nil), // 4: bytebase.v1.ListInstancesRequest+ (*ListInstancesResponse)(nil), // 5: bytebase.v1.ListInstancesResponse+ (*SearchInstancesRequest)(nil), // 6: bytebase.v1.SearchInstancesRequest+ (*SearchInstancesResponse)(nil), // 7: bytebase.v1.SearchInstancesResponse+ (*CreateInstanceRequest)(nil), // 8: bytebase.v1.CreateInstanceRequest+ (*UpdateInstanceRequest)(nil), // 9: bytebase.v1.UpdateInstanceRequest+ (*DeleteInstanceRequest)(nil), // 10: bytebase.v1.DeleteInstanceRequest+ (*UndeleteInstanceRequest)(nil), // 11: bytebase.v1.UndeleteInstanceRequest+ (*SyncInstanceRequest)(nil), // 12: bytebase.v1.SyncInstanceRequest+ (*SyncInstanceResponse)(nil), // 13: bytebase.v1.SyncInstanceResponse+ (*BatchSyncInstanceRequest)(nil), // 14: bytebase.v1.BatchSyncInstanceRequest+ (*BatchSyncInstanceResponse)(nil), // 15: bytebase.v1.BatchSyncInstanceResponse+ (*AddDataSourceRequest)(nil), // 16: bytebase.v1.AddDataSourceRequest+ (*RemoveDataSourceRequest)(nil), // 17: bytebase.v1.RemoveDataSourceRequest+ (*UpdateDataSourceRequest)(nil), // 18: bytebase.v1.UpdateDataSourceRequest+ (*SyncSlowQueriesRequest)(nil), // 19: bytebase.v1.SyncSlowQueriesRequest+ (*InstanceOptions)(nil), // 20: bytebase.v1.InstanceOptions+ (*Instance)(nil), // 21: bytebase.v1.Instance+ (*DataSourceExternalSecret)(nil), // 22: bytebase.v1.DataSourceExternalSecret+ (*DataSource)(nil), // 23: bytebase.v1.DataSource+ (*InstanceResource)(nil), // 24: bytebase.v1.InstanceResource+ (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 25: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption+ (*fieldmaskpb.FieldMask)(nil), // 26: google.protobuf.FieldMask+ (*durationpb.Duration)(nil), // 27: google.protobuf.Duration+ (State)(0), // 28: bytebase.v1.State+ (Engine)(0), // 29: bytebase.v1.Engine+ (*emptypb.Empty)(nil), // 30: google.protobuf.Empty}var file_v1_instance_service_proto_depIdxs = []int32{- 19, // 0: bytebase.v1.ListInstancesResponse.instances:type_name -> bytebase.v1.Instance- 19, // 1: bytebase.v1.SearchInstancesResponse.instances:type_name -> bytebase.v1.Instance- 19, // 2: bytebase.v1.CreateInstanceRequest.instance:type_name -> bytebase.v1.Instance- 19, // 3: bytebase.v1.UpdateInstanceRequest.instance:type_name -> bytebase.v1.Instance- 22, // 4: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask- 10, // 5: bytebase.v1.BatchSyncInstanceRequest.requests:type_name -> bytebase.v1.SyncInstanceRequest- 20, // 6: bytebase.v1.AddDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource- 20, // 7: bytebase.v1.RemoveDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource- 20, // 8: bytebase.v1.UpdateDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource- 22, // 9: bytebase.v1.UpdateDataSourceRequest.update_mask:type_name -> google.protobuf.FieldMask- 23, // 10: bytebase.v1.InstanceOptions.sync_interval:type_name -> google.protobuf.Duration- 24, // 11: bytebase.v1.Instance.state:type_name -> bytebase.v1.State- 25, // 12: bytebase.v1.Instance.engine:type_name -> bytebase.v1.Engine- 20, // 13: bytebase.v1.Instance.data_sources:type_name -> bytebase.v1.DataSource- 18, // 14: bytebase.v1.Instance.options:type_name -> bytebase.v1.InstanceOptions- 0, // 15: bytebase.v1.DataSource.type:type_name -> bytebase.v1.DataSourceType- 25, // 16: bytebase.v1.InstanceResource.engine:type_name -> bytebase.v1.Engine- 20, // 17: bytebase.v1.InstanceResource.data_sources:type_name -> bytebase.v1.DataSource- 1, // 18: bytebase.v1.InstanceService.GetInstance:input_type -> bytebase.v1.GetInstanceRequest- 2, // 19: bytebase.v1.InstanceService.ListInstances:input_type -> bytebase.v1.ListInstancesRequest- 4, // 20: bytebase.v1.InstanceService.SearchInstances:input_type -> bytebase.v1.SearchInstancesRequest- 6, // 21: bytebase.v1.InstanceService.CreateInstance:input_type -> bytebase.v1.CreateInstanceRequest- 7, // 22: bytebase.v1.InstanceService.UpdateInstance:input_type -> bytebase.v1.UpdateInstanceRequest- 8, // 23: bytebase.v1.InstanceService.DeleteInstance:input_type -> bytebase.v1.DeleteInstanceRequest- 9, // 24: bytebase.v1.InstanceService.UndeleteInstance:input_type -> bytebase.v1.UndeleteInstanceRequest- 10, // 25: bytebase.v1.InstanceService.SyncInstance:input_type -> bytebase.v1.SyncInstanceRequest- 12, // 26: bytebase.v1.InstanceService.BatchSyncInstance:input_type -> bytebase.v1.BatchSyncInstanceRequest- 14, // 27: bytebase.v1.InstanceService.AddDataSource:input_type -> bytebase.v1.AddDataSourceRequest- 15, // 28: bytebase.v1.InstanceService.RemoveDataSource:input_type -> bytebase.v1.RemoveDataSourceRequest- 16, // 29: bytebase.v1.InstanceService.UpdateDataSource:input_type -> bytebase.v1.UpdateDataSourceRequest- 17, // 30: bytebase.v1.InstanceService.SyncSlowQueries:input_type -> bytebase.v1.SyncSlowQueriesRequest- 19, // 31: bytebase.v1.InstanceService.GetInstance:output_type -> bytebase.v1.Instance- 3, // 32: bytebase.v1.InstanceService.ListInstances:output_type -> bytebase.v1.ListInstancesResponse- 5, // 33: bytebase.v1.InstanceService.SearchInstances:output_type -> bytebase.v1.SearchInstancesResponse- 19, // 34: bytebase.v1.InstanceService.CreateInstance:output_type -> bytebase.v1.Instance- 19, // 35: bytebase.v1.InstanceService.UpdateInstance:output_type -> bytebase.v1.Instance- 26, // 36: bytebase.v1.InstanceService.DeleteInstance:output_type -> google.protobuf.Empty- 19, // 37: bytebase.v1.InstanceService.UndeleteInstance:output_type -> bytebase.v1.Instance- 11, // 38: bytebase.v1.InstanceService.SyncInstance:output_type -> bytebase.v1.SyncInstanceResponse- 13, // 39: bytebase.v1.InstanceService.BatchSyncInstance:output_type -> bytebase.v1.BatchSyncInstanceResponse- 19, // 40: bytebase.v1.InstanceService.AddDataSource:output_type -> bytebase.v1.Instance- 19, // 41: bytebase.v1.InstanceService.RemoveDataSource:output_type -> bytebase.v1.Instance- 19, // 42: bytebase.v1.InstanceService.UpdateDataSource:output_type -> bytebase.v1.Instance- 26, // 43: bytebase.v1.InstanceService.SyncSlowQueries:output_type -> google.protobuf.Empty- 31, // [31:44] is the sub-list for method output_type- 18, // [18:31] is the sub-list for method input_type- 18, // [18:18] is the sub-list for extension type_name- 18, // [18:18] is the sub-list for extension extendee- 0, // [0:18] is the sub-list for field type_name+ 21, // 0: bytebase.v1.ListInstancesResponse.instances:type_name -> bytebase.v1.Instance+ 21, // 1: bytebase.v1.SearchInstancesResponse.instances:type_name -> bytebase.v1.Instance+ 21, // 2: bytebase.v1.CreateInstanceRequest.instance:type_name -> bytebase.v1.Instance+ 21, // 3: bytebase.v1.UpdateInstanceRequest.instance:type_name -> bytebase.v1.Instance+ 26, // 4: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask+ 12, // 5: bytebase.v1.BatchSyncInstanceRequest.requests:type_name -> bytebase.v1.SyncInstanceRequest+ 23, // 6: bytebase.v1.AddDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource+ 23, // 7: bytebase.v1.RemoveDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource+ 23, // 8: bytebase.v1.UpdateDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource+ 26, // 9: bytebase.v1.UpdateDataSourceRequest.update_mask:type_name -> google.protobuf.FieldMask+ 27, // 10: bytebase.v1.InstanceOptions.sync_interval:type_name -> google.protobuf.Duration+ 28, // 11: bytebase.v1.Instance.state:type_name -> bytebase.v1.State+ 29, // 12: bytebase.v1.Instance.engine:type_name -> bytebase.v1.Engine+ 23, // 13: bytebase.v1.Instance.data_sources:type_name -> bytebase.v1.DataSource+ 20, // 14: bytebase.v1.Instance.options:type_name -> bytebase.v1.InstanceOptions+ 1, // 15: bytebase.v1.DataSourceExternalSecret.secret_type:type_name -> bytebase.v1.DataSourceExternalSecret.SecretType+ 2, // 16: bytebase.v1.DataSourceExternalSecret.auth_type:type_name -> bytebase.v1.DataSourceExternalSecret.AuthType+ 25, // 17: bytebase.v1.DataSourceExternalSecret.app_role:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption+ 0, // 18: bytebase.v1.DataSource.type:type_name -> bytebase.v1.DataSourceType+ 22, // 19: bytebase.v1.DataSource.external_secret:type_name -> bytebase.v1.DataSourceExternalSecret+ 29, // 20: bytebase.v1.InstanceResource.engine:type_name -> bytebase.v1.Engine+ 23, // 21: bytebase.v1.InstanceResource.data_sources:type_name -> bytebase.v1.DataSource+ 3, // 22: bytebase.v1.InstanceService.GetInstance:input_type -> bytebase.v1.GetInstanceRequest+ 4, // 23: bytebase.v1.InstanceService.ListInstances:input_type -> bytebase.v1.ListInstancesRequest+ 6, // 24: bytebase.v1.InstanceService.SearchInstances:input_type -> bytebase.v1.SearchInstancesRequest+ 8, // 25: bytebase.v1.InstanceService.CreateInstance:input_type -> bytebase.v1.CreateInstanceRequest+ 9, // 26: bytebase.v1.InstanceService.UpdateInstance:input_type -> bytebase.v1.UpdateInstanceRequest+ 10, // 27: bytebase.v1.InstanceService.DeleteInstance:input_type -> bytebase.v1.DeleteInstanceRequest+ 11, // 28: bytebase.v1.InstanceService.UndeleteInstance:input_type -> bytebase.v1.UndeleteInstanceRequest+ 12, // 29: bytebase.v1.InstanceService.SyncInstance:input_type -> bytebase.v1.SyncInstanceRequest+ 14, // 30: bytebase.v1.InstanceService.BatchSyncInstance:input_type -> bytebase.v1.BatchSyncInstanceRequest+ 16, // 31: bytebase.v1.InstanceService.AddDataSource:input_type -> bytebase.v1.AddDataSourceRequest+ 17, // 32: bytebase.v1.InstanceService.RemoveDataSource:input_type -> bytebase.v1.RemoveDataSourceRequest+ 18, // 33: bytebase.v1.InstanceService.UpdateDataSource:input_type -> bytebase.v1.UpdateDataSourceRequest+ 19, // 34: bytebase.v1.InstanceService.SyncSlowQueries:input_type -> bytebase.v1.SyncSlowQueriesRequest+ 21, // 35: bytebase.v1.InstanceService.GetInstance:output_type -> bytebase.v1.Instance+ 5, // 36: bytebase.v1.InstanceService.ListInstances:output_type -> bytebase.v1.ListInstancesResponse+ 7, // 37: bytebase.v1.InstanceService.SearchInstances:output_type -> bytebase.v1.SearchInstancesResponse+ 21, // 38: bytebase.v1.InstanceService.CreateInstance:output_type -> bytebase.v1.Instance+ 21, // 39: bytebase.v1.InstanceService.UpdateInstance:output_type -> bytebase.v1.Instance+ 30, // 40: bytebase.v1.InstanceService.DeleteInstance:output_type -> google.protobuf.Empty+ 21, // 41: bytebase.v1.InstanceService.UndeleteInstance:output_type -> bytebase.v1.Instance+ 13, // 42: bytebase.v1.InstanceService.SyncInstance:output_type -> bytebase.v1.SyncInstanceResponse+ 15, // 43: bytebase.v1.InstanceService.BatchSyncInstance:output_type -> bytebase.v1.BatchSyncInstanceResponse+ 21, // 44: bytebase.v1.InstanceService.AddDataSource:output_type -> bytebase.v1.Instance+ 21, // 45: bytebase.v1.InstanceService.RemoveDataSource:output_type -> bytebase.v1.Instance+ 21, // 46: bytebase.v1.InstanceService.UpdateDataSource:output_type -> bytebase.v1.Instance+ 30, // 47: bytebase.v1.InstanceService.SyncSlowQueries:output_type -> google.protobuf.Empty+ 35, // [35:48] is the sub-list for method output_type+ 22, // [22:35] is the sub-list for method input_type+ 22, // [22:22] is the sub-list for extension type_name+ 22, // [22:22] is the sub-list for extension extendee+ 0, // [0:22] is the sub-list for field type_name}func init() { file_v1_instance_service_proto_init() }@@ -2195,7 +2539,7 @@ func file_v1_instance_service_proto_init() {}}file_v1_instance_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DataSource); i {+ switch v := v.(*DataSourceExternalSecret); i {case 0:return &v.statecase 1:@@ -2207,6 +2551,18 @@ func file_v1_instance_service_proto_init() {}}file_v1_instance_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataSource); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_instance_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*InstanceResource); i {case 0:return &v.state@@ -2218,14 +2574,30 @@ func file_v1_instance_service_proto_init() {return nil}}+ file_v1_instance_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataSourceExternalSecret_AppRoleAuthOption); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ }+ file_v1_instance_service_proto_msgTypes[19].OneofWrappers = []interface{}{+ (*DataSourceExternalSecret_AppRole)(nil),+ (*DataSourceExternalSecret_Token)(nil),}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_instance_service_proto_rawDesc,- NumEnums: 1,- NumMessages: 21,+ NumEnums: 3,+ NumMessages: 23,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/data_source.proto b/proto/store/data_source.protoindex 60240ed37e..139bb63ead 100644--- a/proto/store/data_source.proto+++ b/proto/store/data_source.proto@@ -4,6 +4,40 @@ package bytebase.store;option go_package = "generated-go/store";+message DataSourceExternalSecret {+ enum SecretType {+ SAECRET_TYPE_UNSPECIFIED = 0;+ VAULT_KV_V2 = 1;+ }+ SecretType secret_type = 1;+ string url = 2;++ enum AuthType {+ AUTH_TYPE_UNSPECIFIED = 0;+ TOKEN = 1;+ APP_ROLE = 2;+ }+ AuthType auth_type = 3;++ // app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle+ message AppRoleAuthOption {+ string role_id = 1;+ string secret_id = 2;+ }++ oneof auth_option {+ AppRoleAuthOption app_role = 4;+ string token = 5;+ }++ // engine name is the name for secret engine.+ string engine_name = 6;+ // the secret name in the engine to store the password.+ string secret_name = 7;+ // the key name for the password.+ string key_name = 8;+}+message DataSourceOptions {// srv is a boolean flag that indicates whether the host is a DNS SRV record.bool srv = 1;@@ -29,4 +63,6 @@ message DataSourceOptions {// PKCS#8 private key in PEM format. If it's empty string, no private key is required.// Used for authentication when connecting to the data source.string authentication_private_key_obfuscated = 10;++ DataSourceExternalSecret external_secret = 11;}diff --git a/proto/v1/instance_service.proto b/proto/v1/instance_service.protoindex 831ec3a1da..3277da5f7a 100644--- a/proto/v1/instance_service.proto+++ b/proto/v1/instance_service.proto@@ -305,6 +305,40 @@ message Instance {InstanceOptions options = 11;}+message DataSourceExternalSecret {+ enum SecretType {+ SAECRET_TYPE_UNSPECIFIED = 0;+ VAULT_KV_V2 = 1;+ }+ SecretType secret_type = 1;+ string url = 2;++ enum AuthType {+ AUTH_TYPE_UNSPECIFIED = 0;+ TOKEN = 1;+ APP_ROLE = 2;+ }+ AuthType auth_type = 3;++ // app role auth method: https://developer.hashicorp.com/vault/docs/auth/approle+ message AppRoleAuthOption {+ string role_id = 1;+ string secret_id = 2;+ }++ oneof auth_option {+ AppRoleAuthOption app_role = 4 [(google.api.field_behavior) = INPUT_ONLY];+ string token = 5 [(google.api.field_behavior) = INPUT_ONLY];+ }++ // engine name is the name for secret engine.+ string engine_name = 6;+ // the secret name in the engine to store the password.+ string secret_name = 7;+ // the key name for the password.+ string key_name = 8;+}+message DataSource {string id = 1;DataSourceType type = 2;@@ -339,6 +373,8 @@ message DataSource {// PKCS#8 private key in PEM format. If it's empty string, no private key is required.// Used for authentication when connecting to the data source.string authentication_private_key = 20 [(google.api.field_behavior) = INPUT_ONLY];++ DataSourceExternalSecret external_secret = 21;}enum DataSourceType {