Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(hive): support kerberos connections (#11704)
Azusain42fb9e672ca2
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.goindex 178fd86911..7aced5d7b3 100644--- a/backend/api/v1/instance_service.go+++ b/backend/api/v1/instance_service.go@@ -662,7 +662,7 @@ func (s *InstanceService) AddDataSource(ctx context.Context, request *v1pb.AddDa}// We only support add RO type datasouce to instance now, see more details in instance_service.proto.if request.DataSource.Type != v1pb.DataSourceType_READ_ONLY {- return nil, status.Errorf(codes.InvalidArgument, "only support add read-only data source")+ return nil, status.Errorf(codes.InvalidArgument, "only support adding read-only data source")}dataSource, err := s.convertToDataSourceMessage(request.DataSource)@@ -848,10 +848,16 @@ func (s *InstanceService) UpdateDataSource(ctx context.Context, request *v1pb.UpdataSource.ExternalSecret = externalSecretpatch.ExternalSecret = externalSecretpatch.RemoveExternalSecret = externalSecret == nil++ case "sasl_config":+ dataSource.SASLConfig = convertToStoreDataSourceSaslConfig(request.DataSource.SaslConfig)+ patch.SASLConfig = dataSource.SASLConfig+case "authentication_type":authType := convertToAuthenticationType(request.DataSource.AuthenticationType)dataSource.AuthenticationType = authTypepatch.AuthenticationType = &authType+default:return nil, status.Errorf(codes.InvalidArgument, `unsupport update_mask "%s"`, path)}@@ -1198,6 +1204,34 @@ func convertToStoreDataSourceExternalSecret(externalSecret *v1pb.DataSourceExterreturn secret, nil}+func convertToStoreDataSourceSaslConfig(saslConfig *v1pb.SASLConfig) *storepb.SASLConfig {+ if saslConfig == nil {+ return nil+ }+ storeSaslConfig := &storepb.SASLConfig{}+ switch m := saslConfig.Mechanism.(type) {+ case *v1pb.SASLConfig_KrbConfig:+ storeSaslConfig.Mechanism = &storepb.SASLConfig_KrbConfig{+ KrbConfig: &storepb.KerberosConfig{+ Primary: m.KrbConfig.Primary,+ Instance: m.KrbConfig.Instance,+ Realm: m.KrbConfig.Realm,+ Keytab: m.KrbConfig.Keytab,+ KdcHost: m.KrbConfig.KdcHost,+ KdcTransportProtocol: m.KrbConfig.KdcTransportProtocol,+ },+ }+ case *v1pb.SASLConfig_PlainConfig:+ storeSaslConfig.Mechanism = &storepb.SASLConfig_PlainConfig{+ PlainConfig: &storepb.PlainSASLConfig{+ Username: m.PlainConfig.Username,+ Password: m.PlainConfig.Password,+ },+ }+ }+ return storeSaslConfig+}+func convertToAuthenticationType(authType v1pb.DataSource_AuthenticationType) storepb.DataSourceOptions_AuthenticationType {authenticationType := storepb.DataSourceOptions_AUTHENTICATION_UNSPECIFIEDswitch authType {@@ -1218,6 +1252,7 @@ func (s *InstanceService) convertToDataSourceMessage(dataSource *v1pb.DataSourceif err != nil {return nil, err}+ saslConfig := convertToStoreDataSourceSaslConfig(dataSource.SaslConfig)return &store.DataSourceMessage{ID: dataSource.Id,@@ -1241,6 +1276,7 @@ func (s *InstanceService) convertToDataSourceMessage(dataSource *v1pb.DataSourceSSHObfuscatedPrivateKey: common.Obfuscate(dataSource.SshPrivateKey, s.secret),AuthenticationPrivateKeyObfuscated: common.Obfuscate(dataSource.AuthenticationPrivateKey, s.secret),ExternalSecret: externalSecret,+ SASLConfig: saslConfig,AuthenticationType: convertToAuthenticationType(dataSource.AuthenticationType),}, nil}diff --git a/backend/component/dbfactory/dbfactory.go b/backend/component/dbfactory/dbfactory.goindex 3ae58a36e5..bad92896d0 100644--- a/backend/component/dbfactory/dbfactory.go+++ b/backend/component/dbfactory/dbfactory.go@@ -177,6 +177,21 @@ func (d *DBFactory) GetDataSourceDriver(ctx context.Context, instance *store.InsPassword: sshPassword,PrivateKey: sshPrivateKey,}+ var dbSaslConfig db.SASLConfig+ switch t := dataSource.SASLConfig.GetMechanism().(type) {+ case *storepb.SASLConfig_KrbConfig:+ dbSaslConfig = &db.KerberosConfig{+ Primary: t.KrbConfig.Primary,+ Instance: t.KrbConfig.Instance,+ Realm: db.Realm{+ Name: t.KrbConfig.Realm,+ KDCHost: t.KrbConfig.KdcHost,+ KDCTransportProtocol: t.KrbConfig.KdcTransportProtocol,+ },+ }+ case *storepb.SASLConfig_PlainConfig:+ dbSaslConfig = &db.PlainSASLConfig{}+ }connectionContext.InstanceID = instance.ResourceIDconnectionContext.EngineVersion = instance.EngineVersiondriver, err := db.Open(@@ -206,6 +221,7 @@ func (d *DBFactory) GetDataSourceDriver(ctx context.Context, instance *store.InsConnectionContext: connectionContext,AuthenticationPrivateKey: authenticationPrivateKey,AuthenticationType: dataSource.AuthenticationType,+ SASLConfig: dbSaslConfig,},)if err != nil {diff --git a/backend/plugin/db/driver.go b/backend/plugin/db/driver.goindex a673d1e8fc..7265876cea 100644--- a/backend/plugin/db/driver.go+++ b/backend/plugin/db/driver.go@@ -166,6 +166,8 @@ type ConnectionConfig struct {// It's only set for Redshift datashare database.ConnectionDatabase stringTLSConfig TLSConfig+ // Only used for Hive.+ SASLConfig SASLConfig// ReadOnly is only supported for Postgres at the moment.ReadOnly bool// SRV is only supported for MongoDB now.diff --git a/backend/plugin/db/hive/hive.go b/backend/plugin/db/hive/hive.goindex 566654e9a0..854f8eff57 100644--- a/backend/plugin/db/hive/hive.go+++ b/backend/plugin/db/hive/hive.go@@ -29,22 +29,18 @@ func init() {}type Driver struct {- config db.ConnectionConfig- ctx db.ConnectionContext- conn *gohive.Connection+ config db.ConnectionConfig+ ctx db.ConnectionContext+ connPool *FixedConnPool+ conn *gohive.Connection}var (_ db.Driver = (*Driver)(nil)- connPool *FixedConnPool- numMaxConn = 5+ numMaxConn = 5)func (d *Driver) Open(_ context.Context, _ storepb.Engine, config db.ConnectionConfig) (db.Driver, error) {- // field legality check.- if config.Username == "" {- return nil, errors.Errorf("user not set")- }if config.Host == "" {return nil, errors.Errorf("hostname not set")}@@ -52,29 +48,21 @@ func (d *Driver) Open(_ context.Context, _ storepb.Engine, config db.ConnectionCd.config = configd.ctx = config.ConnectionContext- // initialize database connection.- configuration := gohive.NewConnectConfiguration()- configuration.Database = config.Database- port, err := strconv.Atoi(config.Port)- if err != nil {- return nil, errors.Errorf("conversion failure for 'port' [string -> int]")- }-- // TODO(tommy): actually there are various kinds of authentication to choose among [SASL, KERBEROS, NOSASL, PLAIN SASL]- // "NONE" refers to PLAIN SASL that doesn't need authentication.- if connPool == nil {- pool, err := CreateHiveConnPool(numMaxConn, ConnPoolConfig{- Host: config.Host,- Port: port,- Config: configuration,- }, PlainSASLConnFactory)+ if d.connPool == nil {+ if config.SASLConfig == nil || !config.SASLConfig.Check() {+ return nil, errors.New("SASL settings error")+ }+ if err := config.SASLConfig.InitEnv(); err != nil {+ return nil, errors.Wrapf(err, "failed to init SASL environment")+ }+ pool, err := CreateHiveConnPool(numMaxConn, &config)if err != nil {return nil, err}- connPool = pool+ d.connPool = pool}- newConn, err := connPool.Get(config.Database)+ newConn, err := d.connPool.Get(config.Database)if err != nil {return nil, errors.New("failed to get connection from pool")}@@ -84,7 +72,7 @@ func (d *Driver) Open(_ context.Context, _ storepb.Engine, config db.ConnectionC}func (d *Driver) Close(_ context.Context) error {- connPool.Put(d.conn)+ d.connPool.Put(d.conn)return nil}@@ -114,7 +102,7 @@ func (*Driver) GetDB() *sql.DB {// Even in Hive's bucketed transaction table, all the statements are committed automatically by// the Hive server.func (d *Driver) Execute(ctx context.Context, statementsStr string, _ db.ExecuteOptions) (int64, error) {- if connPool == nil {+ if d.connPool == nil {return 0, errors.Errorf("no database connection established")}@@ -256,14 +244,14 @@ func runSingleStatement(ctx context.Context, conn *gohive.Connection, statementreturn nil, nil}-func (*Driver) QueryWithConn(ctx context.Context, conn *gohive.Connection, statementsStr string, queryCtx *db.QueryContext) ([]*v1pb.QueryResult, error) {- if connPool == nil {+func (d *Driver) QueryWithConn(ctx context.Context, conn *gohive.Connection, statementsStr string, queryCtx *db.QueryContext) ([]*v1pb.QueryResult, error) {+ if d.connPool == nil {return nil, errors.Errorf("no database connection established")}if conn == nil {var err error- conn, err = connPool.Get("")+ conn, err = d.connPool.Get("")if err != nil {return nil, err}diff --git a/backend/plugin/db/hive/hive_conn_pool.go b/backend/plugin/db/hive/hive_conn_pool.goindex 8b133daab0..176821a980 100644--- a/backend/plugin/db/hive/hive_conn_pool.go+++ b/backend/plugin/db/hive/hive_conn_pool.go@@ -3,10 +3,13 @@ package hiveimport ("context""fmt"+ "strconv""sync""github.com/beltran/gohive""github.com/pkg/errors"++ "github.com/bytebase/bytebase/backend/plugin/db")type ConnPool interface {@@ -16,54 +19,63 @@ type ConnPool interface {}type FixedConnPool struct {- RWMutex sync.RWMutex- Connections chan *gohive.Connection- IsActivated bool- NumMaxConns int- PoolConfig ConnPoolConfig- HiveConnFactory func(ConnPoolConfig) (*gohive.Connection, error)+ Host string+ Port int+ HiveConfig *gohive.ConnectConfiguration+ SASLConfig db.SASLConfig+ RWMutex sync.RWMutex+ Connections chan *gohive.Connection+ IsActivated bool+ NumMaxConns int}var _ ConnPool = &FixedConnPool{}-type ConnPoolConfig struct {- Config *gohive.ConnectConfiguration- Host string- Port int-}--func PlainSASLConnFactory(poolConfig ConnPoolConfig) (*gohive.Connection, error) {- conn, err := gohive.Connect(poolConfig.Host, poolConfig.Port, "NONE", poolConfig.Config)- if err != nil {- return nil, errors.Wrapf(err, "failed to establish Hive connection")- }- return conn, nil-}-func CreateHiveConnPool(numMaxConn int,- poolConfig ConnPoolConfig,- hiveConnFactory func(ConnPoolConfig) (*gohive.Connection, error),+ config *db.ConnectionConfig,) (*FixedConnPool, error,) {conns := make(chan *gohive.Connection, numMaxConn)+ hiveConfig := gohive.NewConnectConfiguration()+ hiveConfig.Database = config.Database++ port, err := strconv.Atoi(config.Port)+ if err != nil {+ return nil, errors.Errorf("conversion failure for 'port' [string -> int]")+ }++ // SASL settings.+ switch t := config.SASLConfig.(type) {+ // Kerberos.+ case *db.KerberosConfig:+ // hiveConfig.Hostname = t.Instance+ hiveConfig.Service = t.Primary++ // Plain.+ default:+ hiveConfig.Username = config.Username+ }+for i := 0; i < numMaxConn; i++ {- conn, err := hiveConnFactory(poolConfig)+ conn, err := gohive.Connect(config.Host, port, config.SASLConfig.GetTypeName(), hiveConfig)if err != nil {- return nil, errors.Wrapf(err, "failed to create Hive connection pool")+ return nil, errors.Wrapf(err, "failed to create Hive connection")}conns <- conn}return &FixedConnPool{- RWMutex: sync.RWMutex{},- Connections: conns,- IsActivated: true,- NumMaxConns: numMaxConn,- HiveConnFactory: hiveConnFactory,- PoolConfig: poolConfig,+ Host: config.Host,+ Port: port,+ HiveConfig: hiveConfig,+ SASLConfig: config.SASLConfig,+ RWMutex: sync.RWMutex{},+ Connections: conns,+ IsActivated: true,+ NumMaxConns: numMaxConn,},nil}@@ -82,9 +94,9 @@ func (pool *FixedConnPool) Get(dbName string) (*gohive.Connection, error) {default:var err error- conn, err = pool.HiveConnFactory(pool.PoolConfig)+ conn, err = gohive.Connect(pool.Host, pool.Port, pool.SASLConfig.GetTypeName(), pool.HiveConfig)if err != nil {- return nil, errors.Wrapf(err, "failed to create new connection")+ return nil, errors.Wrapf(err, "failed to create Hive connection")}}diff --git a/backend/plugin/db/hive/sync.go b/backend/plugin/db/hive/sync.goindex a400552735..31cc115414 100644--- a/backend/plugin/db/hive/sync.go+++ b/backend/plugin/db/hive/sync.go@@ -15,7 +15,7 @@ import ()func (d *Driver) SyncInstance(ctx context.Context) (*db.InstanceMetadata, error) {- if connPool == nil {+ if d.connPool == nil {return nil, errors.New("connection pool not created")}@@ -151,7 +151,7 @@ func (d *Driver) getTables(ctx context.Context, databaseName string) (continue}- tabInfo, err := getTableInfo(ctx, tabName, databaseName)+ tabInfo, err := d.getTableInfo(ctx, tabName, databaseName)if err != nil {return nil, nil, nil, nil, errors.Wrapf(err, "failed to describe table %s's type", tabName)}@@ -184,7 +184,7 @@ func (d *Driver) getTables(ctx context.Context, databaseName string) (var tableMetadata storepb.TableMetadata// indexes.- indexResults, err := getIndexesByTableName(ctx, tabName, databaseName)+ indexResults, err := d.getIndexesByTableName(ctx, tabName, databaseName)if err != nil {return nil, nil, nil, nil, errors.Wrapf(err, "failed to get index info from tab %s", tabName)}@@ -199,6 +199,7 @@ func (d *Driver) getTables(ctx context.Context, databaseName string) (}}+ tableMetadata.Engine = "HDFS"tableMetadata.Comment = tabInfo.commenttableMetadata.Columns = tabInfo.colMetadatastableMetadata.DataSize = int64(tabInfo.totalSize)@@ -234,19 +235,19 @@ func (d *Driver) getRoles(ctx context.Context) ([]*storepb.InstanceRoleMetadata,return roleMetadata, nil}-func getIndexesByTableName(ctx context.Context, tableName string, databaseName string) ([]*storepb.IndexMetadata, error) {+func (d *Driver) getIndexesByTableName(ctx context.Context, tableName string, databaseName string) ([]*storepb.IndexMetadata, error) {var (indexMetadata []*storepb.IndexMetadata)- conn, err := connPool.Get("")+ conn, err := d.connPool.Get("")if err != nil {return nil, err}cursor := conn.Cursor()defer func() {cursor.Close()- connPool.Put(conn)+ d.connPool.Put(conn)}()cursor.Execute(ctx, fmt.Sprintf("use %s", databaseName), false)@@ -298,7 +299,7 @@ type TableInfo struct {comment string}-func getTableInfo(ctx context.Context, tabName string, databaseName string) (+func (d *Driver) getTableInfo(ctx context.Context, tabName string, databaseName string) (*TableInfo,error,) {@@ -311,14 +312,14 @@ func getTableInfo(ctx context.Context, tabName string, databaseName string) (numRows inthasReadColumns = false)- conn, err := connPool.Get("")+ conn, err := d.connPool.Get("")if err != nil {return nil, err}cursor := conn.Cursor()defer func() {cursor.Close()- connPool.Put(conn)+ d.connPool.Put(conn)}()cursor.Exec(ctx, fmt.Sprintf("DESCRIBE FORMATTED `%s`.`%s`", databaseName, tabName))diff --git a/backend/plugin/db/sasl.go b/backend/plugin/db/sasl.gonew file mode 100644index 0000000000..5443b40d8b--- /dev/null+++ b/backend/plugin/db/sasl.go@@ -0,0 +1,127 @@+package db++import (+ "fmt"+ "os"+ "os/exec"+ "sync"++ "github.com/pkg/errors"+)++type SASLConfig interface {+ InitEnv() error+ Check() bool+ // used for gohive.+ GetTypeName() string+}++type Realm struct {+ Name string+ KDCHost string+ KDCTransportProtocol string+}+type KerberosConfig struct {+ Primary string+ Instance string+ Realm Realm+ KeytabPath string+ KDCTransportProtocol string+}++type KerberosEnv struct {+ krbEnvMutex *sync.Mutex+ DefaultKrbConfPath string+ realms map[string]Realm+}++var (+ _ SASLConfig = &KerberosConfig{}+ singletonEnv = KerberosEnv{+ DefaultKrbConfPath: "/etc/krb5.conf",+ }+ KinitCmdFmt = "kinit -kt %s %s/%s@%s"+ KrbConfRealmFmt = "%s = {\n\tkdc = %s/%s\n}"+)++func (krbConfig *KerberosConfig) InitEnv() error {+ if krbConfig.KDCTransportProtocol != "udp" && krbConfig.KDCTransportProtocol != "tcp" {+ return errors.Errorf("invalid transport protocol for KDC connection: %s", krbConfig.KDCTransportProtocol)+ }++ singletonEnv.krbEnvMutex.Lock()+ defer singletonEnv.krbEnvMutex.Unlock()++ if err := singletonEnv.AddRealm(krbConfig.Realm); err != nil {+ return err+ }++ cmd := exec.Command(fmt.Sprintf(KinitCmdFmt, krbConfig.KeytabPath, krbConfig.Primary, krbConfig.Instance, krbConfig.Realm))+ if err := cmd.Run(); err != nil {+ return errors.Wrapf(err, "failed to execute command kinit")+ }++ return nil+}++func (env *KerberosEnv) AddRealm(realm Realm) error {+ // Sync configurations with local krb5.conf if current realm does not exist.+ _, ok := env.realms[realm.Name]+ if !ok {+ env.realms[realm.Name] = realm++ // Create krb5.cnof file.+ file, err := os.Create(singletonEnv.DefaultKrbConfPath)+ if err != nil {+ return err+ }+ defer file.Close()++ // Write configurations.+ if _, err = file.WriteString("[realms]\n"); err != nil {+ return err+ }+ for _, realm := range env.realms {+ text := fmt.Sprintf(KrbConfRealmFmt, realm.Name, realm.KDCTransportProtocol, realm.KDCHost)+ if _, err = file.WriteString(text); err != nil {+ return err+ }+ if err = file.Sync(); err != nil {+ return err+ }+ }+ }++ return nil+}++// check whether Kerberos is enabled and its settings are valid.+func (krbConfig *KerberosConfig) Check() bool {+ if krbConfig.Primary == "" || krbConfig.Instance == "" || krbConfig.Realm.Name == "" || krbConfig.KeytabPath == "" || krbConfig.KDCTransportProtocol == "" {+ return false+ }+ return true+}++func (*KerberosConfig) GetTypeName() string {+ return "KERBEROS"+}++type PlainSASLConfig struct {+ Username string+ Password string+}++var _ SASLConfig = &PlainSASLConfig{}++func (*PlainSASLConfig) Check() bool {+ return true+}++func (*PlainSASLConfig) GetTypeName() string {+ return "NONE"+}++func (*PlainSASLConfig) InitEnv() error {+ return nil+}diff --git a/backend/store/data_source.go b/backend/store/data_source.goindex b3845e4d83..ac47a3eb9d 100644--- a/backend/store/data_source.go+++ b/backend/store/data_source.go@@ -7,6 +7,8 @@ import ("time""github.com/pkg/errors"+ "google.golang.org/protobuf/proto"+"google.golang.org/protobuf/encoding/protojson"api "github.com/bytebase/bytebase/backend/legacyapi"@@ -36,6 +38,8 @@ type DataSourceMessage struct {SSHUser stringSSHObfuscatedPassword stringSSHObfuscatedPrivateKey string+ // SASL.+ SASLConfig *storepb.SASLConfig// AuthenticationAuthenticationPrivateKeyObfuscated string// (deprecated) Output only.@@ -106,6 +110,8 @@ type UpdateDataSourceMessage struct {ExternalSecret *storepb.DataSourceExternalSecretRemoveExternalSecret boolAuthenticationType *storepb.DataSourceOptions_AuthenticationType+ // SASLConfig.+ SASLConfig *storepb.SASLConfig}func (*Store) listDataSourceV2(ctx context.Context, tx *Tx, instanceID string) ([]*DataSourceMessage, error) {@@ -305,6 +311,9 @@ func (s *Store) UpdateDataSourceV2(ctx context.Context, patch *UpdateDataSourceM} else if patch.RemoveExternalSecret {optionSet, args = append(optionSet, fmt.Sprintf("jsonb_build_object('externalSecret', $%d::JSONB)", len(args)+1)), append(args, nil)}+ if v := patch.SASLConfig; v != nil {+ optionSet, args = append(optionSet, fmt.Sprintf("jsonb_build_object('saslConfig', $%d::JSONB)", len(args)+1)), append(args, proto.Clone(v))+ }if len(optionSet) != 0 {set = append(set, fmt.Sprintf(`options = options || %s`, strings.Join(optionSet, "||")))}@@ -355,7 +364,6 @@ func (*Store) addDataSourceToInstanceImplV2(ctx context.Context, tx *Tx, instancSshObfuscatedPrivateKey: dataSource.SSHObfuscatedPrivateKey,AuthenticationPrivateKeyObfuscated: dataSource.AuthenticationPrivateKeyObfuscated,ExternalSecret: dataSource.ExternalSecret,- AuthenticationType: dataSource.AuthenticationType,}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 ac12785c16..91cdc1ff6b 100644--- a/frontend/src/types/proto/store/data_source.ts+++ b/frontend/src/types/proto/store/data_source.ts@@ -189,6 +189,7 @@ export interface DataSourceOptions {authenticationPrivateKeyObfuscated: string;externalSecret: DataSourceExternalSecret | undefined;authenticationType: DataSourceOptions_AuthenticationType;+ saslConfig: SASLConfig | undefined;}export enum DataSourceOptions_AuthenticationType {@@ -230,6 +231,25 @@ export function dataSourceOptions_AuthenticationTypeToJSON(object: DataSourceOpt}}+export interface SASLConfig {+ krbConfig?: KerberosConfig | undefined;+ plainConfig?: PlainSASLConfig | undefined;+}++export interface KerberosConfig {+ primary: string;+ instance: string;+ realm: string;+ keytab: string;+ kdcHost: string;+ kdcTransportProtocol: string;+}++export interface PlainSASLConfig {+ username: string;+ password: string;+}+function createBaseDataSourceExternalSecret(): DataSourceExternalSecret {return {secretType: 0,@@ -525,6 +545,7 @@ function createBaseDataSourceOptions(): DataSourceOptions {authenticationPrivateKeyObfuscated: "",externalSecret: undefined,authenticationType: 0,+ saslConfig: undefined,};}@@ -566,6 +587,9 @@ export const DataSourceOptions = {if (message.authenticationType !== 0) {writer.uint32(96).int32(message.authenticationType);}+ if (message.saslConfig !== undefined) {+ SASLConfig.encode(message.saslConfig, writer.uint32(106).fork()).ldelim();+ }return writer;},@@ -660,6 +684,13 @@ export const DataSourceOptions = {message.authenticationType = reader.int32() as any;continue;+ case 13:+ if (tag !== 106) {+ break;+ }++ message.saslConfig = SASLConfig.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -693,6 +724,7 @@ export const DataSourceOptions = {authenticationType: isSet(object.authenticationType)? dataSourceOptions_AuthenticationTypeFromJSON(object.authenticationType): 0,+ saslConfig: isSet(object.saslConfig) ? SASLConfig.fromJSON(object.saslConfig) : undefined,};},@@ -734,6 +766,9 @@ export const DataSourceOptions = {if (message.authenticationType !== 0) {obj.authenticationType = dataSourceOptions_AuthenticationTypeToJSON(message.authenticationType);}+ if (message.saslConfig !== undefined) {+ obj.saslConfig = SASLConfig.toJSON(message.saslConfig);+ }return obj;},@@ -756,6 +791,295 @@ export const DataSourceOptions = {? DataSourceExternalSecret.fromPartial(object.externalSecret): undefined;message.authenticationType = object.authenticationType ?? 0;+ message.saslConfig = (object.saslConfig !== undefined && object.saslConfig !== null)+ ? SASLConfig.fromPartial(object.saslConfig)+ : undefined;+ return message;+ },+};++function createBaseSASLConfig(): SASLConfig {+ return { krbConfig: undefined, plainConfig: undefined };+}++export const SASLConfig = {+ encode(message: SASLConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.krbConfig !== undefined) {+ KerberosConfig.encode(message.krbConfig, writer.uint32(10).fork()).ldelim();+ }+ if (message.plainConfig !== undefined) {+ PlainSASLConfig.encode(message.plainConfig, writer.uint32(18).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): SASLConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseSASLConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.krbConfig = KerberosConfig.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.plainConfig = PlainSASLConfig.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): SASLConfig {+ return {+ krbConfig: isSet(object.krbConfig) ? KerberosConfig.fromJSON(object.krbConfig) : undefined,+ plainConfig: isSet(object.plainConfig) ? PlainSASLConfig.fromJSON(object.plainConfig) : undefined,+ };+ },++ toJSON(message: SASLConfig): unknown {+ const obj: any = {};+ if (message.krbConfig !== undefined) {+ obj.krbConfig = KerberosConfig.toJSON(message.krbConfig);+ }+ if (message.plainConfig !== undefined) {+ obj.plainConfig = PlainSASLConfig.toJSON(message.plainConfig);+ }+ return obj;+ },++ create(base?: DeepPartial<SASLConfig>): SASLConfig {+ return SASLConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<SASLConfig>): SASLConfig {+ const message = createBaseSASLConfig();+ message.krbConfig = (object.krbConfig !== undefined && object.krbConfig !== null)+ ? KerberosConfig.fromPartial(object.krbConfig)+ : undefined;+ message.plainConfig = (object.plainConfig !== undefined && object.plainConfig !== null)+ ? PlainSASLConfig.fromPartial(object.plainConfig)+ : undefined;+ return message;+ },+};++function createBaseKerberosConfig(): KerberosConfig {+ return { primary: "", instance: "", realm: "", keytab: "", kdcHost: "", kdcTransportProtocol: "" };+}++export const KerberosConfig = {+ encode(message: KerberosConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.primary !== "") {+ writer.uint32(10).string(message.primary);+ }+ if (message.instance !== "") {+ writer.uint32(18).string(message.instance);+ }+ if (message.realm !== "") {+ writer.uint32(26).string(message.realm);+ }+ if (message.keytab !== "") {+ writer.uint32(34).string(message.keytab);+ }+ if (message.kdcHost !== "") {+ writer.uint32(42).string(message.kdcHost);+ }+ if (message.kdcTransportProtocol !== "") {+ writer.uint32(50).string(message.kdcTransportProtocol);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): KerberosConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseKerberosConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.primary = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.instance = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.realm = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.keytab = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.kdcHost = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.kdcTransportProtocol = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): KerberosConfig {+ return {+ primary: isSet(object.primary) ? globalThis.String(object.primary) : "",+ instance: isSet(object.instance) ? globalThis.String(object.instance) : "",+ realm: isSet(object.realm) ? globalThis.String(object.realm) : "",+ keytab: isSet(object.keytab) ? globalThis.String(object.keytab) : "",+ kdcHost: isSet(object.kdcHost) ? globalThis.String(object.kdcHost) : "",+ kdcTransportProtocol: isSet(object.kdcTransportProtocol) ? globalThis.String(object.kdcTransportProtocol) : "",+ };+ },++ toJSON(message: KerberosConfig): unknown {+ const obj: any = {};+ if (message.primary !== "") {+ obj.primary = message.primary;+ }+ if (message.instance !== "") {+ obj.instance = message.instance;+ }+ if (message.realm !== "") {+ obj.realm = message.realm;+ }+ if (message.keytab !== "") {+ obj.keytab = message.keytab;+ }+ if (message.kdcHost !== "") {+ obj.kdcHost = message.kdcHost;+ }+ if (message.kdcTransportProtocol !== "") {+ obj.kdcTransportProtocol = message.kdcTransportProtocol;+ }+ return obj;+ },++ create(base?: DeepPartial<KerberosConfig>): KerberosConfig {+ return KerberosConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<KerberosConfig>): KerberosConfig {+ const message = createBaseKerberosConfig();+ message.primary = object.primary ?? "";+ message.instance = object.instance ?? "";+ message.realm = object.realm ?? "";+ message.keytab = object.keytab ?? "";+ message.kdcHost = object.kdcHost ?? "";+ message.kdcTransportProtocol = object.kdcTransportProtocol ?? "";+ return message;+ },+};++function createBasePlainSASLConfig(): PlainSASLConfig {+ return { username: "", password: "" };+}++export const PlainSASLConfig = {+ encode(message: PlainSASLConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.username !== "") {+ writer.uint32(10).string(message.username);+ }+ if (message.password !== "") {+ writer.uint32(18).string(message.password);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PlainSASLConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlainSASLConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.username = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.password = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PlainSASLConfig {+ return {+ username: isSet(object.username) ? globalThis.String(object.username) : "",+ password: isSet(object.password) ? globalThis.String(object.password) : "",+ };+ },++ toJSON(message: PlainSASLConfig): unknown {+ const obj: any = {};+ if (message.username !== "") {+ obj.username = message.username;+ }+ if (message.password !== "") {+ obj.password = message.password;+ }+ return obj;+ },++ create(base?: DeepPartial<PlainSASLConfig>): PlainSASLConfig {+ return PlainSASLConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<PlainSASLConfig>): PlainSASLConfig {+ const message = createBasePlainSASLConfig();+ message.username = object.username ?? "";+ message.password = object.password ?? "";return message;},};diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.tsindex 382420520b..8d13808f06 100644--- a/frontend/src/types/proto/v1/instance_service.ts+++ b/frontend/src/types/proto/v1/instance_service.ts@@ -472,6 +472,7 @@ export interface DataSource {authenticationPrivateKey: string;externalSecret: DataSourceExternalSecret | undefined;authenticationType: DataSource_AuthenticationType;+ saslConfig: SASLConfig | undefined;}export enum DataSource_AuthenticationType {@@ -521,6 +522,25 @@ export interface InstanceResource {activation: boolean;}+export interface SASLConfig {+ krbConfig?: KerberosConfig | undefined;+ plainConfig?: PlainSASLConfig | undefined;+}++export interface KerberosConfig {+ primary: string;+ instance: string;+ realm: string;+ keytab: string;+ kdcHost: string;+ kdcTransportProtocol: string;+}++export interface PlainSASLConfig {+ username: string;+ password: string;+}+function createBaseGetInstanceRequest(): GetInstanceRequest {return { name: "" };}@@ -2331,6 +2351,7 @@ function createBaseDataSource(): DataSource {authenticationPrivateKey: "",externalSecret: undefined,authenticationType: 0,+ saslConfig: undefined,};}@@ -2402,6 +2423,9 @@ export const DataSource = {if (message.authenticationType !== 0) {writer.uint32(176).int32(message.authenticationType);}+ if (message.saslConfig !== undefined) {+ SASLConfig.encode(message.saslConfig, writer.uint32(186).fork()).ldelim();+ }return writer;},@@ -2566,6 +2590,13 @@ export const DataSource = {message.authenticationType = reader.int32() as any;continue;+ case 23:+ if (tag !== 186) {+ break;+ }++ message.saslConfig = SASLConfig.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -2607,6 +2638,7 @@ export const DataSource = {authenticationType: isSet(object.authenticationType)? dataSource_AuthenticationTypeFromJSON(object.authenticationType): 0,+ saslConfig: isSet(object.saslConfig) ? SASLConfig.fromJSON(object.saslConfig) : undefined,};},@@ -2678,6 +2710,9 @@ export const DataSource = {if (message.authenticationType !== 0) {obj.authenticationType = dataSource_AuthenticationTypeToJSON(message.authenticationType);}+ if (message.saslConfig !== undefined) {+ obj.saslConfig = SASLConfig.toJSON(message.saslConfig);+ }return obj;},@@ -2710,6 +2745,9 @@ export const DataSource = {? DataSourceExternalSecret.fromPartial(object.externalSecret): undefined;message.authenticationType = object.authenticationType ?? 0;+ message.saslConfig = (object.saslConfig !== undefined && object.saslConfig !== null)+ ? SASLConfig.fromPartial(object.saslConfig)+ : undefined;return message;},};@@ -2835,6 +2873,292 @@ export const InstanceResource = {},};+function createBaseSASLConfig(): SASLConfig {+ return { krbConfig: undefined, plainConfig: undefined };+}++export const SASLConfig = {+ encode(message: SASLConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.krbConfig !== undefined) {+ KerberosConfig.encode(message.krbConfig, writer.uint32(10).fork()).ldelim();+ }+ if (message.plainConfig !== undefined) {+ PlainSASLConfig.encode(message.plainConfig, writer.uint32(18).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): SASLConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseSASLConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.krbConfig = KerberosConfig.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.plainConfig = PlainSASLConfig.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): SASLConfig {+ return {+ krbConfig: isSet(object.krbConfig) ? KerberosConfig.fromJSON(object.krbConfig) : undefined,+ plainConfig: isSet(object.plainConfig) ? PlainSASLConfig.fromJSON(object.plainConfig) : undefined,+ };+ },++ toJSON(message: SASLConfig): unknown {+ const obj: any = {};+ if (message.krbConfig !== undefined) {+ obj.krbConfig = KerberosConfig.toJSON(message.krbConfig);+ }+ if (message.plainConfig !== undefined) {+ obj.plainConfig = PlainSASLConfig.toJSON(message.plainConfig);+ }+ return obj;+ },++ create(base?: DeepPartial<SASLConfig>): SASLConfig {+ return SASLConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<SASLConfig>): SASLConfig {+ const message = createBaseSASLConfig();+ message.krbConfig = (object.krbConfig !== undefined && object.krbConfig !== null)+ ? KerberosConfig.fromPartial(object.krbConfig)+ : undefined;+ message.plainConfig = (object.plainConfig !== undefined && object.plainConfig !== null)+ ? PlainSASLConfig.fromPartial(object.plainConfig)+ : undefined;+ return message;+ },+};++function createBaseKerberosConfig(): KerberosConfig {+ return { primary: "", instance: "", realm: "", keytab: "", kdcHost: "", kdcTransportProtocol: "" };+}++export const KerberosConfig = {+ encode(message: KerberosConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.primary !== "") {+ writer.uint32(10).string(message.primary);+ }+ if (message.instance !== "") {+ writer.uint32(18).string(message.instance);+ }+ if (message.realm !== "") {+ writer.uint32(26).string(message.realm);+ }+ if (message.keytab !== "") {+ writer.uint32(34).string(message.keytab);+ }+ if (message.kdcHost !== "") {+ writer.uint32(42).string(message.kdcHost);+ }+ if (message.kdcTransportProtocol !== "") {+ writer.uint32(50).string(message.kdcTransportProtocol);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): KerberosConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseKerberosConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.primary = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.instance = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.realm = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.keytab = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.kdcHost = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.kdcTransportProtocol = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): KerberosConfig {+ return {+ primary: isSet(object.primary) ? globalThis.String(object.primary) : "",+ instance: isSet(object.instance) ? globalThis.String(object.instance) : "",+ realm: isSet(object.realm) ? globalThis.String(object.realm) : "",+ keytab: isSet(object.keytab) ? globalThis.String(object.keytab) : "",+ kdcHost: isSet(object.kdcHost) ? globalThis.String(object.kdcHost) : "",+ kdcTransportProtocol: isSet(object.kdcTransportProtocol) ? globalThis.String(object.kdcTransportProtocol) : "",+ };+ },++ toJSON(message: KerberosConfig): unknown {+ const obj: any = {};+ if (message.primary !== "") {+ obj.primary = message.primary;+ }+ if (message.instance !== "") {+ obj.instance = message.instance;+ }+ if (message.realm !== "") {+ obj.realm = message.realm;+ }+ if (message.keytab !== "") {+ obj.keytab = message.keytab;+ }+ if (message.kdcHost !== "") {+ obj.kdcHost = message.kdcHost;+ }+ if (message.kdcTransportProtocol !== "") {+ obj.kdcTransportProtocol = message.kdcTransportProtocol;+ }+ return obj;+ },++ create(base?: DeepPartial<KerberosConfig>): KerberosConfig {+ return KerberosConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<KerberosConfig>): KerberosConfig {+ const message = createBaseKerberosConfig();+ message.primary = object.primary ?? "";+ message.instance = object.instance ?? "";+ message.realm = object.realm ?? "";+ message.keytab = object.keytab ?? "";+ message.kdcHost = object.kdcHost ?? "";+ message.kdcTransportProtocol = object.kdcTransportProtocol ?? "";+ return message;+ },+};++function createBasePlainSASLConfig(): PlainSASLConfig {+ return { username: "", password: "" };+}++export const PlainSASLConfig = {+ encode(message: PlainSASLConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.username !== "") {+ writer.uint32(10).string(message.username);+ }+ if (message.password !== "") {+ writer.uint32(18).string(message.password);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PlainSASLConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlainSASLConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.username = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.password = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PlainSASLConfig {+ return {+ username: isSet(object.username) ? globalThis.String(object.username) : "",+ password: isSet(object.password) ? globalThis.String(object.password) : "",+ };+ },++ toJSON(message: PlainSASLConfig): unknown {+ const obj: any = {};+ if (message.username !== "") {+ obj.username = message.username;+ }+ if (message.password !== "") {+ obj.password = message.password;+ }+ return obj;+ },++ create(base?: DeepPartial<PlainSASLConfig>): PlainSASLConfig {+ return PlainSASLConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<PlainSASLConfig>): PlainSASLConfig {+ const message = createBasePlainSASLConfig();+ message.username = object.username ?? "";+ message.password = object.password ?? "";+ return message;+ },+};+export type InstanceServiceDefinition = typeof InstanceServiceDefinition;export const InstanceServiceDefinition = {name: "InstanceService",diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex ed12d2ef5e..44dbf9753a 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -8893,6 +8893,8 @@ components:authenticationType:type: integerformat: enum+ saslConfig:+ $ref: '#/components/schemas/SASLConfig'DataSourceExternalSecret:type: objectproperties:@@ -10077,6 +10079,21 @@ components:principal:type: stringdescription: 'Format: users/[email protected]'+ KerberosConfig:+ type: object+ properties:+ primary:+ type: string+ instance:+ type: string+ realm:+ type: string+ keytab:+ type: string+ kdcHost:+ type: string+ kdcTransportProtocol:+ type: stringLDAPIdentityProviderConfig:type: objectproperties:@@ -10764,6 +10781,13 @@ components:properties:license:type: string+ PlainSASLConfig:+ type: object+ properties:+ username:+ type: string+ password:+ type: stringPlan:type: objectproperties:@@ -11501,6 +11525,13 @@ components:RunPlanChecksResponse:type: objectproperties: {}+ SASLConfig:+ type: object+ properties:+ krbConfig:+ $ref: '#/components/schemas/KerberosConfig'+ plainConfig:+ $ref: '#/components/schemas/PlainSASLConfig'SMTPMailDeliverySettingValue:type: objectproperties:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 6b9caee7b8..4946faab69 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -87,6 +87,9 @@- [DataSourceExternalSecret](#bytebase-store-DataSourceExternalSecret)- [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-store-DataSourceExternalSecret-AppRoleAuthOption)- [DataSourceOptions](#bytebase-store-DataSourceOptions)+ - [KerberosConfig](#bytebase-store-KerberosConfig)+ - [PlainSASLConfig](#bytebase-store-PlainSASLConfig)+ - [SASLConfig](#bytebase-store-SASLConfig)- [DataSourceExternalSecret.AppRoleAuthOption.SecretType](#bytebase-store-DataSourceExternalSecret-AppRoleAuthOption-SecretType)- [DataSourceExternalSecret.AuthType](#bytebase-store-DataSourceExternalSecret-AuthType)@@ -1498,6 +1501,59 @@ Used internally for obfuscating the page token.| 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) | | || authentication_type | [DataSourceOptions.AuthenticationType](#bytebase-store-DataSourceOptions-AuthenticationType) | | |+| sasl_config | [SASLConfig](#bytebase-store-SASLConfig) | | |+++++++<a name="bytebase-store-KerberosConfig"></a>++### KerberosConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| primary | [string](#string) | | |+| instance | [string](#string) | | |+| realm | [string](#string) | | |+| keytab | [string](#string) | | |+| kdc_host | [string](#string) | | |+| kdc_transport_protocol | [string](#string) | | |+++++++<a name="bytebase-store-PlainSASLConfig"></a>++### PlainSASLConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| username | [string](#string) | | |+| password | [string](#string) | | |+++++++<a name="bytebase-store-SASLConfig"></a>++### SASLConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| krb_config | [KerberosConfig](#bytebase-store-KerberosConfig) | | |+| plain_config | [PlainSASLConfig](#bytebase-store-PlainSASLConfig) | | |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 3aa579de44..c7d51d1547 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -511,6 +511,18 @@<a href="#bytebase.store.DataSourceOptions"><span class="badge">M</span>DataSourceOptions</a></li>+ <li>+ <a href="#bytebase.store.KerberosConfig"><span class="badge">M</span>KerberosConfig</a>+ </li>++ <li>+ <a href="#bytebase.store.PlainSASLConfig"><span class="badge">M</span>PlainSASLConfig</a>+ </li>++ <li>+ <a href="#bytebase.store.SASLConfig"><span class="badge">M</span>SASLConfig</a>+ </li>+<li><a href="#bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType"><span class="badge">E</span>DataSourceExternalSecret.AppRoleAuthOption.SecretType</a>@@ -4232,6 +4244,134 @@ Used for authentication when connecting to the data source. </p></td><td><p> </p></td></tr>+ <tr>+ <td>sasl_config</td>+ <td><a href="#bytebase.store.SASLConfig">SASLConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.KerberosConfig">KerberosConfig</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>primary</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>instance</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>realm</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>keytab</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>kdc_host</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>kdc_transport_protocol</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.PlainSASLConfig">PlainSASLConfig</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>username</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.SASLConfig">SASLConfig</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>krb_config</td>+ <td><a href="#bytebase.store.KerberosConfig">KerberosConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>plain_config</td>+ <td><a href="#bytebase.store.PlainSASLConfig">PlainSASLConfig</a></td>+ <td></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 4cd2594d9e..aaebcf3b3f 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -78,9 +78,12 @@- [Instance](#bytebase-v1-Instance)- [InstanceOptions](#bytebase-v1-InstanceOptions)- [InstanceResource](#bytebase-v1-InstanceResource)+ - [KerberosConfig](#bytebase-v1-KerberosConfig)- [ListInstancesRequest](#bytebase-v1-ListInstancesRequest)- [ListInstancesResponse](#bytebase-v1-ListInstancesResponse)+ - [PlainSASLConfig](#bytebase-v1-PlainSASLConfig)- [RemoveDataSourceRequest](#bytebase-v1-RemoveDataSourceRequest)+ - [SASLConfig](#bytebase-v1-SASLConfig)- [SearchInstancesRequest](#bytebase-v1-SearchInstancesRequest)- [SearchInstancesResponse](#bytebase-v1-SearchInstancesResponse)- [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest)@@ -1574,6 +1577,7 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. || 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) | | || authentication_type | [DataSource.AuthenticationType](#bytebase-v1-DataSource-AuthenticationType) | | |+| sasl_config | [SASLConfig](#bytebase-v1-SASLConfig) | | |@@ -1711,6 +1715,26 @@ InstanceOptions is the option for instances.+<a name="bytebase-v1-KerberosConfig"></a>++### KerberosConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| primary | [string](#string) | | |+| instance | [string](#string) | | |+| realm | [string](#string) | | |+| keytab | [string](#string) | | |+| kdc_host | [string](#string) | | |+| kdc_transport_protocol | [string](#string) | | |++++++<a name="bytebase-v1-ListInstancesRequest"></a>### ListInstancesRequest@@ -1747,6 +1771,22 @@ When paginating, all other parameters provided to `ListInstances` must match the+<a name="bytebase-v1-PlainSASLConfig"></a>++### PlainSASLConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| username | [string](#string) | | |+| password | [string](#string) | | |++++++<a name="bytebase-v1-RemoveDataSourceRequest"></a>### RemoveDataSourceRequest@@ -1763,6 +1803,22 @@ When paginating, all other parameters provided to `ListInstances` must match the+<a name="bytebase-v1-SASLConfig"></a>++### SASLConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| krb_config | [KerberosConfig](#bytebase-v1-KerberosConfig) | | |+| plain_config | [PlainSASLConfig](#bytebase-v1-PlainSASLConfig) | | |++++++<a name="bytebase-v1-SearchInstancesRequest"></a>### SearchInstancesRequestdiff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex b39c629659..b52ca68c96 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -461,6 +461,10 @@<a href="#bytebase.v1.InstanceResource"><span class="badge">M</span>InstanceResource</a></li>+ <li>+ <a href="#bytebase.v1.KerberosConfig"><span class="badge">M</span>KerberosConfig</a>+ </li>+<li><a href="#bytebase.v1.ListInstancesRequest"><span class="badge">M</span>ListInstancesRequest</a></li>@@ -469,10 +473,18 @@<a href="#bytebase.v1.ListInstancesResponse"><span class="badge">M</span>ListInstancesResponse</a></li>+ <li>+ <a href="#bytebase.v1.PlainSASLConfig"><span class="badge">M</span>PlainSASLConfig</a>+ </li>+<li><a href="#bytebase.v1.RemoveDataSourceRequest"><span class="badge">M</span>RemoveDataSourceRequest</a></li>+ <li>+ <a href="#bytebase.v1.SASLConfig"><span class="badge">M</span>SASLConfig</a>+ </li>+<li><a href="#bytebase.v1.SearchInstancesRequest"><span class="badge">M</span>SearchInstancesRequest</a></li>@@ -5113,6 +5125,13 @@ Used for authentication when connecting to the data source. </p></td><td><p> </p></td></tr>+ <tr>+ <td>sasl_config</td>+ <td><a href="#bytebase.v1.SASLConfig">SASLConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -5475,6 +5494,65 @@ The default is 10 if the value is unset or zero. </p></td>+ <h3 id="bytebase.v1.KerberosConfig">KerberosConfig</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>primary</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>instance</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>realm</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>keytab</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>kdc_host</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>kdc_transport_protocol</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.v1.ListInstancesRequest">ListInstancesRequest</h3><p></p>@@ -5561,6 +5639,37 @@ If this field is omitted, there are no subsequent pages. </p></td>+ <h3 id="bytebase.v1.PlainSASLConfig">PlainSASLConfig</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>username</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.v1.RemoveDataSourceRequest">RemoveDataSourceRequest</h3><p></p>@@ -5594,6 +5703,37 @@ Only READ_ONLY data source can be removed. </p></td>+ <h3 id="bytebase.v1.SASLConfig">SASLConfig</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>krb_config</td>+ <td><a href="#bytebase.v1.KerberosConfig">KerberosConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>plain_config</td>+ <td><a href="#bytebase.v1.PlainSASLConfig">PlainSASLConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.v1.SearchInstancesRequest">SearchInstancesRequest</h3><p></p>diff --git a/proto/generated-go/store/data_source.pb.go b/proto/generated-go/store/data_source.pb.goindex bf22215bb7..b044281be3 100644--- a/proto/generated-go/store/data_source.pb.go+++ b/proto/generated-go/store/data_source.pb.go@@ -384,6 +384,7 @@ type DataSourceOptions struct {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"`AuthenticationType DataSourceOptions_AuthenticationType `protobuf:"varint,12,opt,name=authentication_type,json=authenticationType,proto3,enum=bytebase.store.DataSourceOptions_AuthenticationType" json:"authentication_type,omitempty"`+ SaslConfig *SASLConfig `protobuf:"bytes,13,opt,name=sasl_config,json=saslConfig,proto3" json:"sasl_config,omitempty"`}func (x *DataSourceOptions) Reset() {@@ -502,6 +503,236 @@ func (x *DataSourceOptions) GetAuthenticationType() DataSourceOptions_Authenticareturn DataSourceOptions_AUTHENTICATION_UNSPECIFIED}+func (x *DataSourceOptions) GetSaslConfig() *SASLConfig {+ if x != nil {+ return x.SaslConfig+ }+ return nil+}++type SASLConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Types that are assignable to Mechanism:+ //+ // *SASLConfig_KrbConfig+ // *SASLConfig_PlainConfig+ Mechanism isSASLConfig_Mechanism `protobuf_oneof:"mechanism"`+}++func (x *SASLConfig) Reset() {+ *x = SASLConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_data_source_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *SASLConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*SASLConfig) ProtoMessage() {}++func (x *SASLConfig) 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 SASLConfig.ProtoReflect.Descriptor instead.+func (*SASLConfig) Descriptor() ([]byte, []int) {+ return file_store_data_source_proto_rawDescGZIP(), []int{2}+}++func (m *SASLConfig) GetMechanism() isSASLConfig_Mechanism {+ if m != nil {+ return m.Mechanism+ }+ return nil+}++func (x *SASLConfig) GetKrbConfig() *KerberosConfig {+ if x, ok := x.GetMechanism().(*SASLConfig_KrbConfig); ok {+ return x.KrbConfig+ }+ return nil+}++func (x *SASLConfig) GetPlainConfig() *PlainSASLConfig {+ if x, ok := x.GetMechanism().(*SASLConfig_PlainConfig); ok {+ return x.PlainConfig+ }+ return nil+}++type isSASLConfig_Mechanism interface {+ isSASLConfig_Mechanism()+}++type SASLConfig_KrbConfig struct {+ KrbConfig *KerberosConfig `protobuf:"bytes,1,opt,name=krb_config,json=krbConfig,proto3,oneof"`+}++type SASLConfig_PlainConfig struct {+ PlainConfig *PlainSASLConfig `protobuf:"bytes,2,opt,name=plain_config,json=plainConfig,proto3,oneof"`+}++func (*SASLConfig_KrbConfig) isSASLConfig_Mechanism() {}++func (*SASLConfig_PlainConfig) isSASLConfig_Mechanism() {}++type KerberosConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Primary string `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"`+ Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`+ Realm string `protobuf:"bytes,3,opt,name=realm,proto3" json:"realm,omitempty"`+ Keytab string `protobuf:"bytes,4,opt,name=keytab,proto3" json:"keytab,omitempty"`+ KdcHost string `protobuf:"bytes,5,opt,name=kdc_host,json=kdcHost,proto3" json:"kdc_host,omitempty"`+ KdcTransportProtocol string `protobuf:"bytes,6,opt,name=kdc_transport_protocol,json=kdcTransportProtocol,proto3" json:"kdc_transport_protocol,omitempty"`+}++func (x *KerberosConfig) Reset() {+ *x = KerberosConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_data_source_proto_msgTypes[3]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *KerberosConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*KerberosConfig) ProtoMessage() {}++func (x *KerberosConfig) ProtoReflect() protoreflect.Message {+ mi := &file_store_data_source_proto_msgTypes[3]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use KerberosConfig.ProtoReflect.Descriptor instead.+func (*KerberosConfig) Descriptor() ([]byte, []int) {+ return file_store_data_source_proto_rawDescGZIP(), []int{3}+}++func (x *KerberosConfig) GetPrimary() string {+ if x != nil {+ return x.Primary+ }+ return ""+}++func (x *KerberosConfig) GetInstance() string {+ if x != nil {+ return x.Instance+ }+ return ""+}++func (x *KerberosConfig) GetRealm() string {+ if x != nil {+ return x.Realm+ }+ return ""+}++func (x *KerberosConfig) GetKeytab() string {+ if x != nil {+ return x.Keytab+ }+ return ""+}++func (x *KerberosConfig) GetKdcHost() string {+ if x != nil {+ return x.KdcHost+ }+ return ""+}++func (x *KerberosConfig) GetKdcTransportProtocol() string {+ if x != nil {+ return x.KdcTransportProtocol+ }+ return ""+}++type PlainSASLConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`+ Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`+}++func (x *PlainSASLConfig) Reset() {+ *x = PlainSASLConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_data_source_proto_msgTypes[4]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PlainSASLConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PlainSASLConfig) ProtoMessage() {}++func (x *PlainSASLConfig) ProtoReflect() protoreflect.Message {+ mi := &file_store_data_source_proto_msgTypes[4]+ 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 PlainSASLConfig.ProtoReflect.Descriptor instead.+func (*PlainSASLConfig) Descriptor() ([]byte, []int) {+ return file_store_data_source_proto_rawDescGZIP(), []int{4}+}++func (x *PlainSASLConfig) GetUsername() string {+ if x != nil {+ return x.Username+ }+ return ""+}++func (x *PlainSASLConfig) GetPassword() string {+ if x != nil {+ return x.Password+ }+ return ""+}+type DataSourceExternalSecret_AppRoleAuthOption struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -518,7 +749,7 @@ type DataSourceExternalSecret_AppRoleAuthOption struct {func (x *DataSourceExternalSecret_AppRoleAuthOption) Reset() {*x = DataSourceExternalSecret_AppRoleAuthOption{}if protoimpl.UnsafeEnabled {- mi := &file_store_data_source_proto_msgTypes[2]+ mi := &file_store_data_source_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -531,7 +762,7 @@ func (x *DataSourceExternalSecret_AppRoleAuthOption) String() string {func (*DataSourceExternalSecret_AppRoleAuthOption) ProtoMessage() {}func (x *DataSourceExternalSecret_AppRoleAuthOption) ProtoReflect() protoreflect.Message {- mi := &file_store_data_source_proto_msgTypes[2]+ mi := &file_store_data_source_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -636,7 +867,7 @@ var file_store_data_source_proto_rawDesc = []byte{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, 0x12, 0x0a, 0x0e, 0x56, 0x41,0x55, 0x4c, 0x54, 0x5f, 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, 0xc4, 0x05,+ 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x81, 0x06,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,@@ -675,15 +906,46 @@ var file_store_data_source_proto_rawDesc = []byte{0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,0x70, 0x65, 0x52, 0x12, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69,- 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x5c, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e,- 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a,- 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55,- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08,- 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x4f,- 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x49,- 0x41, 0x4d, 0x10, 0x02, 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,+ 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x61, 0x73, 0x6c, 0x5f, 0x63,+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x41, 0x53,+ 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x73, 0x61, 0x73, 0x6c, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54,+ 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53,+ 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c,+ 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10,+ 0x02, 0x22, 0xa0, 0x01, 0x0a, 0x0a, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x12, 0x3f, 0x0a, 0x0a, 0x6b, 0x72, 0x62, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x72, 0x62, 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x6b, 0x72, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x12, 0x44, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53, 0x41,+ 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x69,+ 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68, 0x61,+ 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xc5, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x72, 0x62, 0x65, 0x72, 0x6f,+ 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61,+ 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72,+ 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a,+ 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65,+ 0x61, 0x6c, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x12, 0x19, 0x0a, 0x08, 0x6b,+ 0x64, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b,+ 0x64, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x64, 0x63, 0x5f, 0x74, 0x72,+ 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6b, 0x64, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73,+ 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x49, 0x0a, 0x0f,+ 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,+ 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70,+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 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,}var (@@ -699,7 +961,7 @@ func file_store_data_source_proto_rawDescGZIP() []byte {}var file_store_data_source_proto_enumTypes = make([]protoimpl.EnumInfo, 4)-var file_store_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 3)+var file_store_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 6)var file_store_data_source_proto_goTypes = []interface{}{(DataSourceExternalSecret_SecretType)(0), // 0: bytebase.store.DataSourceExternalSecret.SecretType(DataSourceExternalSecret_AuthType)(0), // 1: bytebase.store.DataSourceExternalSecret.AuthType@@ -707,20 +969,26 @@ var file_store_data_source_proto_goTypes = []interface{}{(DataSourceOptions_AuthenticationType)(0), // 3: bytebase.store.DataSourceOptions.AuthenticationType(*DataSourceExternalSecret)(nil), // 4: bytebase.store.DataSourceExternalSecret(*DataSourceOptions)(nil), // 5: bytebase.store.DataSourceOptions- (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 6: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption+ (*SASLConfig)(nil), // 6: bytebase.store.SASLConfig+ (*KerberosConfig)(nil), // 7: bytebase.store.KerberosConfig+ (*PlainSASLConfig)(nil), // 8: bytebase.store.PlainSASLConfig+ (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 9: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption}var file_store_data_source_proto_depIdxs = []int32{0, // 0: bytebase.store.DataSourceExternalSecret.secret_type:type_name -> bytebase.store.DataSourceExternalSecret.SecretType1, // 1: bytebase.store.DataSourceExternalSecret.auth_type:type_name -> bytebase.store.DataSourceExternalSecret.AuthType- 6, // 2: bytebase.store.DataSourceExternalSecret.app_role:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption+ 9, // 2: bytebase.store.DataSourceExternalSecret.app_role:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption4, // 3: bytebase.store.DataSourceOptions.external_secret:type_name -> bytebase.store.DataSourceExternalSecret3, // 4: bytebase.store.DataSourceOptions.authentication_type:type_name -> bytebase.store.DataSourceOptions.AuthenticationType- 2, // 5: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType- 6, // [6:6] is the sub-list for method output_type- 6, // [6:6] is the sub-list for method input_type- 6, // [6:6] is the sub-list for extension type_name- 6, // [6:6] is the sub-list for extension extendee- 0, // [0:6] is the sub-list for field type_name+ 6, // 5: bytebase.store.DataSourceOptions.sasl_config:type_name -> bytebase.store.SASLConfig+ 7, // 6: bytebase.store.SASLConfig.krb_config:type_name -> bytebase.store.KerberosConfig+ 8, // 7: bytebase.store.SASLConfig.plain_config:type_name -> bytebase.store.PlainSASLConfig+ 2, // 8: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType+ 9, // [9:9] is the sub-list for method output_type+ 9, // [9:9] is the sub-list for method input_type+ 9, // [9:9] is the sub-list for extension type_name+ 9, // [9:9] is the sub-list for extension extendee+ 0, // [0:9] is the sub-list for field type_name}func init() { file_store_data_source_proto_init() }@@ -754,6 +1022,42 @@ func file_store_data_source_proto_init() {}}file_store_data_source_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*SASLConfig); 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[3].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*KerberosConfig); 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[4].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PlainSASLConfig); 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[5].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DataSourceExternalSecret_AppRoleAuthOption); i {case 0:return &v.state@@ -770,13 +1074,17 @@ func file_store_data_source_proto_init() {(*DataSourceExternalSecret_AppRole)(nil),(*DataSourceExternalSecret_Token)(nil),}+ file_store_data_source_proto_msgTypes[2].OneofWrappers = []interface{}{+ (*SASLConfig_KrbConfig)(nil),+ (*SASLConfig_PlainConfig)(nil),+ }type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_data_source_proto_rawDesc,NumEnums: 4,- NumMessages: 3,+ NumMessages: 6,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/instance_service.pb.go b/proto/generated-go/v1/instance_service.pb.goindex 33ec022556..06549285c6 100644--- a/proto/generated-go/v1/instance_service.pb.go+++ b/proto/generated-go/v1/instance_service.pb.go@@ -1603,6 +1603,7 @@ type DataSource struct {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"`AuthenticationType DataSource_AuthenticationType `protobuf:"varint,22,opt,name=authentication_type,json=authenticationType,proto3,enum=bytebase.v1.DataSource_AuthenticationType" json:"authentication_type,omitempty"`+ SaslConfig *SASLConfig `protobuf:"bytes,23,opt,name=sasl_config,json=saslConfig,proto3" json:"sasl_config,omitempty"`}func (x *DataSource) Reset() {@@ -1791,6 +1792,13 @@ func (x *DataSource) GetAuthenticationType() DataSource_AuthenticationType {return DataSource_AUTHENTICATION_UNSPECIFIED}+func (x *DataSource) GetSaslConfig() *SASLConfig {+ if x != nil {+ return x.SaslConfig+ }+ return nil+}+type InstanceResource struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1870,6 +1878,229 @@ func (x *InstanceResource) GetActivation() bool {return false}+type SASLConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Types that are assignable to Mechanism:+ //+ // *SASLConfig_KrbConfig+ // *SASLConfig_PlainConfig+ Mechanism isSASLConfig_Mechanism `protobuf_oneof:"mechanism"`+}++func (x *SASLConfig) Reset() {+ *x = SASLConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_instance_service_proto_msgTypes[22]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *SASLConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*SASLConfig) ProtoMessage() {}++func (x *SASLConfig) 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 SASLConfig.ProtoReflect.Descriptor instead.+func (*SASLConfig) Descriptor() ([]byte, []int) {+ return file_v1_instance_service_proto_rawDescGZIP(), []int{22}+}++func (m *SASLConfig) GetMechanism() isSASLConfig_Mechanism {+ if m != nil {+ return m.Mechanism+ }+ return nil+}++func (x *SASLConfig) GetKrbConfig() *KerberosConfig {+ if x, ok := x.GetMechanism().(*SASLConfig_KrbConfig); ok {+ return x.KrbConfig+ }+ return nil+}++func (x *SASLConfig) GetPlainConfig() *PlainSASLConfig {+ if x, ok := x.GetMechanism().(*SASLConfig_PlainConfig); ok {+ return x.PlainConfig+ }+ return nil+}++type isSASLConfig_Mechanism interface {+ isSASLConfig_Mechanism()+}++type SASLConfig_KrbConfig struct {+ KrbConfig *KerberosConfig `protobuf:"bytes,1,opt,name=krb_config,json=krbConfig,proto3,oneof"`+}++type SASLConfig_PlainConfig struct {+ PlainConfig *PlainSASLConfig `protobuf:"bytes,2,opt,name=plain_config,json=plainConfig,proto3,oneof"`+}++func (*SASLConfig_KrbConfig) isSASLConfig_Mechanism() {}++func (*SASLConfig_PlainConfig) isSASLConfig_Mechanism() {}++type KerberosConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Primary string `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"`+ Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`+ Realm string `protobuf:"bytes,3,opt,name=realm,proto3" json:"realm,omitempty"`+ Keytab string `protobuf:"bytes,4,opt,name=keytab,proto3" json:"keytab,omitempty"`+ KdcHost string `protobuf:"bytes,5,opt,name=kdc_host,json=kdcHost,proto3" json:"kdc_host,omitempty"`+ KdcTransportProtocol string `protobuf:"bytes,6,opt,name=kdc_transport_protocol,json=kdcTransportProtocol,proto3" json:"kdc_transport_protocol,omitempty"`+}++func (x *KerberosConfig) Reset() {+ *x = KerberosConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_instance_service_proto_msgTypes[23]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *KerberosConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*KerberosConfig) ProtoMessage() {}++func (x *KerberosConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_instance_service_proto_msgTypes[23]+ 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 KerberosConfig.ProtoReflect.Descriptor instead.+func (*KerberosConfig) Descriptor() ([]byte, []int) {+ return file_v1_instance_service_proto_rawDescGZIP(), []int{23}+}++func (x *KerberosConfig) GetPrimary() string {+ if x != nil {+ return x.Primary+ }+ return ""+}++func (x *KerberosConfig) GetInstance() string {+ if x != nil {+ return x.Instance+ }+ return ""+}++func (x *KerberosConfig) GetRealm() string {+ if x != nil {+ return x.Realm+ }+ return ""+}++func (x *KerberosConfig) GetKeytab() string {+ if x != nil {+ return x.Keytab+ }+ return ""+}++func (x *KerberosConfig) GetKdcHost() string {+ if x != nil {+ return x.KdcHost+ }+ return ""+}++func (x *KerberosConfig) GetKdcTransportProtocol() string {+ if x != nil {+ return x.KdcTransportProtocol+ }+ return ""+}++type PlainSASLConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`+ Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`+}++func (x *PlainSASLConfig) Reset() {+ *x = PlainSASLConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_instance_service_proto_msgTypes[24]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PlainSASLConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PlainSASLConfig) ProtoMessage() {}++func (x *PlainSASLConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_instance_service_proto_msgTypes[24]+ 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 PlainSASLConfig.ProtoReflect.Descriptor instead.+func (*PlainSASLConfig) Descriptor() ([]byte, []int) {+ return file_v1_instance_service_proto_rawDescGZIP(), []int{24}+}++func (x *PlainSASLConfig) GetUsername() string {+ if x != nil {+ return x.Username+ }+ return ""+}++func (x *PlainSASLConfig) GetPassword() string {+ if x != nil {+ return x.Password+ }+ return ""+}+type DataSourceExternalSecret_AppRoleAuthOption struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1886,7 +2117,7 @@ type DataSourceExternalSecret_AppRoleAuthOption struct {func (x *DataSourceExternalSecret_AppRoleAuthOption) Reset() {*x = DataSourceExternalSecret_AppRoleAuthOption{}if protoimpl.UnsafeEnabled {- mi := &file_v1_instance_service_proto_msgTypes[22]+ mi := &file_v1_instance_service_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1899,7 +2130,7 @@ func (x *DataSourceExternalSecret_AppRoleAuthOption) String() string {func (*DataSourceExternalSecret_AppRoleAuthOption) ProtoMessage() {}func (x *DataSourceExternalSecret_AppRoleAuthOption) ProtoReflect() protoreflect.Message {- mi := &file_v1_instance_service_proto_msgTypes[22]+ mi := &file_v1_instance_service_proto_msgTypes[25]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2156,7 +2387,7 @@ var file_v1_instance_service_proto_rawDesc = []byte{0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12,0x12, 0x0a, 0x0e, 0x56, 0x41, 0x55, 0x4c, 0x54, 0x5f, 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, 0x9c, 0x07, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x6f, 0x6e, 0x22, 0xd6, 0x07, 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,@@ -2208,146 +2439,177 @@ var file_v1_instance_service_proto_rawDesc = []byte{0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x41, 0x75, 0x74,0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52,0x12, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,- 0x79, 0x70, 0x65, 0x22, 0x5c, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54,- 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50,- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53,- 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c,- 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10,- 0x02, 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, 0x94, 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, 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,+ 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x73, 0x61, 0x73, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x52, 0x0a, 0x73, 0x61, 0x73, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a,+ 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,+ 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43,+ 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,+ 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10,+ 0x01, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55,+ 0x44, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x02, 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, 0x22, 0x9a, 0x01, 0x0a, 0x0a,+ 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0a, 0x6b, 0x72,+ 0x62, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x72,+ 0x62, 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x6b,+ 0x72, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x69,+ 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,+ 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b,+ 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d,+ 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xc5, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x72,+ 0x62, 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x70,+ 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72,+ 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61,+ 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x12,+ 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x64,+ 0x63, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6b, 0x64, 0x63, 0x54,+ 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,+ 0x22, 0x49, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,+ 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 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, 0x94, 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, 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,+ 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, 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, 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,+ 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, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,+ 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,- 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, 0xb1, 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, 0x61,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x3a, 0x01, 0x2a, 0x5a, 0x2c, 0x3a, 0x01, 0x2a, 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,+ 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, 0xb1, 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, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b,+ 0x3a, 0x01, 0x2a, 0x5a, 0x2c, 0x3a, 0x01, 0x2a, 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, 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,+ 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 (@@ -2363,7 +2625,7 @@ func file_v1_instance_service_proto_rawDescGZIP() []byte {}var file_v1_instance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)-var file_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 23)+var file_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 26)var file_v1_instance_service_proto_goTypes = []interface{}{(DataSourceType)(0), // 0: bytebase.v1.DataSourceType(DataSourceExternalSecret_SecretType)(0), // 1: bytebase.v1.DataSourceExternalSecret.SecretType@@ -2392,69 +2654,75 @@ var file_v1_instance_service_proto_goTypes = []interface{}{(*DataSourceExternalSecret)(nil), // 24: bytebase.v1.DataSourceExternalSecret(*DataSource)(nil), // 25: bytebase.v1.DataSource(*InstanceResource)(nil), // 26: bytebase.v1.InstanceResource- (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 27: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption- (*fieldmaskpb.FieldMask)(nil), // 28: google.protobuf.FieldMask- (*durationpb.Duration)(nil), // 29: google.protobuf.Duration- (State)(0), // 30: bytebase.v1.State- (Engine)(0), // 31: bytebase.v1.Engine- (*emptypb.Empty)(nil), // 32: google.protobuf.Empty+ (*SASLConfig)(nil), // 27: bytebase.v1.SASLConfig+ (*KerberosConfig)(nil), // 28: bytebase.v1.KerberosConfig+ (*PlainSASLConfig)(nil), // 29: bytebase.v1.PlainSASLConfig+ (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 30: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption+ (*fieldmaskpb.FieldMask)(nil), // 31: google.protobuf.FieldMask+ (*durationpb.Duration)(nil), // 32: google.protobuf.Duration+ (State)(0), // 33: bytebase.v1.State+ (Engine)(0), // 34: bytebase.v1.Engine+ (*emptypb.Empty)(nil), // 35: google.protobuf.Empty}var file_v1_instance_service_proto_depIdxs = []int32{23, // 0: bytebase.v1.ListInstancesResponse.instances:type_name -> bytebase.v1.Instance23, // 1: bytebase.v1.SearchInstancesResponse.instances:type_name -> bytebase.v1.Instance23, // 2: bytebase.v1.CreateInstanceRequest.instance:type_name -> bytebase.v1.Instance23, // 3: bytebase.v1.UpdateInstanceRequest.instance:type_name -> bytebase.v1.Instance- 28, // 4: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask+ 31, // 4: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask14, // 5: bytebase.v1.BatchSyncInstanceRequest.requests:type_name -> bytebase.v1.SyncInstanceRequest25, // 6: bytebase.v1.AddDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource25, // 7: bytebase.v1.RemoveDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource25, // 8: bytebase.v1.UpdateDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource- 28, // 9: bytebase.v1.UpdateDataSourceRequest.update_mask:type_name -> google.protobuf.FieldMask- 29, // 10: bytebase.v1.InstanceOptions.sync_interval:type_name -> google.protobuf.Duration- 30, // 11: bytebase.v1.Instance.state:type_name -> bytebase.v1.State- 31, // 12: bytebase.v1.Instance.engine:type_name -> bytebase.v1.Engine+ 31, // 9: bytebase.v1.UpdateDataSourceRequest.update_mask:type_name -> google.protobuf.FieldMask+ 32, // 10: bytebase.v1.InstanceOptions.sync_interval:type_name -> google.protobuf.Duration+ 33, // 11: bytebase.v1.Instance.state:type_name -> bytebase.v1.State+ 34, // 12: bytebase.v1.Instance.engine:type_name -> bytebase.v1.Engine25, // 13: bytebase.v1.Instance.data_sources:type_name -> bytebase.v1.DataSource22, // 14: bytebase.v1.Instance.options:type_name -> bytebase.v1.InstanceOptions1, // 15: bytebase.v1.DataSourceExternalSecret.secret_type:type_name -> bytebase.v1.DataSourceExternalSecret.SecretType2, // 16: bytebase.v1.DataSourceExternalSecret.auth_type:type_name -> bytebase.v1.DataSourceExternalSecret.AuthType- 27, // 17: bytebase.v1.DataSourceExternalSecret.app_role:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption+ 30, // 17: bytebase.v1.DataSourceExternalSecret.app_role:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption0, // 18: bytebase.v1.DataSource.type:type_name -> bytebase.v1.DataSourceType24, // 19: bytebase.v1.DataSource.external_secret:type_name -> bytebase.v1.DataSourceExternalSecret4, // 20: bytebase.v1.DataSource.authentication_type:type_name -> bytebase.v1.DataSource.AuthenticationType- 31, // 21: bytebase.v1.InstanceResource.engine:type_name -> bytebase.v1.Engine- 25, // 22: bytebase.v1.InstanceResource.data_sources:type_name -> bytebase.v1.DataSource- 3, // 23: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType- 5, // 24: bytebase.v1.InstanceService.GetInstance:input_type -> bytebase.v1.GetInstanceRequest- 6, // 25: bytebase.v1.InstanceService.ListInstances:input_type -> bytebase.v1.ListInstancesRequest- 8, // 26: bytebase.v1.InstanceService.SearchInstances:input_type -> bytebase.v1.SearchInstancesRequest- 10, // 27: bytebase.v1.InstanceService.CreateInstance:input_type -> bytebase.v1.CreateInstanceRequest- 11, // 28: bytebase.v1.InstanceService.UpdateInstance:input_type -> bytebase.v1.UpdateInstanceRequest- 12, // 29: bytebase.v1.InstanceService.DeleteInstance:input_type -> bytebase.v1.DeleteInstanceRequest- 13, // 30: bytebase.v1.InstanceService.UndeleteInstance:input_type -> bytebase.v1.UndeleteInstanceRequest- 14, // 31: bytebase.v1.InstanceService.SyncInstance:input_type -> bytebase.v1.SyncInstanceRequest- 16, // 32: bytebase.v1.InstanceService.BatchSyncInstance:input_type -> bytebase.v1.BatchSyncInstanceRequest- 18, // 33: bytebase.v1.InstanceService.AddDataSource:input_type -> bytebase.v1.AddDataSourceRequest- 19, // 34: bytebase.v1.InstanceService.RemoveDataSource:input_type -> bytebase.v1.RemoveDataSourceRequest- 20, // 35: bytebase.v1.InstanceService.UpdateDataSource:input_type -> bytebase.v1.UpdateDataSourceRequest- 21, // 36: bytebase.v1.InstanceService.SyncSlowQueries:input_type -> bytebase.v1.SyncSlowQueriesRequest- 23, // 37: bytebase.v1.InstanceService.GetInstance:output_type -> bytebase.v1.Instance- 7, // 38: bytebase.v1.InstanceService.ListInstances:output_type -> bytebase.v1.ListInstancesResponse- 9, // 39: bytebase.v1.InstanceService.SearchInstances:output_type -> bytebase.v1.SearchInstancesResponse- 23, // 40: bytebase.v1.InstanceService.CreateInstance:output_type -> bytebase.v1.Instance- 23, // 41: bytebase.v1.InstanceService.UpdateInstance:output_type -> bytebase.v1.Instance- 32, // 42: bytebase.v1.InstanceService.DeleteInstance:output_type -> google.protobuf.Empty- 23, // 43: bytebase.v1.InstanceService.UndeleteInstance:output_type -> bytebase.v1.Instance- 15, // 44: bytebase.v1.InstanceService.SyncInstance:output_type -> bytebase.v1.SyncInstanceResponse- 17, // 45: bytebase.v1.InstanceService.BatchSyncInstance:output_type -> bytebase.v1.BatchSyncInstanceResponse- 23, // 46: bytebase.v1.InstanceService.AddDataSource:output_type -> bytebase.v1.Instance- 23, // 47: bytebase.v1.InstanceService.RemoveDataSource:output_type -> bytebase.v1.Instance- 23, // 48: bytebase.v1.InstanceService.UpdateDataSource:output_type -> bytebase.v1.Instance- 32, // 49: bytebase.v1.InstanceService.SyncSlowQueries:output_type -> google.protobuf.Empty- 37, // [37:50] is the sub-list for method output_type- 24, // [24:37] is the sub-list for method input_type- 24, // [24:24] is the sub-list for extension type_name- 24, // [24:24] is the sub-list for extension extendee- 0, // [0:24] is the sub-list for field type_name+ 27, // 21: bytebase.v1.DataSource.sasl_config:type_name -> bytebase.v1.SASLConfig+ 34, // 22: bytebase.v1.InstanceResource.engine:type_name -> bytebase.v1.Engine+ 25, // 23: bytebase.v1.InstanceResource.data_sources:type_name -> bytebase.v1.DataSource+ 28, // 24: bytebase.v1.SASLConfig.krb_config:type_name -> bytebase.v1.KerberosConfig+ 29, // 25: bytebase.v1.SASLConfig.plain_config:type_name -> bytebase.v1.PlainSASLConfig+ 3, // 26: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType+ 5, // 27: bytebase.v1.InstanceService.GetInstance:input_type -> bytebase.v1.GetInstanceRequest+ 6, // 28: bytebase.v1.InstanceService.ListInstances:input_type -> bytebase.v1.ListInstancesRequest+ 8, // 29: bytebase.v1.InstanceService.SearchInstances:input_type -> bytebase.v1.SearchInstancesRequest+ 10, // 30: bytebase.v1.InstanceService.CreateInstance:input_type -> bytebase.v1.CreateInstanceRequest+ 11, // 31: bytebase.v1.InstanceService.UpdateInstance:input_type -> bytebase.v1.UpdateInstanceRequest+ 12, // 32: bytebase.v1.InstanceService.DeleteInstance:input_type -> bytebase.v1.DeleteInstanceRequest+ 13, // 33: bytebase.v1.InstanceService.UndeleteInstance:input_type -> bytebase.v1.UndeleteInstanceRequest+ 14, // 34: bytebase.v1.InstanceService.SyncInstance:input_type -> bytebase.v1.SyncInstanceRequest+ 16, // 35: bytebase.v1.InstanceService.BatchSyncInstance:input_type -> bytebase.v1.BatchSyncInstanceRequest+ 18, // 36: bytebase.v1.InstanceService.AddDataSource:input_type -> bytebase.v1.AddDataSourceRequest+ 19, // 37: bytebase.v1.InstanceService.RemoveDataSource:input_type -> bytebase.v1.RemoveDataSourceRequest+ 20, // 38: bytebase.v1.InstanceService.UpdateDataSource:input_type -> bytebase.v1.UpdateDataSourceRequest+ 21, // 39: bytebase.v1.InstanceService.SyncSlowQueries:input_type -> bytebase.v1.SyncSlowQueriesRequest+ 23, // 40: bytebase.v1.InstanceService.GetInstance:output_type -> bytebase.v1.Instance+ 7, // 41: bytebase.v1.InstanceService.ListInstances:output_type -> bytebase.v1.ListInstancesResponse+ 9, // 42: bytebase.v1.InstanceService.SearchInstances:output_type -> bytebase.v1.SearchInstancesResponse+ 23, // 43: bytebase.v1.InstanceService.CreateInstance:output_type -> bytebase.v1.Instance+ 23, // 44: bytebase.v1.InstanceService.UpdateInstance:output_type -> bytebase.v1.Instance+ 35, // 45: bytebase.v1.InstanceService.DeleteInstance:output_type -> google.protobuf.Empty+ 23, // 46: bytebase.v1.InstanceService.UndeleteInstance:output_type -> bytebase.v1.Instance+ 15, // 47: bytebase.v1.InstanceService.SyncInstance:output_type -> bytebase.v1.SyncInstanceResponse+ 17, // 48: bytebase.v1.InstanceService.BatchSyncInstance:output_type -> bytebase.v1.BatchSyncInstanceResponse+ 23, // 49: bytebase.v1.InstanceService.AddDataSource:output_type -> bytebase.v1.Instance+ 23, // 50: bytebase.v1.InstanceService.RemoveDataSource:output_type -> bytebase.v1.Instance+ 23, // 51: bytebase.v1.InstanceService.UpdateDataSource:output_type -> bytebase.v1.Instance+ 35, // 52: bytebase.v1.InstanceService.SyncSlowQueries:output_type -> google.protobuf.Empty+ 40, // [40:53] is the sub-list for method output_type+ 27, // [27:40] is the sub-list for method input_type+ 27, // [27:27] is the sub-list for extension type_name+ 27, // [27:27] is the sub-list for extension extendee+ 0, // [0:27] is the sub-list for field type_name}func init() { file_v1_instance_service_proto_init() }@@ -2729,6 +2997,42 @@ func file_v1_instance_service_proto_init() {}}file_v1_instance_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*SASLConfig); 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[23].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*KerberosConfig); 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[24].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PlainSASLConfig); 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[25].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DataSourceExternalSecret_AppRoleAuthOption); i {case 0:return &v.state@@ -2745,13 +3049,17 @@ func file_v1_instance_service_proto_init() {(*DataSourceExternalSecret_AppRole)(nil),(*DataSourceExternalSecret_Token)(nil),}+ file_v1_instance_service_proto_msgTypes[22].OneofWrappers = []interface{}{+ (*SASLConfig_KrbConfig)(nil),+ (*SASLConfig_PlainConfig)(nil),+ }type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_instance_service_proto_rawDesc,NumEnums: 5,- NumMessages: 23,+ NumMessages: 26,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/data_source.proto b/proto/store/data_source.protoindex 5b047dcaf3..9cb46ebaff 100644--- a/proto/store/data_source.proto+++ b/proto/store/data_source.proto@@ -91,4 +91,27 @@ message DataSourceOptions {}AuthenticationType authentication_type = 12;++ SASLConfig sasl_config = 13;+}++message SASLConfig {+ oneof mechanism {+ KerberosConfig krb_config = 1;+ PlainSASLConfig plain_config = 2;+ }+}++message KerberosConfig {+ string primary = 1;+ string instance = 2;+ string realm = 3;+ string keytab = 4;+ string kdc_host = 5;+ string kdc_transport_protocol = 6;+}++message PlainSASLConfig {+ string username = 1;+ string password = 2;}diff --git a/proto/v1/instance_service.proto b/proto/v1/instance_service.protoindex a3fe66525f..29124892e1 100644--- a/proto/v1/instance_service.proto+++ b/proto/v1/instance_service.proto@@ -402,6 +402,8 @@ message DataSource {}AuthenticationType authentication_type = 22;++ SASLConfig sasl_config = 23;}enum DataSourceType {@@ -421,3 +423,24 @@ message InstanceResource {bool activation = 5;}++message SASLConfig {+ oneof mechanism {+ KerberosConfig krb_config = 1;+ PlainSASLConfig plain_config = 2;+ }+}++message KerberosConfig {+ string primary = 1;+ string instance = 2;+ string realm = 3;+ string keytab = 4;+ string kdc_host = 5;+ string kdc_transport_protocol = 6;+}++message PlainSASLConfig {+ string username = 1;+ string password = 2;+}