Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fix proto message about kerberos (#11855)

Azusain836350d0c76b
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.go
index 4c07f78f0c..1a7e051ffc 100644
--- a/backend/api/v1/instance_service.go
+++ b/backend/api/v1/instance_service.go
@@ -1221,16 +1221,12 @@ func convertToStoreDataSourceSaslConfig(saslConfig *v1pb.SASLConfig) *storepb.SA
Realm: m.KrbConfig.Realm,
Keytab: m.KrbConfig.Keytab,
KdcHost: m.KrbConfig.KdcHost,
+ KdcPort: m.KrbConfig.KdcPort,
KdcTransportProtocol: m.KrbConfig.KdcTransportProtocol,
},
}
- case *v1pb.SASLConfig_PlainConfig:
- storeSaslConfig.Mechanism = &storepb.SASLConfig_PlainConfig{
- PlainConfig: &storepb.PlainSASLConfig{
- Username: m.PlainConfig.Username,
- Password: m.PlainConfig.Password,
- },
- }
+ default:
+ return nil
}
return storeSaslConfig
}
diff --git a/backend/component/dbfactory/dbfactory.go b/backend/component/dbfactory/dbfactory.go
index bad92896d0..be0b9ffc5f 100644
--- a/backend/component/dbfactory/dbfactory.go
+++ b/backend/component/dbfactory/dbfactory.go
@@ -186,11 +186,12 @@ func (d *DBFactory) GetDataSourceDriver(ctx context.Context, instance *store.Ins
Realm: db.Realm{
Name: t.KrbConfig.Realm,
KDCHost: t.KrbConfig.KdcHost,
+ KDCPort: t.KrbConfig.KdcPort,
KDCTransportProtocol: t.KrbConfig.KdcTransportProtocol,
},
}
- case *storepb.SASLConfig_PlainConfig:
- dbSaslConfig = &db.PlainSASLConfig{}
+ default:
+ dbSaslConfig = nil
}
connectionContext.InstanceID = instance.ResourceID
connectionContext.EngineVersion = instance.EngineVersion
diff --git a/backend/plugin/db/hive/hive.go b/backend/plugin/db/hive/hive.go
index 49071229a8..ef09e3a3c7 100644
--- a/backend/plugin/db/hive/hive.go
+++ b/backend/plugin/db/hive/hive.go
@@ -51,7 +51,10 @@ func (d *Driver) Open(_ context.Context, _ storepb.Engine, config db.ConnectionC
d.ctx = config.ConnectionContext
if d.connPool == nil {
- if config.SASLConfig == nil || !config.SASLConfig.Check() {
+ if config.SASLConfig == nil {
+ config.SASLConfig = &db.PlainSASLConfig{}
+ }
+ if !config.SASLConfig.Check() {
return nil, errors.New("SASL settings error")
}
if err := config.SASLConfig.InitEnv(); err != nil {
diff --git a/backend/plugin/db/hive/hive_conn_pool.go b/backend/plugin/db/hive/hive_conn_pool.go
index 5e239bc693..3ea6859231 100644
--- a/backend/plugin/db/hive/hive_conn_pool.go
+++ b/backend/plugin/db/hive/hive_conn_pool.go
@@ -51,7 +51,7 @@ func CreateHiveConnPool(
switch t := config.SASLConfig.(type) {
// Kerberos.
case *db.KerberosConfig:
- hiveConfig.Hostname = t.Instance
+ hiveConfig.Hostname = config.Host
hiveConfig.Service = t.Primary
// Plain.
default:
diff --git a/backend/plugin/db/sasl.go b/backend/plugin/db/sasl.go
index e9a047452f..07c97221f7 100644
--- a/backend/plugin/db/sasl.go
+++ b/backend/plugin/db/sasl.go
@@ -19,6 +19,7 @@ type SASLConfig interface {
type Realm struct {
Name string
KDCHost string
+ KDCPort string
KDCTransportProtocol string
}
type KerberosConfig struct {
@@ -39,8 +40,14 @@ var (
singletonEnv = KerberosEnv{
DefaultKrbConfPath: "/etc/krb5.conf",
}
- KinitCmdFmt = "kinit -kt %s %s/%s@%s"
- KrbConfRealmFmt = "%s = {\n\tkdc = %s/%s\n}"
+ // example: 'root/[email protected]' or '[email protected]'.
+ KinitCmdFmt = "kinit -kt %s %s@%s"
+ // example:
+ // [realm]
+ // EXAMPLE.COM = {
+ // kdc = tcp/192.168.31.2:88
+ // }
+ KrbConfRealmFmt = "%s = {\n\tkdc = %s/%s:%s\n}"
)
func (krbConfig *KerberosConfig) InitEnv() error {
@@ -55,7 +62,15 @@ func (krbConfig *KerberosConfig) InitEnv() error {
return err
}
- cmd := exec.Command(fmt.Sprintf(KinitCmdFmt, krbConfig.KeytabPath, krbConfig.Primary, krbConfig.Instance, krbConfig.Realm))
+ var cmdString string
+ if krbConfig.Instance != "" {
+ cmdString = fmt.Sprintf(KinitCmdFmt, krbConfig.KeytabPath, krbConfig.Primary, krbConfig.Realm.Name)
+ } else {
+ primaryAndInstance := fmt.Sprintf("%s/%s", krbConfig.Primary, krbConfig.Instance)
+ cmdString = fmt.Sprintf(KinitCmdFmt, krbConfig.KeytabPath, primaryAndInstance, krbConfig.Realm.Name)
+ }
+
+ cmd := exec.Command(cmdString)
if err := cmd.Run(); err != nil {
return errors.Wrapf(err, "failed to execute command kinit")
}
@@ -81,7 +96,7 @@ func (env *KerberosEnv) AddRealm(realm Realm) error {
return err
}
for _, realm := range env.realms {
- text := fmt.Sprintf(KrbConfRealmFmt, realm.Name, realm.KDCTransportProtocol, realm.KDCHost)
+ text := fmt.Sprintf(KrbConfRealmFmt, realm.Name, realm.KDCTransportProtocol, realm.KDCHost, realm.KDCPort)
if _, err = file.WriteString(text); err != nil {
return err
}
diff --git a/frontend/src/types/proto/store/data_source.ts b/frontend/src/types/proto/store/data_source.ts
index e819686e3c..449cd82dbd 100644
--- a/frontend/src/types/proto/store/data_source.ts
+++ b/frontend/src/types/proto/store/data_source.ts
@@ -301,7 +301,6 @@ export function dataSourceOptions_AuthenticationTypeToNumber(object: DataSourceO
export interface SASLConfig {
krbConfig?: KerberosConfig | undefined;
- plainConfig?: PlainSASLConfig | undefined;
}
export interface KerberosConfig {
@@ -310,14 +309,10 @@ export interface KerberosConfig {
realm: string;
keytab: string;
kdcHost: string;
+ kdcPort: string;
kdcTransportProtocol: string;
}
-export interface PlainSASLConfig {
- username: string;
- password: string;
-}
-
function createBaseDataSourceExternalSecret(): DataSourceExternalSecret {
return {
secretType: DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED,
@@ -879,7 +874,7 @@ export const DataSourceOptions = {
};
function createBaseSASLConfig(): SASLConfig {
- return { krbConfig: undefined, plainConfig: undefined };
+ return { krbConfig: undefined };
}
export const SASLConfig = {
@@ -887,9 +882,6 @@ export const SASLConfig = {
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;
},
@@ -907,13 +899,6 @@ export const SASLConfig = {
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;
@@ -924,10 +909,7 @@ export const SASLConfig = {
},
fromJSON(object: any): SASLConfig {
- return {
- krbConfig: isSet(object.krbConfig) ? KerberosConfig.fromJSON(object.krbConfig) : undefined,
- plainConfig: isSet(object.plainConfig) ? PlainSASLConfig.fromJSON(object.plainConfig) : undefined,
- };
+ return { krbConfig: isSet(object.krbConfig) ? KerberosConfig.fromJSON(object.krbConfig) : undefined };
},
toJSON(message: SASLConfig): unknown {
@@ -935,9 +917,6 @@ export const SASLConfig = {
if (message.krbConfig !== undefined) {
obj.krbConfig = KerberosConfig.toJSON(message.krbConfig);
}
- if (message.plainConfig !== undefined) {
- obj.plainConfig = PlainSASLConfig.toJSON(message.plainConfig);
- }
return obj;
},
@@ -949,15 +928,12 @@ export const SASLConfig = {
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: "" };
+ return { primary: "", instance: "", realm: "", keytab: "", kdcHost: "", kdcPort: "", kdcTransportProtocol: "" };
}
export const KerberosConfig = {
@@ -977,8 +953,11 @@ export const KerberosConfig = {
if (message.kdcHost !== "") {
writer.uint32(42).string(message.kdcHost);
}
+ if (message.kdcPort !== "") {
+ writer.uint32(50).string(message.kdcPort);
+ }
if (message.kdcTransportProtocol !== "") {
- writer.uint32(50).string(message.kdcTransportProtocol);
+ writer.uint32(58).string(message.kdcTransportProtocol);
}
return writer;
},
@@ -1030,6 +1009,13 @@ export const KerberosConfig = {
break;
}
+ message.kdcPort = reader.string();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
message.kdcTransportProtocol = reader.string();
continue;
}
@@ -1048,6 +1034,7 @@ export const KerberosConfig = {
realm: isSet(object.realm) ? globalThis.String(object.realm) : "",
keytab: isSet(object.keytab) ? globalThis.String(object.keytab) : "",
kdcHost: isSet(object.kdcHost) ? globalThis.String(object.kdcHost) : "",
+ kdcPort: isSet(object.kdcPort) ? globalThis.String(object.kdcPort) : "",
kdcTransportProtocol: isSet(object.kdcTransportProtocol) ? globalThis.String(object.kdcTransportProtocol) : "",
};
},
@@ -1069,6 +1056,9 @@ export const KerberosConfig = {
if (message.kdcHost !== "") {
obj.kdcHost = message.kdcHost;
}
+ if (message.kdcPort !== "") {
+ obj.kdcPort = message.kdcPort;
+ }
if (message.kdcTransportProtocol !== "") {
obj.kdcTransportProtocol = message.kdcTransportProtocol;
}
@@ -1085,85 +1075,12 @@ export const KerberosConfig = {
message.realm = object.realm ?? "";
message.keytab = object.keytab ?? "";
message.kdcHost = object.kdcHost ?? "";
+ message.kdcPort = object.kdcPort ?? "";
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;
- },
-};
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.ts
index c2deb5b1f1..1ba08302f9 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -615,7 +615,6 @@ export interface InstanceResource {
export interface SASLConfig {
krbConfig?: KerberosConfig | undefined;
- plainConfig?: PlainSASLConfig | undefined;
}
export interface KerberosConfig {
@@ -624,14 +623,10 @@ export interface KerberosConfig {
realm: string;
keytab: string;
kdcHost: string;
+ kdcPort: string;
kdcTransportProtocol: string;
}
-export interface PlainSASLConfig {
- username: string;
- password: string;
-}
-
function createBaseGetInstanceRequest(): GetInstanceRequest {
return { name: "" };
}
@@ -2976,7 +2971,7 @@ export const InstanceResource = {
};
function createBaseSASLConfig(): SASLConfig {
- return { krbConfig: undefined, plainConfig: undefined };
+ return { krbConfig: undefined };
}
export const SASLConfig = {
@@ -2984,9 +2979,6 @@ export const SASLConfig = {
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;
},
@@ -3004,13 +2996,6 @@ export const SASLConfig = {
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;
@@ -3021,10 +3006,7 @@ export const SASLConfig = {
},
fromJSON(object: any): SASLConfig {
- return {
- krbConfig: isSet(object.krbConfig) ? KerberosConfig.fromJSON(object.krbConfig) : undefined,
- plainConfig: isSet(object.plainConfig) ? PlainSASLConfig.fromJSON(object.plainConfig) : undefined,
- };
+ return { krbConfig: isSet(object.krbConfig) ? KerberosConfig.fromJSON(object.krbConfig) : undefined };
},
toJSON(message: SASLConfig): unknown {
@@ -3032,9 +3014,6 @@ export const SASLConfig = {
if (message.krbConfig !== undefined) {
obj.krbConfig = KerberosConfig.toJSON(message.krbConfig);
}
- if (message.plainConfig !== undefined) {
- obj.plainConfig = PlainSASLConfig.toJSON(message.plainConfig);
- }
return obj;
},
@@ -3046,15 +3025,12 @@ export const SASLConfig = {
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: "" };
+ return { primary: "", instance: "", realm: "", keytab: "", kdcHost: "", kdcPort: "", kdcTransportProtocol: "" };
}
export const KerberosConfig = {
@@ -3074,8 +3050,11 @@ export const KerberosConfig = {
if (message.kdcHost !== "") {
writer.uint32(42).string(message.kdcHost);
}
+ if (message.kdcPort !== "") {
+ writer.uint32(50).string(message.kdcPort);
+ }
if (message.kdcTransportProtocol !== "") {
- writer.uint32(50).string(message.kdcTransportProtocol);
+ writer.uint32(58).string(message.kdcTransportProtocol);
}
return writer;
},
@@ -3127,6 +3106,13 @@ export const KerberosConfig = {
break;
}
+ message.kdcPort = reader.string();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
message.kdcTransportProtocol = reader.string();
continue;
}
@@ -3145,6 +3131,7 @@ export const KerberosConfig = {
realm: isSet(object.realm) ? globalThis.String(object.realm) : "",
keytab: isSet(object.keytab) ? globalThis.String(object.keytab) : "",
kdcHost: isSet(object.kdcHost) ? globalThis.String(object.kdcHost) : "",
+ kdcPort: isSet(object.kdcPort) ? globalThis.String(object.kdcPort) : "",
kdcTransportProtocol: isSet(object.kdcTransportProtocol) ? globalThis.String(object.kdcTransportProtocol) : "",
};
},
@@ -3166,6 +3153,9 @@ export const KerberosConfig = {
if (message.kdcHost !== "") {
obj.kdcHost = message.kdcHost;
}
+ if (message.kdcPort !== "") {
+ obj.kdcPort = message.kdcPort;
+ }
if (message.kdcTransportProtocol !== "") {
obj.kdcTransportProtocol = message.kdcTransportProtocol;
}
@@ -3182,85 +3172,12 @@ export const KerberosConfig = {
message.realm = object.realm ?? "";
message.keytab = object.keytab ?? "";
message.kdcHost = object.kdcHost ?? "";
+ message.kdcPort = object.kdcPort ?? "";
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.yaml
index 17e8a24c99..0ce655691a 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -10517,6 +10517,8 @@ components:
type: string
kdcHost:
type: string
+ kdcPort:
+ type: string
kdcTransportProtocol:
type: string
LDAPIdentityProviderConfig:
@@ -11265,13 +11267,6 @@ components:
properties:
license:
type: string
- PlainSASLConfig:
- type: object
- properties:
- username:
- type: string
- password:
- type: string
Plan:
type: object
properties:
@@ -12114,8 +12109,6 @@ components:
properties:
krbConfig:
$ref: '#/components/schemas/KerberosConfig'
- plainConfig:
- $ref: '#/components/schemas/PlainSASLConfig'
SMTPMailDeliverySettingValue:
type: object
properties:
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 3e06ad4be9..4b640b11cd 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -88,7 +88,6 @@
- [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)
@@ -1522,6 +1521,7 @@ Used internally for obfuscating the page token.
| realm | [string](#string) | | |
| keytab | [string](#string) | | |
| kdc_host | [string](#string) | | |
+| kdc_port | [string](#string) | | |
| kdc_transport_protocol | [string](#string) | | |
@@ -1529,22 +1529,6 @@ Used internally for obfuscating the page token.
-<a name="bytebase-store-PlainSASLConfig"></a>
-
-### PlainSASLConfig
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| username | [string](#string) | | |
-| password | [string](#string) | | |
-
-
-
-
-
-
<a name="bytebase-store-SASLConfig"></a>
### SASLConfig
@@ -1554,7 +1538,6 @@ Used internally for obfuscating the page token.
| 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.html
index 8a217e854c..fd8ba0f166 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -515,10 +515,6 @@
<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>
@@ -4314,38 +4310,14 @@ Used for authentication when connecting to the data source. </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>kdc_port</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>password</td>
+ <td>kdc_transport_protocol</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -4375,13 +4347,6 @@ Used for authentication when connecting to the data source. </p></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.md
index 9e1bddce54..dc470b9699 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -81,7 +81,6 @@
- [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)
@@ -1728,6 +1727,7 @@ InstanceOptions is the option for instances.
| realm | [string](#string) | | |
| keytab | [string](#string) | | |
| kdc_host | [string](#string) | | |
+| kdc_port | [string](#string) | | |
| kdc_transport_protocol | [string](#string) | | |
@@ -1771,22 +1771,6 @@ 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
@@ -1812,7 +1796,6 @@ When paginating, all other parameters provided to `ListInstances` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| krb_config | [KerberosConfig](#bytebase-v1-KerberosConfig) | | |
-| plain_config | [PlainSASLConfig](#bytebase-v1-PlainSASLConfig) | | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index f6552d7656..b7b90484d5 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -473,10 +473,6 @@
<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>
@@ -5541,6 +5537,13 @@ The default is 10 if the value is unset or zero. </p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>kdc_port</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>
@@ -5641,37 +5644,6 @@ 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>
@@ -5722,13 +5694,6 @@ Only READ_ONLY data source can be removed. </p></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>
diff --git a/proto/generated-go/store/data_source.pb.go b/proto/generated-go/store/data_source.pb.go
index db8ea492cf..447915ef56 100644
--- a/proto/generated-go/store/data_source.pb.go
+++ b/proto/generated-go/store/data_source.pb.go
@@ -521,7 +521,6 @@ type SASLConfig struct {
// Types that are assignable to Mechanism:
//
// *SASLConfig_KrbConfig
- // *SASLConfig_PlainConfig
Mechanism isSASLConfig_Mechanism `protobuf_oneof:"mechanism"`
}
@@ -571,13 +570,6 @@ func (x *SASLConfig) GetKrbConfig() *KerberosConfig {
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()
}
@@ -586,14 +578,8 @@ 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
@@ -604,7 +590,8 @@ type KerberosConfig struct {
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"`
+ KdcPort string `protobuf:"bytes,6,opt,name=kdc_port,json=kdcPort,proto3" json:"kdc_port,omitempty"`
+ KdcTransportProtocol string `protobuf:"bytes,7,opt,name=kdc_transport_protocol,json=kdcTransportProtocol,proto3" json:"kdc_transport_protocol,omitempty"`
}
func (x *KerberosConfig) Reset() {
@@ -674,64 +661,16 @@ func (x *KerberosConfig) GetKdcHost() string {
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 {
+func (x *KerberosConfig) GetKdcPort() string {
if x != nil {
- return x.Username
+ return x.KdcPort
}
return ""
}
-func (x *PlainSASLConfig) GetPassword() string {
+func (x *KerberosConfig) GetKdcTransportProtocol() string {
if x != nil {
- return x.Password
+ return x.KdcTransportProtocol
}
return ""
}
@@ -752,7 +691,7 @@ type DataSourceExternalSecret_AppRoleAuthOption struct {
func (x *DataSourceExternalSecret_AppRoleAuthOption) Reset() {
*x = DataSourceExternalSecret_AppRoleAuthOption{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_data_source_proto_msgTypes[5]
+ mi := &file_store_data_source_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -765,7 +704,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[5]
+ mi := &file_store_data_source_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -920,36 +859,28 @@ var file_store_data_source_proto_rawDesc = []byte{
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, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x57, 0x53, 0x5f, 0x52, 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d,
- 0x10, 0x03, 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,
+ 0x10, 0x03, 0x22, 0x5a, 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, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xe0,
+ 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, 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63, 0x50, 0x6f, 0x72, 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, 0x07, 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, 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 (
@@ -965,7 +896,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, 6)
+var file_store_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_store_data_source_proto_goTypes = []interface{}{
(DataSourceExternalSecret_SecretType)(0), // 0: bytebase.store.DataSourceExternalSecret.SecretType
(DataSourceExternalSecret_AuthType)(0), // 1: bytebase.store.DataSourceExternalSecret.AuthType
@@ -975,24 +906,22 @@ var file_store_data_source_proto_goTypes = []interface{}{
(*DataSourceOptions)(nil), // 5: bytebase.store.DataSourceOptions
(*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
+ (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 8: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption
}
var file_store_data_source_proto_depIdxs = []int32{
0, // 0: bytebase.store.DataSourceExternalSecret.secret_type:type_name -> bytebase.store.DataSourceExternalSecret.SecretType
1, // 1: bytebase.store.DataSourceExternalSecret.auth_type:type_name -> bytebase.store.DataSourceExternalSecret.AuthType
- 9, // 2: bytebase.store.DataSourceExternalSecret.app_role:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption
+ 8, // 2: bytebase.store.DataSourceExternalSecret.app_role:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption
4, // 3: bytebase.store.DataSourceOptions.external_secret:type_name -> bytebase.store.DataSourceExternalSecret
3, // 4: bytebase.store.DataSourceOptions.authentication_type:type_name -> bytebase.store.DataSourceOptions.AuthenticationType
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
+ 2, // 7: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType
+ 8, // [8:8] is the sub-list for method output_type
+ 8, // [8:8] is the sub-list for method input_type
+ 8, // [8:8] is the sub-list for extension type_name
+ 8, // [8:8] is the sub-list for extension extendee
+ 0, // [0:8] is the sub-list for field type_name
}
func init() { file_store_data_source_proto_init() }
@@ -1050,18 +979,6 @@ func file_store_data_source_proto_init() {
}
}
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
@@ -1080,7 +997,6 @@ func file_store_data_source_proto_init() {
}
file_store_data_source_proto_msgTypes[2].OneofWrappers = []interface{}{
(*SASLConfig_KrbConfig)(nil),
- (*SASLConfig_PlainConfig)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -1088,7 +1004,7 @@ func file_store_data_source_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_data_source_proto_rawDesc,
NumEnums: 4,
- NumMessages: 6,
+ NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/generated-go/v1/instance_service.pb.go b/proto/generated-go/v1/instance_service.pb.go
index ae485f28b1..339eb1293d 100644
--- a/proto/generated-go/v1/instance_service.pb.go
+++ b/proto/generated-go/v1/instance_service.pb.go
@@ -1889,7 +1889,6 @@ type SASLConfig struct {
// Types that are assignable to Mechanism:
//
// *SASLConfig_KrbConfig
- // *SASLConfig_PlainConfig
Mechanism isSASLConfig_Mechanism `protobuf_oneof:"mechanism"`
}
@@ -1939,13 +1938,6 @@ func (x *SASLConfig) GetKrbConfig() *KerberosConfig {
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()
}
@@ -1954,14 +1946,8 @@ 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
@@ -1972,7 +1958,8 @@ type KerberosConfig struct {
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"`
+ KdcPort string `protobuf:"bytes,6,opt,name=kdc_port,json=kdcPort,proto3" json:"kdc_port,omitempty"`
+ KdcTransportProtocol string `protobuf:"bytes,7,opt,name=kdc_transport_protocol,json=kdcTransportProtocol,proto3" json:"kdc_transport_protocol,omitempty"`
}
func (x *KerberosConfig) Reset() {
@@ -2042,64 +2029,16 @@ func (x *KerberosConfig) GetKdcHost() string {
return ""
}
-func (x *KerberosConfig) GetKdcTransportProtocol() string {
+func (x *KerberosConfig) GetKdcPort() string {
if x != nil {
- return x.KdcTransportProtocol
+ return x.KdcPort
}
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 {
+func (x *KerberosConfig) GetKdcTransportProtocol() string {
if x != nil {
- return x.Password
+ return x.KdcTransportProtocol
}
return ""
}
@@ -2120,7 +2059,7 @@ type DataSourceExternalSecret_AppRoleAuthOption struct {
func (x *DataSourceExternalSecret_AppRoleAuthOption) Reset() {
*x = DataSourceExternalSecret_AppRoleAuthOption{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_instance_service_proto_msgTypes[25]
+ mi := &file_v1_instance_service_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2133,7 +2072,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[25]
+ mi := &file_v1_instance_service_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2466,154 +2405,147 @@ var file_v1_instance_service_proto_rawDesc = []byte{
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, 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, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x57, 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, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68,
+ 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xe0, 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, 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x70,
+ 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63, 0x50, 0x6f,
+ 0x72, 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, 0x07, 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, 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, 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, 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,
+ 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, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f,
- 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x7b,
- 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e,
- 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
- 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b,
- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x12, 0x86, 0x01, 0x0a, 0x11,
- 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63,
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x76, 0x31,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68,
- 0x53, 0x79, 0x6e, 0x63, 0x12, 0x7e, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22,
- 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44,
- 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61,
- 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01,
- 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65,
- 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87,
- 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,
- 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31,
- 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,
- 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 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, 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,
+ 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65,
+ 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
+ 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x12, 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, 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 (
@@ -2629,7 +2561,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, 26)
+var file_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
var file_v1_instance_service_proto_goTypes = []interface{}{
(DataSourceType)(0), // 0: bytebase.v1.DataSourceType
(DataSourceExternalSecret_SecretType)(0), // 1: bytebase.v1.DataSourceExternalSecret.SecretType
@@ -2660,73 +2592,71 @@ var file_v1_instance_service_proto_goTypes = []interface{}{
(*InstanceResource)(nil), // 26: bytebase.v1.InstanceResource
(*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
+ (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 29: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption
+ (*fieldmaskpb.FieldMask)(nil), // 30: google.protobuf.FieldMask
+ (*durationpb.Duration)(nil), // 31: google.protobuf.Duration
+ (State)(0), // 32: bytebase.v1.State
+ (Engine)(0), // 33: bytebase.v1.Engine
+ (*emptypb.Empty)(nil), // 34: google.protobuf.Empty
}
var file_v1_instance_service_proto_depIdxs = []int32{
23, // 0: bytebase.v1.ListInstancesResponse.instances:type_name -> bytebase.v1.Instance
23, // 1: bytebase.v1.SearchInstancesResponse.instances:type_name -> bytebase.v1.Instance
23, // 2: bytebase.v1.CreateInstanceRequest.instance:type_name -> bytebase.v1.Instance
23, // 3: bytebase.v1.UpdateInstanceRequest.instance:type_name -> bytebase.v1.Instance
- 31, // 4: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 30, // 4: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask
14, // 5: bytebase.v1.BatchSyncInstanceRequest.requests:type_name -> bytebase.v1.SyncInstanceRequest
25, // 6: bytebase.v1.AddDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
25, // 7: bytebase.v1.RemoveDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
25, // 8: bytebase.v1.UpdateDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
- 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.Engine
+ 30, // 9: bytebase.v1.UpdateDataSourceRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 31, // 10: bytebase.v1.InstanceOptions.sync_interval:type_name -> google.protobuf.Duration
+ 32, // 11: bytebase.v1.Instance.state:type_name -> bytebase.v1.State
+ 33, // 12: bytebase.v1.Instance.engine:type_name -> bytebase.v1.Engine
25, // 13: bytebase.v1.Instance.data_sources:type_name -> bytebase.v1.DataSource
22, // 14: bytebase.v1.Instance.options:type_name -> bytebase.v1.InstanceOptions
1, // 15: bytebase.v1.DataSourceExternalSecret.secret_type:type_name -> bytebase.v1.DataSourceExternalSecret.SecretType
2, // 16: bytebase.v1.DataSourceExternalSecret.auth_type:type_name -> bytebase.v1.DataSourceExternalSecret.AuthType
- 30, // 17: bytebase.v1.DataSourceExternalSecret.app_role:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption
+ 29, // 17: bytebase.v1.DataSourceExternalSecret.app_role:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption
0, // 18: bytebase.v1.DataSource.type:type_name -> bytebase.v1.DataSourceType
24, // 19: bytebase.v1.DataSource.external_secret:type_name -> bytebase.v1.DataSourceExternalSecret
4, // 20: bytebase.v1.DataSource.authentication_type:type_name -> bytebase.v1.DataSource.AuthenticationType
27, // 21: bytebase.v1.DataSource.sasl_config:type_name -> bytebase.v1.SASLConfig
- 34, // 22: bytebase.v1.InstanceResource.engine:type_name -> bytebase.v1.Engine
+ 33, // 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
+ 3, // 25: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType
+ 5, // 26: bytebase.v1.InstanceService.GetInstance:input_type -> bytebase.v1.GetInstanceRequest
+ 6, // 27: bytebase.v1.InstanceService.ListInstances:input_type -> bytebase.v1.ListInstancesRequest
+ 8, // 28: bytebase.v1.InstanceService.SearchInstances:input_type -> bytebase.v1.SearchInstancesRequest
+ 10, // 29: bytebase.v1.InstanceService.CreateInstance:input_type -> bytebase.v1.CreateInstanceRequest
+ 11, // 30: bytebase.v1.InstanceService.UpdateInstance:input_type -> bytebase.v1.UpdateInstanceRequest
+ 12, // 31: bytebase.v1.InstanceService.DeleteInstance:input_type -> bytebase.v1.DeleteInstanceRequest
+ 13, // 32: bytebase.v1.InstanceService.UndeleteInstance:input_type -> bytebase.v1.UndeleteInstanceRequest
+ 14, // 33: bytebase.v1.InstanceService.SyncInstance:input_type -> bytebase.v1.SyncInstanceRequest
+ 16, // 34: bytebase.v1.InstanceService.BatchSyncInstance:input_type -> bytebase.v1.BatchSyncInstanceRequest
+ 18, // 35: bytebase.v1.InstanceService.AddDataSource:input_type -> bytebase.v1.AddDataSourceRequest
+ 19, // 36: bytebase.v1.InstanceService.RemoveDataSource:input_type -> bytebase.v1.RemoveDataSourceRequest
+ 20, // 37: bytebase.v1.InstanceService.UpdateDataSource:input_type -> bytebase.v1.UpdateDataSourceRequest
+ 21, // 38: bytebase.v1.InstanceService.SyncSlowQueries:input_type -> bytebase.v1.SyncSlowQueriesRequest
+ 23, // 39: bytebase.v1.InstanceService.GetInstance:output_type -> bytebase.v1.Instance
+ 7, // 40: bytebase.v1.InstanceService.ListInstances:output_type -> bytebase.v1.ListInstancesResponse
+ 9, // 41: bytebase.v1.InstanceService.SearchInstances:output_type -> bytebase.v1.SearchInstancesResponse
+ 23, // 42: bytebase.v1.InstanceService.CreateInstance:output_type -> bytebase.v1.Instance
+ 23, // 43: bytebase.v1.InstanceService.UpdateInstance:output_type -> bytebase.v1.Instance
+ 34, // 44: bytebase.v1.InstanceService.DeleteInstance:output_type -> google.protobuf.Empty
+ 23, // 45: bytebase.v1.InstanceService.UndeleteInstance:output_type -> bytebase.v1.Instance
+ 15, // 46: bytebase.v1.InstanceService.SyncInstance:output_type -> bytebase.v1.SyncInstanceResponse
+ 17, // 47: bytebase.v1.InstanceService.BatchSyncInstance:output_type -> bytebase.v1.BatchSyncInstanceResponse
+ 23, // 48: bytebase.v1.InstanceService.AddDataSource:output_type -> bytebase.v1.Instance
+ 23, // 49: bytebase.v1.InstanceService.RemoveDataSource:output_type -> bytebase.v1.Instance
+ 23, // 50: bytebase.v1.InstanceService.UpdateDataSource:output_type -> bytebase.v1.Instance
+ 34, // 51: bytebase.v1.InstanceService.SyncSlowQueries:output_type -> google.protobuf.Empty
+ 39, // [39:52] is the sub-list for method output_type
+ 26, // [26:39] is the sub-list for method input_type
+ 26, // [26:26] is the sub-list for extension type_name
+ 26, // [26:26] is the sub-list for extension extendee
+ 0, // [0:26] is the sub-list for field type_name
}
func init() { file_v1_instance_service_proto_init() }
@@ -3025,18 +2955,6 @@ func file_v1_instance_service_proto_init() {
}
}
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
@@ -3055,7 +2973,6 @@ func file_v1_instance_service_proto_init() {
}
file_v1_instance_service_proto_msgTypes[22].OneofWrappers = []interface{}{
(*SASLConfig_KrbConfig)(nil),
- (*SASLConfig_PlainConfig)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -3063,7 +2980,7 @@ func file_v1_instance_service_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_instance_service_proto_rawDesc,
NumEnums: 5,
- NumMessages: 26,
+ NumMessages: 25,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/store/data_source.proto b/proto/store/data_source.proto
index 7a903024da..63d33fc9c1 100644
--- a/proto/store/data_source.proto
+++ b/proto/store/data_source.proto
@@ -99,7 +99,6 @@ message DataSourceOptions {
message SASLConfig {
oneof mechanism {
KerberosConfig krb_config = 1;
- PlainSASLConfig plain_config = 2;
}
}
@@ -109,10 +108,6 @@ message KerberosConfig {
string realm = 3;
string keytab = 4;
string kdc_host = 5;
- string kdc_transport_protocol = 6;
-}
-
-message PlainSASLConfig {
- string username = 1;
- string password = 2;
+ string kdc_port = 6;
+ string kdc_transport_protocol = 7;
}
diff --git a/proto/v1/instance_service.proto b/proto/v1/instance_service.proto
index badbc6e004..2e297c3aac 100644
--- a/proto/v1/instance_service.proto
+++ b/proto/v1/instance_service.proto
@@ -428,7 +428,6 @@ message InstanceResource {
message SASLConfig {
oneof mechanism {
KerberosConfig krb_config = 1;
- PlainSASLConfig plain_config = 2;
}
}
@@ -438,10 +437,6 @@ message KerberosConfig {
string realm = 3;
string keytab = 4;
string kdc_host = 5;
- string kdc_transport_protocol = 6;
-}
-
-message PlainSASLConfig {
- string username = 1;
- string password = 2;
+ string kdc_port = 6;
+ string kdc_transport_protocol = 7;
}