Skip to content

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

chore: support aws as external secret (#11569)

ecmadaoc278fecb94c5
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.go
index cb6656358a..a01ef6b1c5 100644
--- a/backend/api/v1/instance_service.go
+++ b/backend/api/v1/instance_service.go
@@ -1106,6 +1106,8 @@ func convertToV1DataSourceExternalSecret(externalSecret *storepb.DataSourceExter
resp.AuthOption = &v1pb.DataSourceExternalSecret_Token{
Token: "",
}
+ case v1pb.DataSourceExternalSecret_AWS_ENVIRONMENT:
+ resp.AuthOption = secret.AuthOption
}
return resp, nil
@@ -1154,7 +1156,10 @@ func convertToStoreDataSourceExternalSecret(externalSecret *v1pb.DataSourceExter
if err := convertV1PbToStorePb(externalSecret, secret); err != nil {
return nil, status.Errorf(codes.Internal, "failed to convert external secret with error: %v", err.Error())
}
- if secret.Url == "" {
+ if secret.SecretName == "" || secret.PasswordKeyName == "" {
+ return nil, status.Errorf(codes.InvalidArgument, "missing secret name or key name")
+ }
+ if secret.Url == "" && secret.SecretType == storepb.DataSourceExternalSecret_VAULT_KV_V2 {
return nil, status.Errorf(codes.InvalidArgument, "missing Vault URL")
}
@@ -1164,6 +1169,11 @@ func convertToStoreDataSourceExternalSecret(externalSecret *v1pb.DataSourceExter
if secret.GetAppRole() == nil {
return nil, status.Errorf(codes.InvalidArgument, "missing Vault app role")
}
+ case storepb.DataSourceExternalSecret_AWS_ENVIRONMENT:
+ config := secret.GetAwsEnvironmentConfig()
+ if config == nil {
+ return nil, status.Errorf(codes.InvalidArgument, "missing AWS environment config")
+ }
default:
return nil, status.Errorf(codes.InvalidArgument, "unsupport auth type: %v", secret.AuthType)
}
diff --git a/backend/component/secret/aws.go b/backend/component/secret/aws.go
new file mode 100644
index 0000000000..0ec858d180
--- /dev/null
+++ b/backend/component/secret/aws.go
@@ -0,0 +1,88 @@
+package secret
+
+import (
+ "context"
+ "encoding/json"
+ "os"
+
+ "github.com/pkg/errors"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/config"
+ "github.com/aws/aws-sdk-go-v2/credentials"
+ "github.com/aws/aws-sdk-go-v2/service/secretsmanager"
+
+ storepb "github.com/bytebase/bytebase/proto/generated-go/store"
+)
+
+// getAWSClient returns the AWS secret manager client.
+//
+// https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/
+func getAWSClient(ctx context.Context, externalSecret *storepb.DataSourceExternalSecret) (*secretsmanager.Client, error) {
+ environmentConfig := externalSecret.GetAwsEnvironmentConfig()
+ if environmentConfig == nil {
+ return nil, errors.Errorf("empty aws environment config")
+ }
+
+ region := os.Getenv(environmentConfig.Region)
+ if region == "" {
+ return nil, errors.Errorf("AWS region not found in environment %s", environmentConfig.Region)
+ }
+ accessKeyID := os.Getenv(environmentConfig.AccessKeyId)
+ if accessKeyID == "" {
+ return nil, errors.Errorf("AWS access key id not found in environment %s", environmentConfig.AccessKeyId)
+ }
+ secretAccessKey := os.Getenv(environmentConfig.SecretAccessKey)
+ if secretAccessKey == "" {
+ return nil, errors.Errorf("AWS secret access key not found in environment %s", environmentConfig.SecretAccessKey)
+ }
+
+ cfg, err := config.LoadDefaultConfig(ctx,
+ config.WithRegion(region),
+ config.WithCredentialsProvider(
+ credentials.NewStaticCredentialsProvider(
+ accessKeyID,
+ secretAccessKey,
+ os.Getenv(environmentConfig.SessionToken),
+ ),
+ ),
+ )
+ if err != nil {
+ return nil, errors.Wrapf(err, "failed to init aws config: %v", err.Error())
+ }
+
+ return secretsmanager.NewFromConfig(cfg), nil
+}
+
+func getSecretFromAWS(ctx context.Context, externalSecret *storepb.DataSourceExternalSecret) (string, error) {
+ client, err := getAWSClient(ctx, externalSecret)
+ if err != nil {
+ return "", err
+ }
+
+ input := &secretsmanager.GetSecretValueInput{
+ SecretId: aws.String(externalSecret.SecretName),
+ VersionStage: aws.String("AWSCURRENT"), // VersionStage defaults to AWSCURRENT if unspecified
+ }
+
+ secret, err := client.GetSecretValue(ctx, input)
+ if err != nil {
+ // For a list of exceptions thrown, see
+ // https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
+ return "", errors.Wrapf(err, "failed to get aws secret")
+ }
+
+ if secret.SecretString == nil {
+ return "", errors.Errorf("empty secret string")
+ }
+
+ dataMap := make(map[string]any)
+ if err := json.Unmarshal([]byte(*secret.SecretString), &dataMap); err != nil {
+ return "", errors.Wrapf(err, "failed to unmarshal aws secret string")
+ }
+ val, ok := dataMap[externalSecret.PasswordKeyName].(string)
+ if !ok {
+ return "", errors.Errorf("cannot convert %s value to string", externalSecret.PasswordKeyName)
+ }
+ return val, nil
+}
diff --git a/backend/component/secret/secret.go b/backend/component/secret/secret.go
index dc29d2f989..f0824aaeb4 100644
--- a/backend/component/secret/secret.go
+++ b/backend/component/secret/secret.go
@@ -20,7 +20,12 @@ var secretCache = make(map[string]string)
func ReplaceExternalSecret(ctx context.Context, secret string, externalSecret *storepb.DataSourceExternalSecret) (string, error) {
if externalSecret != nil {
// TODO: consider cache?
- return getSecretFromVault(ctx, externalSecret)
+ switch externalSecret.SecretType {
+ case storepb.DataSourceExternalSecret_AWS_SECRETS_MANAGER:
+ return getSecretFromAWS(ctx, externalSecret)
+ case storepb.DataSourceExternalSecret_VAULT_KV_V2:
+ return getSecretFromVault(ctx, externalSecret)
+ }
}
return getSecretFromText(secret)
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
index 40da336793..bb5c20cc16 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
@@ -28,19 +28,34 @@
v-if="isDev()"
class="textlabel mb-2"
:value="state.passwordType"
- @update:value="changePasswordType"
+ @update:value="changeSecretType"
>
- <NRadio value="PLAIN">
+ <NRadio
+ :value="DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED"
+ >
{{ $t("instance.password-type.password") }}
</NRadio>
- <NRadio value="EXTERNAL_SECRET">
+ <NRadio :value="DataSourceExternalSecret_SecretType.VAULT_KV_V2">
<div class="flex items-center gap-x-1">
+ {{ $t("instance.password-type.external-secret-vault") }}
+ <FeatureBadge feature="bb.feature.external-secret-manager" />
+ </div>
+ </NRadio>
+ <NRadio
+ :value="DataSourceExternalSecret_SecretType.AWS_SECRETS_MANAGER"
+ >
+ <div class="flex items-center gap-x-1">
+ {{ $t("instance.password-type.external-secret-aws") }}
<FeatureBadge feature="bb.feature.external-secret-manager" />
- {{ $t("instance.password-type.external-secret") }}
</div>
</NRadio>
</NRadioGroup>
- <div v-if="state.passwordType === 'PLAIN'">
+ <div
+ v-if="
+ state.passwordType ===
+ DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED
+ "
+ >
<label class="textlabel block">
{{ $t("common.password") }}
</label>
@@ -77,22 +92,30 @@
/>
</div>
<div v-else-if="dataSource.externalSecret" class="space-y-4">
- <div class="sm:col-span-2 sm:col-start-1">
- <label class="textlabel block">
- {{ $t("instance.external-secret.vault-url") }}
- </label>
- <BBTextField
- v-model:value="dataSource.externalSecret.url"
- :required="true"
- class="mt-1 w-full"
- :disabled="!allowEdit"
- :placeholder="$t('instance.external-secret.vault-url')"
- />
- </div>
- <!-- App role is not enabled -->
- <!-- <div class="sm:col-span-2 sm:col-start-1 space-y-2">
+ <div
+ v-if="
+ state.passwordType ===
+ DataSourceExternalSecret_SecretType.VAULT_KV_V2
+ "
+ class="space-y-4"
+ >
+ <div class="sm:col-span-2 sm:col-start-1">
+ <label class="textlabel block">
+ {{ $t("instance.external-secret-vault.vault-url") }}
+ <span class="text-red-600">*</span>
+ </label>
+ <BBTextField
+ v-model:value="dataSource.externalSecret.url"
+ :required="true"
+ class="mt-1 w-full"
+ :disabled="!allowEdit"
+ :placeholder="$t('instance.external-secret-vault.vault-url')"
+ />
+ </div>
+ <!-- App role is not enabled -->
+ <!-- <div class="sm:col-span-2 sm:col-start-1 space-y-2">
<label class="textlabel block">
- {{ $t("instance.external-secret.vault-auth-type.self") }}
+ {{ $t("instance.external-secret-vault.vault-auth-type.self") }}
</label>
<NRadioGroup
class="textlabel mb-2"
@@ -100,168 +123,302 @@
@update:value="changeExternalSecretAuthType"
>
<NRadio :value="DataSourceExternalSecret_AuthType.TOKEN">
- {{ $t("instance.external-secret.vault-auth-type.token.self") }}
+ {{ $t("instance.external-secret-vault.vault-auth-type.token.self") }}
</NRadio>
<NRadio :value="DataSourceExternalSecret_AuthType.APP_ROLE">
- {{ $t("instance.external-secret.vault-auth-type.app-role.self") }}
+ {{ $t("instance.external-secret-vault.vault-auth-type.app-role.self") }}
</NRadio>
</NRadioGroup>
</div> -->
- <div
- v-if="
- dataSource.externalSecret.authType ===
- DataSourceExternalSecret_AuthType.TOKEN
- "
- class="sm:col-span-2 sm:col-start-1"
- >
- <label class="textlabel block">
- {{ $t("instance.external-secret.vault-auth-type.token.api-token") }}
- </label>
- <div class="flex space-x-2 text-sm mb-1">
- <div class="text-gray-400">
- {{ $t("instance.external-secret.vault-auth-type.token.tips") }}
- </div>
- <LearnMoreLink
- url="https://developer.hashicorp.com/vault/tutorials/operations/generate-root"
- class="ml-1 text-sm"
- />
- </div>
- <BBTextField
- :value="dataSource.externalSecret.token ?? ''"
- class="mt-1 w-full"
- :disabled="!allowEdit"
- :placeholder="secretInputPlaceholder"
- @update:value="
- (val: string) => {
- const ds = dataSource;
- ds.externalSecret!.token = val;
- }
+ <div
+ v-if="
+ dataSource.externalSecret.authType ===
+ DataSourceExternalSecret_AuthType.TOKEN
"
- />
- </div>
- <div v-else-if="dataSource.externalSecret.appRole" class="space-y-4">
- <div class="sm:col-span-2 sm:col-start-1">
+ class="sm:col-span-2 sm:col-start-1"
+ >
<label class="textlabel block">
{{
- $t("instance.external-secret.vault-auth-type.app-role.role-id")
+ $t(
+ "instance.external-secret-vault.vault-auth-type.token.api-token"
+ )
}}
+ <span class="text-red-600">*</span>
</label>
+ <div class="flex space-x-2 text-sm mb-1">
+ <div class="text-gray-400">
+ {{
+ $t(
+ "instance.external-secret-vault.vault-auth-type.token.tips"
+ )
+ }}
+ </div>
+ <LearnMoreLink
+ url="https://developer.hashicorp.com/vault/tutorials/operations/generate-root"
+ class="ml-1 text-sm"
+ />
+ </div>
<BBTextField
- :value="dataSource.externalSecret.appRole.roleId"
- :required="true"
+ :value="dataSource.externalSecret.token ?? ''"
class="mt-1 w-full"
:disabled="!allowEdit"
- :placeholder="`${$t(
- 'instance.external-secret.vault-auth-type.app-role.role-id'
- )} - ${$t('common.write-only')}`"
+ :placeholder="secretInputPlaceholder"
@update:value="
(val: string) => {
const ds = dataSource;
- ds.externalSecret!.appRole!.roleId = val;
+ ds.externalSecret!.token = val;
}
"
/>
</div>
- <div class="sm:col-span-2 sm:col-start-1">
- <label class="textlabel block">
- {{
- $t(
- "instance.external-secret.vault-auth-type.app-role.secret-id"
- )
- }}
- </label>
- <i18n-t
- tag="div"
- keypath="instance.external-secret.vault-auth-type.app-role.secret-tips"
- class="text-gray-400 text-sm mb-1"
- >
- <template #learn_more>
- <LearnMoreLink
- url="https://developer.hashicorp.com/vault/tutorials/auth-methods/approle"
- class="ml-1 text-sm"
- />
- </template>
- </i18n-t>
- <NRadioGroup
- v-model:value="dataSource.externalSecret.appRole.type"
- class="textlabel my-1"
- >
- <NRadio
- :value="
- DataSourceExternalSecret_AppRoleAuthOption_SecretType.PLAIN
- "
- >
+ <div v-else-if="dataSource.externalSecret.appRole" class="space-y-4">
+ <div class="sm:col-span-2 sm:col-start-1">
+ <label class="textlabel block">
{{
$t(
- "instance.external-secret.vault-auth-type.app-role.secret-plain-text"
+ "instance.external-secret-vault.vault-auth-type.app-role.role-id"
)
}}
- </NRadio>
- <NRadio
- :value="
- DataSourceExternalSecret_AppRoleAuthOption_SecretType.ENVIRONMENT
+ <span class="text-red-600">*</span>
+ </label>
+ <BBTextField
+ :value="dataSource.externalSecret.appRole.roleId"
+ :required="true"
+ class="mt-1 w-full"
+ :disabled="!allowEdit"
+ :placeholder="`${$t(
+ 'instance.external-secret-vault.vault-auth-type.app-role.role-id'
+ )} - ${$t('common.write-only')}`"
+ @update:value="
+ (val: string) => {
+ const ds = dataSource;
+ ds.externalSecret!.appRole!.roleId = val;
+ }
"
- >
+ />
+ </div>
+ <div class="sm:col-span-2 sm:col-start-1">
+ <label class="textlabel block">
{{
$t(
- "instance.external-secret.vault-auth-type.app-role.secret-env-name"
+ "instance.external-secret-vault.vault-auth-type.app-role.secret-id"
)
}}
- </NRadio>
- </NRadioGroup>
+ <span class="text-red-600">*</span>
+ </label>
+ <i18n-t
+ tag="div"
+ keypath="instance.external-secret-vault.vault-auth-type.app-role.secret-tips"
+ class="text-gray-400 text-sm mb-1"
+ >
+ <template #learn_more>
+ <LearnMoreLink
+ url="https://developer.hashicorp.com/vault/tutorials/auth-methods/approle"
+ class="ml-1 text-sm"
+ />
+ </template>
+ </i18n-t>
+ <NRadioGroup
+ v-model:value="dataSource.externalSecret.appRole.type"
+ class="textlabel my-1"
+ >
+ <NRadio
+ :value="
+ DataSourceExternalSecret_AppRoleAuthOption_SecretType.PLAIN
+ "
+ >
+ {{
+ $t(
+ "instance.external-secret-vault.vault-auth-type.app-role.secret-plain-text"
+ )
+ }}
+ </NRadio>
+ <NRadio
+ :value="
+ DataSourceExternalSecret_AppRoleAuthOption_SecretType.ENVIRONMENT
+ "
+ >
+ {{
+ $t(
+ "instance.external-secret-vault.vault-auth-type.app-role.secret-env-name"
+ )
+ }}
+ </NRadio>
+ </NRadioGroup>
+ <BBTextField
+ :value="dataSource.externalSecret.appRole.secretId"
+ class="mt-1 w-full"
+ :disabled="!allowEdit"
+ :placeholder="secretInputPlaceholder"
+ @update:value="
+ (val: string) => {
+ const ds = dataSource;
+ ds.externalSecret!.appRole!.secretId = val;
+ }
+ "
+ />
+ </div>
+ </div>
+ <div class="sm:col-span-2 sm:col-start-1">
+ <label class="textlabel block">
+ {{
+ $t("instance.external-secret-vault.vault-secret-engine-name")
+ }}
+ <span class="text-red-600">*</span>
+ </label>
+ <div class="flex space-x-2 text-sm mb-1 text-gray-400">
+ {{
+ $t("instance.external-secret-vault.vault-secret-engine-tips")
+ }}
+ </div>
<BBTextField
- :value="dataSource.externalSecret.appRole.secretId"
+ v-model:value="dataSource.externalSecret.engineName"
+ :required="true"
class="mt-1 w-full"
:disabled="!allowEdit"
- :placeholder="secretInputPlaceholder"
- @update:value="
- (val: string) => {
- const ds = dataSource;
- ds.externalSecret!.appRole!.secretId = val;
- }
+ :placeholder="
+ $t('instance.external-secret-vault.vault-secret-engine-name')
"
/>
</div>
</div>
- <div class="sm:col-span-2 sm:col-start-1">
- <label class="textlabel block">
- {{ $t("instance.external-secret.vault-secret-engine-name") }}
- </label>
- <div class="flex space-x-2 text-sm mb-1 text-gray-400">
- {{ $t("instance.external-secret.vault-secret-engine-tips") }}
+ <div
+ v-else-if="
+ state.passwordType ===
+ DataSourceExternalSecret_SecretType.AWS_SECRETS_MANAGER
+ "
+ >
+ <div
+ v-if="dataSource.externalSecret.awsEnvironmentConfig"
+ class="space-y-4"
+ >
+ <div class="sm:col-span-2 sm:col-start-1">
+ <label class="textlabel block">
+ {{
+ $t("instance.external-secret-aws.environment.access-key-id")
+ }}
+ <span class="text-red-600">*</span>
+ </label>
+ <div class="flex space-x-2 text-sm mb-1 text-gray-400">
+ {{
+ $t(
+ "instance.external-secret-aws.environment.access-key-id-tips"
+ )
+ }}
+ </div>
+ <BBTextField
+ v-model:value="
+ dataSource.externalSecret.awsEnvironmentConfig.accessKeyId
+ "
+ :required="true"
+ class="mt-1 w-full"
+ :disabled="!allowEdit"
+ :placeholder="
+ $t('instance.external-secret-aws.environment.access-key-id')
+ "
+ />
+ </div>
+ <div class="sm:col-span-2 sm:col-start-1">
+ <label class="textlabel block">
+ {{
+ $t(
+ "instance.external-secret-aws.environment.secret-access-key"
+ )
+ }}
+ <span class="text-red-600">*</span>
+ </label>
+ <div class="flex space-x-2 text-sm mb-1 text-gray-400">
+ {{
+ $t(
+ "instance.external-secret-aws.environment.secret-access-key-tips"
+ )
+ }}
+ </div>
+ <BBTextField
+ v-model:value="
+ dataSource.externalSecret.awsEnvironmentConfig.secretAccessKey
+ "
+ :required="true"
+ class="mt-1 w-full"
+ :disabled="!allowEdit"
+ :placeholder="
+ $t(
+ 'instance.external-secret-aws.environment.secret-access-key'
+ )
+ "
+ />
+ </div>
+ <div class="sm:col-span-2 sm:col-start-1">
+ <label class="textlabel block">
+ {{
+ $t("instance.external-secret-aws.environment.session-token")
+ }}
+ </label>
+ <div class="flex space-x-2 text-sm mb-1 text-gray-400">
+ {{
+ $t(
+ "instance.external-secret-aws.environment.session-token-tips"
+ )
+ }}
+ </div>
+ <BBTextField
+ v-model:value="
+ dataSource.externalSecret.awsEnvironmentConfig.sessionToken
+ "
+ :required="true"
+ class="mt-1 w-full"
+ :disabled="!allowEdit"
+ :placeholder="
+ $t('instance.external-secret-aws.environment.session-token')
+ "
+ />
+ </div>
+ <div class="sm:col-span-2 sm:col-start-1">
+ <label class="textlabel block">
+ {{ $t("instance.external-secret-aws.environment.region") }}
+ <span class="text-red-600">*</span>
+ </label>
+ <div class="flex space-x-2 text-sm mb-1 text-gray-400">
+ {{ $t("instance.external-secret-aws.environment.region-tips") }}
+ </div>
+ <BBTextField
+ v-model:value="
+ dataSource.externalSecret.awsEnvironmentConfig.region
+ "
+ :required="true"
+ class="mt-1 w-full"
+ :disabled="!allowEdit"
+ :placeholder="
+ $t('instance.external-secret-aws.environment.region')
+ "
+ />
+ </div>
</div>
- <BBTextField
- v-model:value="dataSource.externalSecret.engineName"
- :required="true"
- class="mt-1 w-full"
- :disabled="!allowEdit"
- :placeholder="
- $t('instance.external-secret.vault-secret-engine-name')
- "
- />
</div>
<div class="sm:col-span-2 sm:col-start-1">
<label class="textlabel block">
- {{ $t("instance.external-secret.vault-secret-name") }}
+ {{ $t("instance.external-secret.secret-name") }}
+ <span class="text-red-600">*</span>
</label>
<BBTextField
v-model:value="dataSource.externalSecret.secretName"
:required="true"
class="mt-1 w-full"
:disabled="!allowEdit"
- :placeholder="$t('instance.external-secret.vault-secret-name')"
+ :placeholder="$t('instance.external-secret.secret-name')"
/>
</div>
<div class="sm:col-span-2 sm:col-start-1">
<label class="textlabel block">
- {{ $t("instance.external-secret.vault-key-name") }}
+ {{ $t("instance.external-secret.key-name") }}
+ <span class="text-red-600">*</span>
</label>
<BBTextField
v-model:value="dataSource.externalSecret.passwordKeyName"
:required="true"
class="mt-1 w-full"
:disabled="!allowEdit"
- :placeholder="$t('instance.external-secret.vault-key-name')"
+ :placeholder="$t('instance.external-secret.key-name')"
/>
</div>
</div>
@@ -466,6 +623,7 @@ import {
DataSourceExternalSecret_AuthType,
DataSourceExternalSecret_SecretType,
DataSourceExternalSecret_AppRoleAuthOption_SecretType,
+ DataSourceExternalSecret_AWSEnvironmentConfig,
} from "@/types/proto/v1/instance_service";
import { onlyAllowNumber, isDev } from "@/utils";
import type { EditDataSource } from "../common";
@@ -476,7 +634,7 @@ import SshConnectionForm from "./SshConnectionForm.vue";
import SslCertificateForm from "./SslCertificateForm.vue";
interface LocalState {
- passwordType: "PLAIN" | "EXTERNAL_SECRET";
+ passwordType: DataSourceExternalSecret_SecretType;
}
const props = defineProps<{
@@ -504,7 +662,7 @@ const {
} = useInstanceSpecs();
const state = reactive<LocalState>({
- passwordType: "PLAIN",
+ passwordType: DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED,
});
const { t } = useI18n();
@@ -512,9 +670,10 @@ watch(
() => props.dataSource.externalSecret,
(externalSecret) => {
if (externalSecret) {
- state.passwordType = "EXTERNAL_SECRET";
+ state.passwordType = externalSecret.secretType;
} else {
- state.passwordType = "PLAIN";
+ state.passwordType =
+ DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED;
}
},
{ immediate: true, deep: true }
@@ -522,23 +681,23 @@ watch(
const secretInputPlaceholder = computed(() => {
switch (state.passwordType) {
- case "PLAIN":
+ case DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED:
return `${t("common.password")} - ${t("common.write-only")}`;
- case "EXTERNAL_SECRET":
+ case DataSourceExternalSecret_SecretType.VAULT_KV_V2:
switch (props.dataSource.externalSecret?.authType) {
case DataSourceExternalSecret_AuthType.TOKEN:
return `${t(
- "instance.external-secret.vault-auth-type.token.api-token"
+ "instance.external-secret-vault.vault-auth-type.token.api-token"
)} - ${t("common.write-only")}`;
case DataSourceExternalSecret_AuthType.APP_ROLE:
switch (props.dataSource.externalSecret.appRole?.type) {
case DataSourceExternalSecret_AppRoleAuthOption_SecretType.PLAIN:
return `${t(
- "instance.external-secret.vault-auth-type.app-role.secret-id-plain-text"
+ "instance.external-secret-vault.vault-auth-type.app-role.secret-id-plain-text"
)} - ${t("common.write-only")}`;
case DataSourceExternalSecret_AppRoleAuthOption_SecretType.ENVIRONMENT:
return `${t(
- "instance.external-secret.vault-auth-type.app-role.secret-id-environment"
+ "instance.external-secret-vault.vault-auth-type.app-role.secret-id-environment"
)} - ${t("common.write-only")}`;
}
}
@@ -547,20 +706,35 @@ const secretInputPlaceholder = computed(() => {
return "";
});
-const changePasswordType = (passwordType: "PLAIN" | "EXTERNAL_SECRET") => {
+const changeSecretType = (secretType: DataSourceExternalSecret_SecretType) => {
const ds = props.dataSource;
- if (passwordType === "EXTERNAL_SECRET") {
- ds.externalSecret = DataSourceExternalSecret.fromPartial(
- ds.externalSecret ?? {
+ switch (secretType) {
+ case DataSourceExternalSecret_SecretType.SAECRET_TYPE_UNSPECIFIED:
+ ds.externalSecret = undefined;
+ break;
+ case DataSourceExternalSecret_SecretType.VAULT_KV_V2:
+ ds.externalSecret = DataSourceExternalSecret.fromPartial({
authType: DataSourceExternalSecret_AuthType.TOKEN,
- secretType: DataSourceExternalSecret_SecretType.VAULT_KV_V2,
+ secretType: secretType,
token: "",
- }
- );
- } else {
- ds.externalSecret = undefined;
+ });
+ break;
+ case DataSourceExternalSecret_SecretType.AWS_SECRETS_MANAGER:
+ ds.externalSecret = DataSourceExternalSecret.fromPartial({
+ authType: DataSourceExternalSecret_AuthType.AWS_ENVIRONMENT,
+ secretType: secretType,
+ awsEnvironmentConfig:
+ DataSourceExternalSecret_AWSEnvironmentConfig.fromPartial({
+ accessKeyId: "AWS_ACCESS_KEY_ID",
+ secretAccessKey: "AWS_SECRET_ACCESS_KEY",
+ sessionToken: "AWS_SESSION_TOKEN",
+ region: "AWS_REGION",
+ }),
+ });
+ break;
}
- state.passwordType = passwordType;
+
+ state.passwordType = secretType;
};
// TODO: support change auth type.
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 3f7e1e4f42..bb6882acd5 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1345,9 +1345,22 @@
"password-type": {
"password": "Password",
"password-tip": "You can also specify external secret manage endpoint",
- "external-secret": "External secret (Vault)"
+ "external-secret-vault": "Vault (KV v2)",
+ "external-secret-aws": "AWS Secrets Manager"
+ },
+ "external-secret-aws": {
+ "environment": {
+ "access-key-id": "AWS access key id",
+ "access-key-id-tips": "Environment name for AWS access key id",
+ "secret-access-key": "AWS secret access key",
+ "secret-access-key-tips": "Environment name for AWS secret access key",
+ "session-token": "AWS session token",
+ "session-token-tips": "Environment name for AWS session token",
+ "region": "AWS region",
+ "region-tips": "Environment name for AWS region"
+ }
},
- "external-secret": {
+ "external-secret-vault": {
"vault-url": "Vault URL",
"vault-auth-type": {
"self": "Vault auth type",
@@ -1368,9 +1381,11 @@
}
},
"vault-secret-engine-name": "Vault secret engine name",
- "vault-secret-engine-tips": "Only support KV v2 engine.",
- "vault-secret-name": "Vault secret name",
- "vault-key-name": "Vault key name for password"
+ "vault-secret-engine-tips": "Only support KV v2 engine."
+ },
+ "external-secret": {
+ "secret-name": "Secret name",
+ "key-name": "Key name for password"
},
"test-connection": "Test Connection",
"ignore-and-create": "Ignore and create",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 304fcd9338..48ef06174f 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1345,9 +1345,22 @@
"password-type": {
"password": "Contraseña",
"password-tip": "También puede especificar un punto final de gestión de secreto externo",
- "external-secret": "Secreto externo (Vault)"
+ "external-secret-vault": "Vault (KV v2)",
+ "external-secret-aws": "AWS Secrets Manager"
+ },
+ "external-secret-aws": {
+ "environment": {
+ "access-key-id": "AWS access key id",
+ "access-key-id-tips": "Nombre del entorno para la identificación de la clave de acceso de AWS",
+ "secret-access-key": "AWS secret access key",
+ "secret-access-key-tips": "Nombre del entorno para la clave de acceso secreta de AWS",
+ "session-token": "AWS session token",
+ "session-token-tips": "Nombre del entorno para el token de sesión de AWS",
+ "region": "AWS region",
+ "region-tips": "Nombre del entorno para la región de AWS"
+ }
},
- "external-secret": {
+ "external-secret-vault": {
"vault-url": "Vault URL",
"vault-auth-type": {
"self": "Vault auth type",
@@ -1368,9 +1381,11 @@
}
},
"vault-secret-engine-name": "Vault secret engine name",
- "vault-secret-engine-tips": "Solo admite motor KV v2.",
- "vault-secret-name": "Vault secret name",
- "vault-key-name": "Vault key name for password"
+ "vault-secret-engine-tips": "Solo admite motor KV v2."
+ },
+ "external-secret": {
+ "secret-name": "Nombre secreto",
+ "key-name": "Nombre clave para contraseña"
},
"test-connection": "Probar conexión",
"ignore-and-create": "Ignorar y crear",
@@ -3391,4 +3406,4 @@
"head": "Cabeza",
"show-diff-with-branch-baseline": "Mostrar diferencia con la línea base de la rama"
}
-}
\ No newline at end of file
+}
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index 7118d0f22a..570ae8eb56 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -1345,9 +1345,22 @@
"password-type": {
"password": "パスワード",
"password-tip": "外部シークレット管理エンドポイントを指定することもできます",
- "external-secret": "外部シークレット (Vault)"
+ "external-secret-vault": "Vault (KV v2)",
+ "external-secret-aws": "AWS Secrets Manager"
+ },
+ "external-secret-aws": {
+ "environment": {
+ "access-key-id": "AWS access key id",
+ "access-key-id-tips": "AWS アクセスキー ID の環境名",
+ "secret-access-key": "AWS secret access key",
+ "secret-access-key-tips": "AWS シークレットアクセスキーの環境名",
+ "session-token": "AWS session token",
+ "session-token-tips": "AWS セッショントークンの環境名",
+ "region": "AWS region",
+ "region-tips": "AWS リージョンの環境名"
+ }
},
- "external-secret": {
+ "external-secret-vault": {
"vault-url": "Vault URL",
"vault-auth-type": {
"self": "Vault auth type",
@@ -1368,9 +1381,11 @@
}
},
"vault-secret-engine-name": "Vault secret engine name",
- "vault-secret-engine-tips": "KV v2 エンジンのみをサポートします。",
- "vault-secret-name": "Vault secret name",
- "vault-key-name": "Vault key name for password"
+ "vault-secret-engine-tips": "KV v2 エンジンのみをサポートします。"
+ },
+ "external-secret": {
+ "secret-name": "秘密の名前",
+ "key-name": "パスワードのキー名"
},
"test-connection": "無視して作成する",
"ignore-and-create": "代わりに PostgreSQL のサンプルインスタンスを追加する",
@@ -3391,4 +3406,4 @@
"head": "頭",
"show-diff-with-branch-baseline": "ブランチベースラインとの差分を表示"
}
-}
\ No newline at end of file
+}
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index c7262fd4ef..52a31579e1 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -1345,9 +1345,22 @@
"password-type": {
"password": "Mật khẩu",
"password-tip": "Bạn cũng có thể chỉ định điểm cuối quản lý bí mật bên ngoài",
- "external-secret": "Bí mật bên ngoài (Vault)"
+ "external-secret-vault": "Vault (KV v2)",
+ "external-secret-aws": "AWS Secrets Manager"
+ },
+ "external-secret-aws": {
+ "environment": {
+ "access-key-id": "AWS access key id",
+ "access-key-id-tips": "Tên môi trường cho id khóa truy cập AWS",
+ "secret-access-key": "AWS secret access key",
+ "secret-access-key-tips": "Tên môi trường cho khóa truy cập bí mật AWS",
+ "session-token": "AWS session token",
+ "session-token-tips": "Tên môi trường cho mã thông báo phiên AWS",
+ "region": "AWS region",
+ "region-tips": "Tên môi trường cho khu vực AWS"
+ }
},
- "external-secret": {
+ "external-secret-vault": {
"vault-url": "Vault URL",
"vault-auth-type": {
"self": "Vault auth type",
@@ -1368,9 +1381,11 @@
}
},
"vault-secret-engine-name": "Vault secret engine name",
- "vault-secret-engine-tips": "Chỉ hỗ trợ động cơ KV v2.",
- "vault-secret-name": "Vault secret name",
- "vault-key-name": "Vault key name for password"
+ "vault-secret-engine-tips": "Chỉ hỗ trợ động cơ KV v2."
+ },
+ "external-secret": {
+ "secret-name": "Tên bí mật",
+ "key-name": "Tên khóa cho mật khẩu"
},
"test-connection": "Kiểm tra kết nối",
"ignore-and-create": "Bỏ qua và tạo",
@@ -3391,4 +3406,4 @@
"head": "Cái đầu",
"show-diff-with-branch-baseline": "Hiển thị sự khác biệt với đường cơ sở của nhánh"
}
-}
\ No newline at end of file
+}
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index f9daa333b8..565d8a032f 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1345,9 +1345,22 @@
"password-type": {
"password": "密码",
"password-tip": "您也可以指定外部的密码管理服务 endpoint",
- "external-secret": "外部密码管理 (Vault)"
+ "external-secret-vault": "Vault (KV v2)",
+ "external-secret-aws": "AWS Secrets Manager"
+ },
+ "external-secret-aws": {
+ "environment": {
+ "access-key-id": "AWS access key id",
+ "access-key-id-tips": "AWS 访问密钥 ID 的环境变量名",
+ "secret-access-key": "AWS secret access key",
+ "secret-access-key-tips": "AWS 秘密访问密钥的环境变量名",
+ "session-token": "AWS session token",
+ "session-token-tips": "AWS 会话令牌的环境变量名",
+ "region": "AWS region",
+ "region-tips": "AWS 区域的环境变量名"
+ }
},
- "external-secret": {
+ "external-secret-vault": {
"vault-url": "Vault URL",
"vault-auth-type": {
"self": "Vault 验证方式",
@@ -1368,9 +1381,11 @@
}
},
"vault-secret-engine-name": "Vault secret engine name",
- "vault-secret-engine-tips": "仅支持 KV v2 储存",
- "vault-secret-name": "Vault secret name",
- "vault-key-name": "Vault key name for password"
+ "vault-secret-engine-tips": "仅支持 KV v2 储存"
+ },
+ "external-secret": {
+ "secret-name": "Secret name",
+ "key-name": "Key name"
},
"test-connection": "测试连接",
"ignore-and-create": "忽略并创建",
@@ -3391,4 +3406,4 @@
"head": "当前",
"show-diff-with-branch-baseline": "显示与分支基线之间的差异"
}
-}
\ No newline at end of file
+}
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index e5804c3efe..824c1150fd 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -4,6 +4,98 @@ import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
+/** The full set of known editions. */
+export enum Edition {
+ /** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
+ EDITION_UNKNOWN = 0,
+ /**
+ * EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
+ * distinct editions. These can't be used to specify the edition of proto
+ * files, but feature definitions must supply proto2/proto3 defaults for
+ * backwards compatibility.
+ */
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ /**
+ * EDITION_2023 - Editions that have been released. The specific values are arbitrary and
+ * should not be depended on, but they will always be time-ordered for easy
+ * comparison.
+ */
+ EDITION_2023 = 1000,
+ /**
+ * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
+ * used or relyed on outside of tests.
+ */
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ UNRECOGNIZED = -1,
+}
+
+export function editionFromJSON(object: any): Edition {
+ switch (object) {
+ case 0:
+ case "EDITION_UNKNOWN":
+ return Edition.EDITION_UNKNOWN;
+ case 998:
+ case "EDITION_PROTO2":
+ return Edition.EDITION_PROTO2;
+ case 999:
+ case "EDITION_PROTO3":
+ return Edition.EDITION_PROTO3;
+ case 1000:
+ case "EDITION_2023":
+ return Edition.EDITION_2023;
+ case 1:
+ case "EDITION_1_TEST_ONLY":
+ return Edition.EDITION_1_TEST_ONLY;
+ case 2:
+ case "EDITION_2_TEST_ONLY":
+ return Edition.EDITION_2_TEST_ONLY;
+ case 99997:
+ case "EDITION_99997_TEST_ONLY":
+ return Edition.EDITION_99997_TEST_ONLY;
+ case 99998:
+ case "EDITION_99998_TEST_ONLY":
+ return Edition.EDITION_99998_TEST_ONLY;
+ case 99999:
+ case "EDITION_99999_TEST_ONLY":
+ return Edition.EDITION_99999_TEST_ONLY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return Edition.UNRECOGNIZED;
+ }
+}
+
+export function editionToJSON(object: Edition): string {
+ switch (object) {
+ case Edition.EDITION_UNKNOWN:
+ return "EDITION_UNKNOWN";
+ case Edition.EDITION_PROTO2:
+ return "EDITION_PROTO2";
+ case Edition.EDITION_PROTO3:
+ return "EDITION_PROTO3";
+ case Edition.EDITION_2023:
+ return "EDITION_2023";
+ case Edition.EDITION_1_TEST_ONLY:
+ return "EDITION_1_TEST_ONLY";
+ case Edition.EDITION_2_TEST_ONLY:
+ return "EDITION_2_TEST_ONLY";
+ case Edition.EDITION_99997_TEST_ONLY:
+ return "EDITION_99997_TEST_ONLY";
+ case Edition.EDITION_99998_TEST_ONLY:
+ return "EDITION_99998_TEST_ONLY";
+ case Edition.EDITION_99999_TEST_ONLY:
+ return "EDITION_99999_TEST_ONLY";
+ case Edition.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
/**
* The protocol compiler can output a FileDescriptorSet containing the .proto
* files it parses.
@@ -51,8 +143,8 @@ export interface FileDescriptorProto {
* If `edition` is present, this value must be "editions".
*/
syntax: string;
- /** The edition of the proto file, which is an opaque string. */
- edition: string;
+ /** The edition of the proto file. */
+ edition: Edition;
}
/** Describes a message type. */
@@ -96,6 +188,84 @@ export interface DescriptorProto_ReservedRange {
export interface ExtensionRangeOptions {
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
+ /**
+ * For external users: DO NOT USE. We are in the process of open sourcing
+ * extension declaration and executing internal cleanups before it can be
+ * used externally.
+ */
+ declaration: ExtensionRangeOptions_Declaration[];
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
+ /**
+ * The verification state of the range.
+ * TODO: flip the default to DECLARATION once all empty ranges
+ * are marked as UNVERIFIED.
+ */
+ verification: ExtensionRangeOptions_VerificationState;
+}
+
+/** The verification state of the extension range. */
+export enum ExtensionRangeOptions_VerificationState {
+ /** DECLARATION - All the extensions of the range must be declared. */
+ DECLARATION = 0,
+ UNVERIFIED = 1,
+ UNRECOGNIZED = -1,
+}
+
+export function extensionRangeOptions_VerificationStateFromJSON(object: any): ExtensionRangeOptions_VerificationState {
+ switch (object) {
+ case 0:
+ case "DECLARATION":
+ return ExtensionRangeOptions_VerificationState.DECLARATION;
+ case 1:
+ case "UNVERIFIED":
+ return ExtensionRangeOptions_VerificationState.UNVERIFIED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;
+ }
+}
+
+export function extensionRangeOptions_VerificationStateToJSON(object: ExtensionRangeOptions_VerificationState): string {
+ switch (object) {
+ case ExtensionRangeOptions_VerificationState.DECLARATION:
+ return "DECLARATION";
+ case ExtensionRangeOptions_VerificationState.UNVERIFIED:
+ return "UNVERIFIED";
+ case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export interface ExtensionRangeOptions_Declaration {
+ /** The extension number declared within the extension range. */
+ number: number;
+ /**
+ * The fully-qualified name of the extension field. There must be a leading
+ * dot in front of the full name.
+ */
+ fullName: string;
+ /**
+ * The fully-qualified type name of the extension field. Unlike
+ * Metadata.type, Declaration.type must have a leading dot for messages
+ * and enums.
+ */
+ type: string;
+ /**
+ * If true, indicates that the number is reserved in the extension range,
+ * and any extension field with the number will fail to compile. Set this
+ * when a declared extension field is deleted.
+ */
+ reserved: boolean;
+ /**
+ * If true, indicates that the extension must be defined as repeated.
+ * Otherwise the extension must be defined as optional.
+ */
+ repeated: boolean;
}
/** Describes a field within a message. */
@@ -193,9 +363,10 @@ export enum FieldDescriptorProto_Type {
TYPE_STRING = 9,
/**
* TYPE_GROUP - Tag-delimited aggregate.
- * Group type is deprecated and not supported in proto3. However, Proto3
+ * Group type is deprecated and not supported after google.protobuf. However, Proto3
* implementations should still be able to parse the group wire format and
- * treat group fields as unknown fields.
+ * treat group fields as unknown fields. In Editions, the group wire format
+ * can be enabled via the `message_encoding` feature.
*/
TYPE_GROUP = 10,
/** TYPE_MESSAGE - Length-delimited aggregate. */
@@ -323,8 +494,13 @@ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Typ
export enum FieldDescriptorProto_Label {
/** LABEL_OPTIONAL - 0 is reserved for errors */
LABEL_OPTIONAL = 1,
- LABEL_REQUIRED = 2,
LABEL_REPEATED = 3,
+ /**
+ * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
+ * it's explicitly prohibited. In Editions, the `field_presence` feature
+ * can be used to get this behavior.
+ */
+ LABEL_REQUIRED = 2,
UNRECOGNIZED = -1,
}
@@ -333,12 +509,12 @@ export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptor
case 1:
case "LABEL_OPTIONAL":
return FieldDescriptorProto_Label.LABEL_OPTIONAL;
- case 2:
- case "LABEL_REQUIRED":
- return FieldDescriptorProto_Label.LABEL_REQUIRED;
case 3:
case "LABEL_REPEATED":
return FieldDescriptorProto_Label.LABEL_REPEATED;
+ case 2:
+ case "LABEL_REQUIRED":
+ return FieldDescriptorProto_Label.LABEL_REQUIRED;
case -1:
case "UNRECOGNIZED":
default:
@@ -350,10 +526,10 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
switch (object) {
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
return "LABEL_OPTIONAL";
- case FieldDescriptorProto_Label.LABEL_REQUIRED:
- return "LABEL_REQUIRED";
case FieldDescriptorProto_Label.LABEL_REPEATED:
return "LABEL_REPEATED";
+ case FieldDescriptorProto_Label.LABEL_REQUIRED:
+ return "LABEL_REQUIRED";
case FieldDescriptorProto_Label.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -547,6 +723,10 @@ export interface FileOptions {
* determining the ruby package.
*/
rubyPackage: string;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/**
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
@@ -665,12 +845,16 @@ export interface MessageOptions {
* This should only be used as a temporary measure against broken builds due
* to the change in behavior for JSON field name conflicts.
*
- * TODO(b/261750190) This is legacy behavior we plan to remove once downstream
+ * TODO This is legacy behavior we plan to remove once downstream
* teams have had time to migrate.
*
* @deprecated
*/
deprecatedLegacyJsonFieldConflicts: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -679,8 +863,10 @@ export interface FieldOptions {
/**
* The ctype option instructs the C++ code generator to use a different
* representation of the field than it normally would. See the specific
- * options below. This option is not yet implemented in the open source
- * release -- sorry, we'll try to include it in a future version!
+ * options below. This option is only implemented to support use of
+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
+ * type "bytes" in the open source release -- sorry, we'll try to include
+ * other types in a future version!
*/
ctype: FieldOptions_CType;
/**
@@ -688,7 +874,9 @@ export interface FieldOptions {
* a more efficient representation on the wire. Rather than repeatedly
* writing the tag and type for each element, the entire array is encoded as
* a single length-delimited blob. In proto3, only explicit setting it to
- * false will avoid using packed encoding.
+ * false will avoid using packed encoding. This option is prohibited in
+ * Editions, but the `repeated_field_encoding` feature can be used to control
+ * the behavior.
*/
packed: boolean;
/**
@@ -759,7 +947,12 @@ export interface FieldOptions {
*/
debugRedact: boolean;
retention: FieldOptions_OptionRetention;
- target: FieldOptions_OptionTargetType;
+ targets: FieldOptions_OptionTargetType[];
+ editionDefaults: FieldOptions_EditionDefault[];
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -767,6 +960,14 @@ export interface FieldOptions {
export enum FieldOptions_CType {
/** STRING - Default mode. */
STRING = 0,
+ /**
+ * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
+ * instead of a string. For very large strings, this may reduce memory
+ * fragmentation. It may also allow better performance when parsing from a
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
+ * alias the original buffer.
+ */
CORD = 1,
STRING_PIECE = 2,
UNRECOGNIZED = -1,
@@ -977,7 +1178,17 @@ export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionT
}
}
+export interface FieldOptions_EditionDefault {
+ edition: Edition;
+ /** Textproto value. */
+ value: string;
+}
+
export interface OneofOptions {
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1000,12 +1211,16 @@ export interface EnumOptions {
* and strips underscored from the fields before comparison in proto3 only.
* The new behavior takes `json_name` into account and applies to proto2 as
* well.
- * TODO(b/261750190) Remove this legacy behavior once downstream teams have
+ * TODO Remove this legacy behavior once downstream teams have
* had time to migrate.
*
* @deprecated
*/
deprecatedLegacyJsonFieldConflicts: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1018,11 +1233,25 @@ export interface EnumValueOptions {
* this is a formalization for deprecating enum values.
*/
deprecated: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
+ /**
+ * Indicate that fields annotated with this enum value should not be printed
+ * out when using debug formats, e.g. when the field contains sensitive
+ * credentials.
+ */
+ debugRedact: boolean;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
export interface ServiceOptions {
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/**
* Is this service deprecated?
* Depending on the target platform, this can emit Deprecated annotations
@@ -1043,6 +1272,10 @@ export interface MethodOptions {
*/
deprecated: boolean;
idempotencyLevel: MethodOptions_IdempotencyLevel;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1127,6 +1360,294 @@ export interface UninterpretedOption_NamePart {
isExtension: boolean;
}
+/**
+ * TODO Enums in C++ gencode (and potentially other languages) are
+ * not well scoped. This means that each of the feature enums below can clash
+ * with each other. The short names we've chosen maximize call-site
+ * readability, but leave us very open to this scenario. A future feature will
+ * be designed and implemented to handle this, hopefully before we ever hit a
+ * conflict here.
+ */
+export interface FeatureSet {
+ fieldPresence: FeatureSet_FieldPresence;
+ enumType: FeatureSet_EnumType;
+ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding;
+ utf8Validation: FeatureSet_Utf8Validation;
+ messageEncoding: FeatureSet_MessageEncoding;
+ jsonFormat: FeatureSet_JsonFormat;
+}
+
+export enum FeatureSet_FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3,
+ UNRECOGNIZED = -1,
+}
+
+export function featureSet_FieldPresenceFromJSON(object: any): FeatureSet_FieldPresence {
+ switch (object) {
+ case 0:
+ case "FIELD_PRESENCE_UNKNOWN":
+ return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
+ case 1:
+ case "EXPLICIT":
+ return FeatureSet_FieldPresence.EXPLICIT;
+ case 2:
+ case "IMPLICIT":
+ return FeatureSet_FieldPresence.IMPLICIT;
+ case 3:
+ case "LEGACY_REQUIRED":
+ return FeatureSet_FieldPresence.LEGACY_REQUIRED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_FieldPresence.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_FieldPresenceToJSON(object: FeatureSet_FieldPresence): string {
+ switch (object) {
+ case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
+ return "FIELD_PRESENCE_UNKNOWN";
+ case FeatureSet_FieldPresence.EXPLICIT:
+ return "EXPLICIT";
+ case FeatureSet_FieldPresence.IMPLICIT:
+ return "IMPLICIT";
+ case FeatureSet_FieldPresence.LEGACY_REQUIRED:
+ return "LEGACY_REQUIRED";
+ case FeatureSet_FieldPresence.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export enum FeatureSet_EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2,
+ UNRECOGNIZED = -1,
+}
+
+export function featureSet_EnumTypeFromJSON(object: any): FeatureSet_EnumType {
+ switch (object) {
+ case 0:
+ case "ENUM_TYPE_UNKNOWN":
+ return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
+ case 1:
+ case "OPEN":
+ return FeatureSet_EnumType.OPEN;
+ case 2:
+ case "CLOSED":
+ return FeatureSet_EnumType.CLOSED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_EnumType.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_EnumTypeToJSON(object: FeatureSet_EnumType): string {
+ switch (object) {
+ case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
+ return "ENUM_TYPE_UNKNOWN";
+ case FeatureSet_EnumType.OPEN:
+ return "OPEN";
+ case FeatureSet_EnumType.CLOSED:
+ return "CLOSED";
+ case FeatureSet_EnumType.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export enum FeatureSet_RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2,
+ UNRECOGNIZED = -1,
+}
+
+export function featureSet_RepeatedFieldEncodingFromJSON(object: any): FeatureSet_RepeatedFieldEncoding {
+ switch (object) {
+ case 0:
+ case "REPEATED_FIELD_ENCODING_UNKNOWN":
+ return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
+ case 1:
+ case "PACKED":
+ return FeatureSet_RepeatedFieldEncoding.PACKED;
+ case 2:
+ case "EXPANDED":
+ return FeatureSet_RepeatedFieldEncoding.EXPANDED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_RepeatedFieldEncodingToJSON(object: FeatureSet_RepeatedFieldEncoding): string {
+ switch (object) {
+ case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
+ return "REPEATED_FIELD_ENCODING_UNKNOWN";
+ case FeatureSet_RepeatedFieldEncoding.PACKED:
+ return "PACKED";
+ case FeatureSet_RepeatedFieldEncoding.EXPANDED:
+ return "EXPANDED";
+ case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export enum FeatureSet_Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ NONE = 1,
+ VERIFY = 2,
+ UNRECOGNIZED = -1,
+}
+
+export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation {
+ switch (object) {
+ case 0:
+ case "UTF8_VALIDATION_UNKNOWN":
+ return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
+ case 1:
+ case "NONE":
+ return FeatureSet_Utf8Validation.NONE;
+ case 2:
+ case "VERIFY":
+ return FeatureSet_Utf8Validation.VERIFY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_Utf8Validation.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validation): string {
+ switch (object) {
+ case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
+ return "UTF8_VALIDATION_UNKNOWN";
+ case FeatureSet_Utf8Validation.NONE:
+ return "NONE";
+ case FeatureSet_Utf8Validation.VERIFY:
+ return "VERIFY";
+ case FeatureSet_Utf8Validation.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export enum FeatureSet_MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2,
+ UNRECOGNIZED = -1,
+}
+
+export function featureSet_MessageEncodingFromJSON(object: any): FeatureSet_MessageEncoding {
+ switch (object) {
+ case 0:
+ case "MESSAGE_ENCODING_UNKNOWN":
+ return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
+ case 1:
+ case "LENGTH_PREFIXED":
+ return FeatureSet_MessageEncoding.LENGTH_PREFIXED;
+ case 2:
+ case "DELIMITED":
+ return FeatureSet_MessageEncoding.DELIMITED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_MessageEncoding.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_MessageEncodingToJSON(object: FeatureSet_MessageEncoding): string {
+ switch (object) {
+ case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
+ return "MESSAGE_ENCODING_UNKNOWN";
+ case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
+ return "LENGTH_PREFIXED";
+ case FeatureSet_MessageEncoding.DELIMITED:
+ return "DELIMITED";
+ case FeatureSet_MessageEncoding.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export enum FeatureSet_JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2,
+ UNRECOGNIZED = -1,
+}
+
+export function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat {
+ switch (object) {
+ case 0:
+ case "JSON_FORMAT_UNKNOWN":
+ return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
+ case 1:
+ case "ALLOW":
+ return FeatureSet_JsonFormat.ALLOW;
+ case 2:
+ case "LEGACY_BEST_EFFORT":
+ return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_JsonFormat.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string {
+ switch (object) {
+ case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
+ return "JSON_FORMAT_UNKNOWN";
+ case FeatureSet_JsonFormat.ALLOW:
+ return "ALLOW";
+ case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
+ return "LEGACY_BEST_EFFORT";
+ case FeatureSet_JsonFormat.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+/**
+ * A compiled specification for the defaults of a set of features. These
+ * messages are generated from FeatureSet extensions and can be used to seed
+ * feature resolution. The resolution with this object becomes a simple search
+ * for the closest matching edition, followed by proto merges.
+ */
+export interface FeatureSetDefaults {
+ defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
+ /**
+ * The minimum supported edition (inclusive) when this was constructed.
+ * Editions before this will not have defaults.
+ */
+ minimumEdition: Edition;
+ /**
+ * The maximum known edition (inclusive) when this was constructed. Editions
+ * after this will not have reliable defaults.
+ */
+ maximumEdition: Edition;
+}
+
+/**
+ * A map from every known edition with a unique set of defaults to its
+ * defaults. Not all editions may be contained here. For a given edition,
+ * the defaults at the closest matching edition ordered at or before it should
+ * be used. This field must be in strict ascending order by edition.
+ */
+export interface FeatureSetDefaults_FeatureSetEditionDefault {
+ edition: Edition;
+ features: FeatureSet | undefined;
+}
+
/**
* Encapsulates information about the original source file from which a
* FileDescriptorProto was generated.
@@ -1423,7 +1944,7 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {
options: undefined,
sourceCodeInfo: undefined,
syntax: "",
- edition: "",
+ edition: 0,
};
}
@@ -1469,8 +1990,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
writer.uint32(98).string(message.syntax);
}
- if (message.edition !== "") {
- writer.uint32(106).string(message.edition);
+ if (message.edition !== 0) {
+ writer.uint32(112).int32(message.edition);
}
return writer;
},
@@ -1586,12 +2107,12 @@ export const FileDescriptorProto = {
message.syntax = reader.string();
continue;
- case 13:
- if (tag !== 106) {
+ case 14:
+ if (tag !== 112) {
break;
}
- message.edition = reader.string();
+ message.edition = reader.int32() as any;
continue;
}
if ((tag & 7) === 4 || tag === 0) {
@@ -1630,7 +2151,7 @@ export const FileDescriptorProto = {
options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,
sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,
syntax: isSet(object.syntax) ? globalThis.String(object.syntax) : "",
- edition: isSet(object.edition) ? globalThis.String(object.edition) : "",
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
};
},
@@ -1672,8 +2193,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
obj.syntax = message.syntax;
}
- if (message.edition !== "") {
- obj.edition = message.edition;
+ if (message.edition !== 0) {
+ obj.edition = editionToJSON(message.edition);
}
return obj;
},
@@ -1699,7 +2220,7 @@ export const FileDescriptorProto = {
? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
: undefined;
message.syntax = object.syntax ?? "";
- message.edition = object.edition ?? "";
+ message.edition = object.edition ?? 0;
return message;
},
};
@@ -2093,7 +2614,7 @@ export const DescriptorProto_ReservedRange = {
};
function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
- return { uninterpretedOption: [] };
+ return { uninterpretedOption: [], declaration: [], features: undefined, verification: 0 };
}
export const ExtensionRangeOptions = {
@@ -2101,6 +2622,15 @@ export const ExtensionRangeOptions = {
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
+ for (const v of message.declaration) {
+ ExtensionRangeOptions_Declaration.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
+ }
+ if (message.verification !== 0) {
+ writer.uint32(24).int32(message.verification);
+ }
return writer;
},
@@ -2118,6 +2648,27 @@ export const ExtensionRangeOptions = {
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
+ continue;
+ case 50:
+ if (tag !== 402) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.verification = reader.int32() as any;
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -2132,6 +2683,13 @@ export const ExtensionRangeOptions = {
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
+ declaration: globalThis.Array.isArray(object?.declaration)
+ ? object.declaration.map((e: any) => ExtensionRangeOptions_Declaration.fromJSON(e))
+ : [],
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ verification: isSet(object.verification)
+ ? extensionRangeOptions_VerificationStateFromJSON(object.verification)
+ : 0,
};
},
@@ -2140,6 +2698,15 @@ export const ExtensionRangeOptions = {
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
+ if (message.declaration?.length) {
+ obj.declaration = message.declaration.map((e) => ExtensionRangeOptions_Declaration.toJSON(e));
+ }
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ if (message.verification !== 0) {
+ obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);
+ }
return obj;
},
@@ -2149,20 +2716,144 @@ export const ExtensionRangeOptions = {
fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
const message = createBaseExtensionRangeOptions();
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
+ message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
+ message.verification = object.verification ?? 0;
return message;
},
};
-function createBaseFieldDescriptorProto(): FieldDescriptorProto {
- return {
- name: "",
- number: 0,
- label: 1,
- type: 1,
- typeName: "",
- extendee: "",
- defaultValue: "",
- oneofIndex: 0,
+function createBaseExtensionRangeOptions_Declaration(): ExtensionRangeOptions_Declaration {
+ return { number: 0, fullName: "", type: "", reserved: false, repeated: false };
+}
+
+export const ExtensionRangeOptions_Declaration = {
+ encode(message: ExtensionRangeOptions_Declaration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.number !== 0) {
+ writer.uint32(8).int32(message.number);
+ }
+ if (message.fullName !== "") {
+ writer.uint32(18).string(message.fullName);
+ }
+ if (message.type !== "") {
+ writer.uint32(26).string(message.type);
+ }
+ if (message.reserved === true) {
+ writer.uint32(40).bool(message.reserved);
+ }
+ if (message.repeated === true) {
+ writer.uint32(48).bool(message.repeated);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions_Declaration {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseExtensionRangeOptions_Declaration();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.number = reader.int32();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.fullName = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.type = reader.string();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.reserved = reader.bool();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.repeated = reader.bool();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): ExtensionRangeOptions_Declaration {
+ return {
+ number: isSet(object.number) ? globalThis.Number(object.number) : 0,
+ fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
+ reserved: isSet(object.reserved) ? globalThis.Boolean(object.reserved) : false,
+ repeated: isSet(object.repeated) ? globalThis.Boolean(object.repeated) : false,
+ };
+ },
+
+ toJSON(message: ExtensionRangeOptions_Declaration): unknown {
+ const obj: any = {};
+ if (message.number !== 0) {
+ obj.number = Math.round(message.number);
+ }
+ if (message.fullName !== "") {
+ obj.fullName = message.fullName;
+ }
+ if (message.type !== "") {
+ obj.type = message.type;
+ }
+ if (message.reserved === true) {
+ obj.reserved = message.reserved;
+ }
+ if (message.repeated === true) {
+ obj.repeated = message.repeated;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
+ return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
+ const message = createBaseExtensionRangeOptions_Declaration();
+ message.number = object.number ?? 0;
+ message.fullName = object.fullName ?? "";
+ message.type = object.type ?? "";
+ message.reserved = object.reserved ?? false;
+ message.repeated = object.repeated ?? false;
+ return message;
+ },
+};
+
+function createBaseFieldDescriptorProto(): FieldDescriptorProto {
+ return {
+ name: "",
+ number: 0,
+ label: 1,
+ type: 1,
+ typeName: "",
+ extendee: "",
+ defaultValue: "",
+ oneofIndex: 0,
jsonName: "",
options: undefined,
proto3Optional: false,
@@ -3003,6 +3694,7 @@ function createBaseFileOptions(): FileOptions {
phpNamespace: "",
phpMetadataNamespace: "",
rubyPackage: "",
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3069,6 +3761,9 @@ export const FileOptions = {
if (message.rubyPackage !== "") {
writer.uint32(362).string(message.rubyPackage);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3222,6 +3917,13 @@ export const FileOptions = {
message.rubyPackage = reader.string();
continue;
+ case 50:
+ if (tag !== 402) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3262,6 +3964,7 @@ export const FileOptions = {
phpNamespace: isSet(object.phpNamespace) ? globalThis.String(object.phpNamespace) : "",
phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? globalThis.String(object.phpMetadataNamespace) : "",
rubyPackage: isSet(object.rubyPackage) ? globalThis.String(object.rubyPackage) : "",
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3330,6 +4033,9 @@ export const FileOptions = {
if (message.rubyPackage !== "") {
obj.rubyPackage = message.rubyPackage;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3361,6 +4067,9 @@ export const FileOptions = {
message.phpNamespace = object.phpNamespace ?? "";
message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
message.rubyPackage = object.rubyPackage ?? "";
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -3373,6 +4082,7 @@ function createBaseMessageOptions(): MessageOptions {
deprecated: false,
mapEntry: false,
deprecatedLegacyJsonFieldConflicts: false,
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3394,6 +4104,9 @@ export const MessageOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3442,6 +4155,13 @@ export const MessageOptions = {
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3471,6 +4191,7 @@ export const MessageOptions = {
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
: false,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3494,6 +4215,9 @@ export const MessageOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3510,6 +4234,9 @@ export const MessageOptions = {
message.deprecated = object.deprecated ?? false;
message.mapEntry = object.mapEntry ?? false;
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -3526,7 +4253,9 @@ function createBaseFieldOptions(): FieldOptions {
weak: false,
debugRedact: false,
retention: 0,
- target: 0,
+ targets: [],
+ editionDefaults: [],
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3560,8 +4289,16 @@ export const FieldOptions = {
if (message.retention !== 0) {
writer.uint32(136).int32(message.retention);
}
- if (message.target !== 0) {
- writer.uint32(144).int32(message.target);
+ writer.uint32(154).fork();
+ for (const v of message.targets) {
+ writer.int32(v);
+ }
+ writer.ldelim();
+ for (const v of message.editionDefaults) {
+ FieldOptions_EditionDefault.encode(v!, writer.uint32(162).fork()).ldelim();
+ }
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();
}
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
@@ -3639,12 +4376,36 @@ export const FieldOptions = {
message.retention = reader.int32() as any;
continue;
- case 18:
- if (tag !== 144) {
+ case 19:
+ if (tag === 152) {
+ message.targets.push(reader.int32() as any);
+
+ continue;
+ }
+
+ if (tag === 154) {
+ const end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2) {
+ message.targets.push(reader.int32() as any);
+ }
+
+ continue;
+ }
+
+ break;
+ case 20:
+ if (tag !== 162) {
break;
}
- message.target = reader.int32() as any;
+ message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));
+ continue;
+ case 21:
+ if (tag !== 170) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
continue;
case 999:
if (tag !== 7994) {
@@ -3673,7 +4434,13 @@ export const FieldOptions = {
weak: isSet(object.weak) ? globalThis.Boolean(object.weak) : false,
debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,
- target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,
+ targets: globalThis.Array.isArray(object?.targets)
+ ? object.targets.map((e: any) => fieldOptions_OptionTargetTypeFromJSON(e))
+ : [],
+ editionDefaults: globalThis.Array.isArray(object?.editionDefaults)
+ ? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e))
+ : [],
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3709,8 +4476,14 @@ export const FieldOptions = {
if (message.retention !== 0) {
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
}
- if (message.target !== 0) {
- obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);
+ if (message.targets?.length) {
+ obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));
+ }
+ if (message.editionDefaults?.length) {
+ obj.editionDefaults = message.editionDefaults.map((e) => FieldOptions_EditionDefault.toJSON(e));
+ }
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
}
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
@@ -3732,18 +4505,99 @@ export const FieldOptions = {
message.weak = object.weak ?? false;
message.debugRedact = object.debugRedact ?? false;
message.retention = object.retention ?? 0;
- message.target = object.target ?? 0;
+ message.targets = object.targets?.map((e) => e) || [];
+ message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || [];
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
+function createBaseFieldOptions_EditionDefault(): FieldOptions_EditionDefault {
+ return { edition: 0, value: "" };
+}
+
+export const FieldOptions_EditionDefault = {
+ encode(message: FieldOptions_EditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.edition !== 0) {
+ writer.uint32(24).int32(message.edition);
+ }
+ if (message.value !== "") {
+ writer.uint32(18).string(message.value);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_EditionDefault {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFieldOptions_EditionDefault();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.edition = reader.int32() as any;
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.value = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FieldOptions_EditionDefault {
+ return {
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
+ };
+ },
+
+ toJSON(message: FieldOptions_EditionDefault): unknown {
+ const obj: any = {};
+ if (message.edition !== 0) {
+ obj.edition = editionToJSON(message.edition);
+ }
+ if (message.value !== "") {
+ obj.value = message.value;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
+ return FieldOptions_EditionDefault.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
+ const message = createBaseFieldOptions_EditionDefault();
+ message.edition = object.edition ?? 0;
+ message.value = object.value ?? "";
+ return message;
+ },
+};
+
function createBaseOneofOptions(): OneofOptions {
- return { uninterpretedOption: [] };
+ return { features: undefined, uninterpretedOption: [] };
}
export const OneofOptions = {
encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3757,6 +4611,13 @@ export const OneofOptions = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3775,6 +4636,7 @@ export const OneofOptions = {
fromJSON(object: any): OneofOptions {
return {
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3783,6 +4645,9 @@ export const OneofOptions = {
toJSON(message: OneofOptions): unknown {
const obj: any = {};
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3794,13 +4659,22 @@ export const OneofOptions = {
},
fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {
const message = createBaseOneofOptions();
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseEnumOptions(): EnumOptions {
- return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };
+ return {
+ allowAlias: false,
+ deprecated: false,
+ deprecatedLegacyJsonFieldConflicts: false,
+ features: undefined,
+ uninterpretedOption: [],
+ };
}
export const EnumOptions = {
@@ -3814,6 +4688,9 @@ export const EnumOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3848,6 +4725,13 @@ export const EnumOptions = {
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3871,6 +4755,7 @@ export const EnumOptions = {
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
: false,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3888,6 +4773,9 @@ export const EnumOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3902,13 +4790,16 @@ export const EnumOptions = {
message.allowAlias = object.allowAlias ?? false;
message.deprecated = object.deprecated ?? false;
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseEnumValueOptions(): EnumValueOptions {
- return { deprecated: false, uninterpretedOption: [] };
+ return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };
}
export const EnumValueOptions = {
@@ -3916,6 +4807,12 @@ export const EnumValueOptions = {
if (message.deprecated === true) {
writer.uint32(8).bool(message.deprecated);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.debugRedact === true) {
+ writer.uint32(24).bool(message.debugRedact);
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3936,6 +4833,20 @@ export const EnumValueOptions = {
message.deprecated = reader.bool();
continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.debugRedact = reader.bool();
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3955,6 +4866,8 @@ export const EnumValueOptions = {
fromJSON(object: any): EnumValueOptions {
return {
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3966,6 +4879,12 @@ export const EnumValueOptions = {
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ if (message.debugRedact === true) {
+ obj.debugRedact = message.debugRedact;
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3978,17 +4897,24 @@ export const EnumValueOptions = {
fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {
const message = createBaseEnumValueOptions();
message.deprecated = object.deprecated ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
+ message.debugRedact = object.debugRedact ?? false;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseServiceOptions(): ServiceOptions {
- return { deprecated: false, uninterpretedOption: [] };
+ return { features: undefined, deprecated: false, uninterpretedOption: [] };
}
export const ServiceOptions = {
encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();
+ }
if (message.deprecated === true) {
writer.uint32(264).bool(message.deprecated);
}
@@ -4005,6 +4931,13 @@ export const ServiceOptions = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
+ case 34:
+ if (tag !== 274) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 33:
if (tag !== 264) {
break;
@@ -4030,6 +4963,7 @@ export const ServiceOptions = {
fromJSON(object: any): ServiceOptions {
return {
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
@@ -4039,6 +4973,9 @@ export const ServiceOptions = {
toJSON(message: ServiceOptions): unknown {
const obj: any = {};
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
@@ -4053,6 +4990,9 @@ export const ServiceOptions = {
},
fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {
const message = createBaseServiceOptions();
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.deprecated = object.deprecated ?? false;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
@@ -4060,7 +5000,7 @@ export const ServiceOptions = {
};
function createBaseMethodOptions(): MethodOptions {
- return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };
+ return { deprecated: false, idempotencyLevel: 0, features: undefined, uninterpretedOption: [] };
}
export const MethodOptions = {
@@ -4071,6 +5011,9 @@ export const MethodOptions = {
if (message.idempotencyLevel !== 0) {
writer.uint32(272).int32(message.idempotencyLevel);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4098,6 +5041,13 @@ export const MethodOptions = {
message.idempotencyLevel = reader.int32() as any;
continue;
+ case 35:
+ if (tag !== 282) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -4120,6 +5070,7 @@ export const MethodOptions = {
idempotencyLevel: isSet(object.idempotencyLevel)
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
: 0,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4134,6 +5085,9 @@ export const MethodOptions = {
if (message.idempotencyLevel !== 0) {
obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4147,6 +5101,9 @@ export const MethodOptions = {
const message = createBaseMethodOptions();
message.deprecated = object.deprecated ?? false;
message.idempotencyLevel = object.idempotencyLevel ?? 0;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -4389,6 +5346,318 @@ export const UninterpretedOption_NamePart = {
},
};
+function createBaseFeatureSet(): FeatureSet {
+ return {
+ fieldPresence: 0,
+ enumType: 0,
+ repeatedFieldEncoding: 0,
+ utf8Validation: 0,
+ messageEncoding: 0,
+ jsonFormat: 0,
+ };
+}
+
+export const FeatureSet = {
+ encode(message: FeatureSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.fieldPresence !== 0) {
+ writer.uint32(8).int32(message.fieldPresence);
+ }
+ if (message.enumType !== 0) {
+ writer.uint32(16).int32(message.enumType);
+ }
+ if (message.repeatedFieldEncoding !== 0) {
+ writer.uint32(24).int32(message.repeatedFieldEncoding);
+ }
+ if (message.utf8Validation !== 0) {
+ writer.uint32(32).int32(message.utf8Validation);
+ }
+ if (message.messageEncoding !== 0) {
+ writer.uint32(40).int32(message.messageEncoding);
+ }
+ if (message.jsonFormat !== 0) {
+ writer.uint32(48).int32(message.jsonFormat);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSet {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSet();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.fieldPresence = reader.int32() as any;
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.enumType = reader.int32() as any;
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.repeatedFieldEncoding = reader.int32() as any;
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.utf8Validation = reader.int32() as any;
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.messageEncoding = reader.int32() as any;
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.jsonFormat = reader.int32() as any;
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSet {
+ return {
+ fieldPresence: isSet(object.fieldPresence) ? featureSet_FieldPresenceFromJSON(object.fieldPresence) : 0,
+ enumType: isSet(object.enumType) ? featureSet_EnumTypeFromJSON(object.enumType) : 0,
+ repeatedFieldEncoding: isSet(object.repeatedFieldEncoding)
+ ? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)
+ : 0,
+ utf8Validation: isSet(object.utf8Validation) ? featureSet_Utf8ValidationFromJSON(object.utf8Validation) : 0,
+ messageEncoding: isSet(object.messageEncoding) ? featureSet_MessageEncodingFromJSON(object.messageEncoding) : 0,
+ jsonFormat: isSet(object.jsonFormat) ? featureSet_JsonFormatFromJSON(object.jsonFormat) : 0,
+ };
+ },
+
+ toJSON(message: FeatureSet): unknown {
+ const obj: any = {};
+ if (message.fieldPresence !== 0) {
+ obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence);
+ }
+ if (message.enumType !== 0) {
+ obj.enumType = featureSet_EnumTypeToJSON(message.enumType);
+ }
+ if (message.repeatedFieldEncoding !== 0) {
+ obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding);
+ }
+ if (message.utf8Validation !== 0) {
+ obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation);
+ }
+ if (message.messageEncoding !== 0) {
+ obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding);
+ }
+ if (message.jsonFormat !== 0) {
+ obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSet>): FeatureSet {
+ return FeatureSet.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FeatureSet>): FeatureSet {
+ const message = createBaseFeatureSet();
+ message.fieldPresence = object.fieldPresence ?? 0;
+ message.enumType = object.enumType ?? 0;
+ message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 0;
+ message.utf8Validation = object.utf8Validation ?? 0;
+ message.messageEncoding = object.messageEncoding ?? 0;
+ message.jsonFormat = object.jsonFormat ?? 0;
+ return message;
+ },
+};
+
+function createBaseFeatureSetDefaults(): FeatureSetDefaults {
+ return { defaults: [], minimumEdition: 0, maximumEdition: 0 };
+}
+
+export const FeatureSetDefaults = {
+ encode(message: FeatureSetDefaults, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.defaults) {
+ FeatureSetDefaults_FeatureSetEditionDefault.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.minimumEdition !== 0) {
+ writer.uint32(32).int32(message.minimumEdition);
+ }
+ if (message.maximumEdition !== 0) {
+ writer.uint32(40).int32(message.maximumEdition);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSetDefaults();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.minimumEdition = reader.int32() as any;
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.maximumEdition = reader.int32() as any;
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSetDefaults {
+ return {
+ defaults: globalThis.Array.isArray(object?.defaults)
+ ? object.defaults.map((e: any) => FeatureSetDefaults_FeatureSetEditionDefault.fromJSON(e))
+ : [],
+ minimumEdition: isSet(object.minimumEdition) ? editionFromJSON(object.minimumEdition) : 0,
+ maximumEdition: isSet(object.maximumEdition) ? editionFromJSON(object.maximumEdition) : 0,
+ };
+ },
+
+ toJSON(message: FeatureSetDefaults): unknown {
+ const obj: any = {};
+ if (message.defaults?.length) {
+ obj.defaults = message.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e));
+ }
+ if (message.minimumEdition !== 0) {
+ obj.minimumEdition = editionToJSON(message.minimumEdition);
+ }
+ if (message.maximumEdition !== 0) {
+ obj.maximumEdition = editionToJSON(message.maximumEdition);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {
+ return FeatureSetDefaults.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {
+ const message = createBaseFeatureSetDefaults();
+ message.defaults = object.defaults?.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];
+ message.minimumEdition = object.minimumEdition ?? 0;
+ message.maximumEdition = object.maximumEdition ?? 0;
+ return message;
+ },
+};
+
+function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {
+ return { edition: 0, features: undefined };
+}
+
+export const FeatureSetDefaults_FeatureSetEditionDefault = {
+ encode(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.edition !== 0) {
+ writer.uint32(24).int32(message.edition);
+ }
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults_FeatureSetEditionDefault {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.edition = reader.int32() as any;
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {
+ return {
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ };
+ },
+
+ toJSON(message: FeatureSetDefaults_FeatureSetEditionDefault): unknown {
+ const obj: any = {};
+ if (message.edition !== 0) {
+ obj.edition = editionToJSON(message.edition);
+ }
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>): FeatureSetDefaults_FeatureSetEditionDefault {
+ return FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(base ?? {});
+ },
+ fromPartial(
+ object: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>,
+ ): FeatureSetDefaults_FeatureSetEditionDefault {
+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
+ message.edition = object.edition ?? 0;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
+ return message;
+ },
+};
+
function createBaseSourceCodeInfo(): SourceCodeInfo {
return { location: [] };
}
diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.ts
index dbdf7a289a..b87dbf5bac 100644
--- a/frontend/src/types/proto/google/protobuf/struct.ts
+++ b/frontend/src/types/proto/google/protobuf/struct.ts
@@ -8,7 +8,7 @@ export const protobufPackage = "google.protobuf";
* `NullValue` is a singleton enumeration to represent the null value for the
* `Value` type union.
*
- * The JSON representation for `NullValue` is JSON `null`.
+ * The JSON representation for `NullValue` is JSON `null`.
*/
export enum NullValue {
/** NULL_VALUE - Null value. */
diff --git a/frontend/src/types/proto/google/protobuf/timestamp.ts b/frontend/src/types/proto/google/protobuf/timestamp.ts
index 51695e08d0..5781891bc0 100644
--- a/frontend/src/types/proto/google/protobuf/timestamp.ts
+++ b/frontend/src/types/proto/google/protobuf/timestamp.ts
@@ -92,7 +92,7 @@ export const protobufPackage = "google.protobuf";
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
- * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
+ * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
* ) to obtain a formatter capable of generating timestamps in this format.
*/
export interface Timestamp {
diff --git a/frontend/src/types/proto/store/data_source.ts b/frontend/src/types/proto/store/data_source.ts
index 19ced14d28..c2263e4570 100644
--- a/frontend/src/types/proto/store/data_source.ts
+++ b/frontend/src/types/proto/store/data_source.ts
@@ -9,8 +9,9 @@ export interface DataSourceExternalSecret {
url: string;
authType: DataSourceExternalSecret_AuthType;
appRole?: DataSourceExternalSecret_AppRoleAuthOption | undefined;
- token?:
- | string
+ token?: string | undefined;
+ awsEnvironmentConfig?:
+ | DataSourceExternalSecret_AWSEnvironmentConfig
| undefined;
/** engine name is the name for secret engine. */
engineName: string;
@@ -24,6 +25,8 @@ export enum DataSourceExternalSecret_SecretType {
SAECRET_TYPE_UNSPECIFIED = 0,
/** VAULT_KV_V2 - ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2 */
VAULT_KV_V2 = 1,
+ /** AWS_SECRETS_MANAGER - ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html */
+ AWS_SECRETS_MANAGER = 2,
UNRECOGNIZED = -1,
}
@@ -35,6 +38,9 @@ export function dataSourceExternalSecret_SecretTypeFromJSON(object: any): DataSo
case 1:
case "VAULT_KV_V2":
return DataSourceExternalSecret_SecretType.VAULT_KV_V2;
+ case 2:
+ case "AWS_SECRETS_MANAGER":
+ return DataSourceExternalSecret_SecretType.AWS_SECRETS_MANAGER;
case -1:
case "UNRECOGNIZED":
default:
@@ -48,6 +54,8 @@ export function dataSourceExternalSecret_SecretTypeToJSON(object: DataSourceExte
return "SAECRET_TYPE_UNSPECIFIED";
case DataSourceExternalSecret_SecretType.VAULT_KV_V2:
return "VAULT_KV_V2";
+ case DataSourceExternalSecret_SecretType.AWS_SECRETS_MANAGER:
+ return "AWS_SECRETS_MANAGER";
case DataSourceExternalSecret_SecretType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -60,6 +68,8 @@ export enum DataSourceExternalSecret_AuthType {
TOKEN = 1,
/** APP_ROLE - ref: https://developer.hashicorp.com/vault/docs/auth/approle */
APP_ROLE = 2,
+ /** AWS_ENVIRONMENT - ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials */
+ AWS_ENVIRONMENT = 3,
UNRECOGNIZED = -1,
}
@@ -74,6 +84,9 @@ export function dataSourceExternalSecret_AuthTypeFromJSON(object: any): DataSour
case 2:
case "APP_ROLE":
return DataSourceExternalSecret_AuthType.APP_ROLE;
+ case 3:
+ case "AWS_ENVIRONMENT":
+ return DataSourceExternalSecret_AuthType.AWS_ENVIRONMENT;
case -1:
case "UNRECOGNIZED":
default:
@@ -89,6 +102,8 @@ export function dataSourceExternalSecret_AuthTypeToJSON(object: DataSourceExtern
return "TOKEN";
case DataSourceExternalSecret_AuthType.APP_ROLE:
return "APP_ROLE";
+ case DataSourceExternalSecret_AuthType.AWS_ENVIRONMENT:
+ return "AWS_ENVIRONMENT";
case DataSourceExternalSecret_AuthType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -147,6 +162,18 @@ export function dataSourceExternalSecret_AppRoleAuthOption_SecretTypeToJSON(
}
}
+/** store the environment name for AWS credentials. */
+export interface DataSourceExternalSecret_AWSEnvironmentConfig {
+ /** environment name for AWS access key id, default AWS_ACCESS_KEY_ID. */
+ accessKeyId: string;
+ /** environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY. */
+ secretAccessKey: string;
+ /** environment name for AWS session token, default AWS_SESSION_TOKEN. */
+ sessionToken: string;
+ /** environment name for AWS region, default AWS_REGION. */
+ region: string;
+}
+
export interface DataSourceOptions {
/** srv is a boolean flag that indicates whether the host is a DNS SRV record. */
srv: boolean;
@@ -183,6 +210,7 @@ function createBaseDataSourceExternalSecret(): DataSourceExternalSecret {
authType: 0,
appRole: undefined,
token: undefined,
+ awsEnvironmentConfig: undefined,
engineName: "",
secretName: "",
passwordKeyName: "",
@@ -206,6 +234,10 @@ export const DataSourceExternalSecret = {
if (message.token !== undefined) {
writer.uint32(42).string(message.token);
}
+ if (message.awsEnvironmentConfig !== undefined) {
+ DataSourceExternalSecret_AWSEnvironmentConfig.encode(message.awsEnvironmentConfig, writer.uint32(74).fork())
+ .ldelim();
+ }
if (message.engineName !== "") {
writer.uint32(50).string(message.engineName);
}
@@ -260,6 +292,13 @@ export const DataSourceExternalSecret = {
message.token = reader.string();
continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.awsEnvironmentConfig = DataSourceExternalSecret_AWSEnvironmentConfig.decode(reader, reader.uint32());
+ continue;
case 6:
if (tag !== 50) {
break;
@@ -297,6 +336,9 @@ export const DataSourceExternalSecret = {
authType: isSet(object.authType) ? dataSourceExternalSecret_AuthTypeFromJSON(object.authType) : 0,
appRole: isSet(object.appRole) ? DataSourceExternalSecret_AppRoleAuthOption.fromJSON(object.appRole) : undefined,
token: isSet(object.token) ? globalThis.String(object.token) : undefined,
+ awsEnvironmentConfig: isSet(object.awsEnvironmentConfig)
+ ? DataSourceExternalSecret_AWSEnvironmentConfig.fromJSON(object.awsEnvironmentConfig)
+ : undefined,
engineName: isSet(object.engineName) ? globalThis.String(object.engineName) : "",
secretName: isSet(object.secretName) ? globalThis.String(object.secretName) : "",
passwordKeyName: isSet(object.passwordKeyName) ? globalThis.String(object.passwordKeyName) : "",
@@ -320,6 +362,9 @@ export const DataSourceExternalSecret = {
if (message.token !== undefined) {
obj.token = message.token;
}
+ if (message.awsEnvironmentConfig !== undefined) {
+ obj.awsEnvironmentConfig = DataSourceExternalSecret_AWSEnvironmentConfig.toJSON(message.awsEnvironmentConfig);
+ }
if (message.engineName !== "") {
obj.engineName = message.engineName;
}
@@ -344,6 +389,9 @@ export const DataSourceExternalSecret = {
? DataSourceExternalSecret_AppRoleAuthOption.fromPartial(object.appRole)
: undefined;
message.token = object.token ?? undefined;
+ message.awsEnvironmentConfig = (object.awsEnvironmentConfig !== undefined && object.awsEnvironmentConfig !== null)
+ ? DataSourceExternalSecret_AWSEnvironmentConfig.fromPartial(object.awsEnvironmentConfig)
+ : undefined;
message.engineName = object.engineName ?? "";
message.secretName = object.secretName ?? "";
message.passwordKeyName = object.passwordKeyName ?? "";
@@ -457,6 +505,114 @@ export const DataSourceExternalSecret_AppRoleAuthOption = {
},
};
+function createBaseDataSourceExternalSecret_AWSEnvironmentConfig(): DataSourceExternalSecret_AWSEnvironmentConfig {
+ return { accessKeyId: "", secretAccessKey: "", sessionToken: "", region: "" };
+}
+
+export const DataSourceExternalSecret_AWSEnvironmentConfig = {
+ encode(message: DataSourceExternalSecret_AWSEnvironmentConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.accessKeyId !== "") {
+ writer.uint32(10).string(message.accessKeyId);
+ }
+ if (message.secretAccessKey !== "") {
+ writer.uint32(18).string(message.secretAccessKey);
+ }
+ if (message.sessionToken !== "") {
+ writer.uint32(26).string(message.sessionToken);
+ }
+ if (message.region !== "") {
+ writer.uint32(34).string(message.region);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): DataSourceExternalSecret_AWSEnvironmentConfig {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseDataSourceExternalSecret_AWSEnvironmentConfig();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.accessKeyId = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.secretAccessKey = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.sessionToken = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.region = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): DataSourceExternalSecret_AWSEnvironmentConfig {
+ return {
+ accessKeyId: isSet(object.accessKeyId) ? globalThis.String(object.accessKeyId) : "",
+ secretAccessKey: isSet(object.secretAccessKey) ? globalThis.String(object.secretAccessKey) : "",
+ sessionToken: isSet(object.sessionToken) ? globalThis.String(object.sessionToken) : "",
+ region: isSet(object.region) ? globalThis.String(object.region) : "",
+ };
+ },
+
+ toJSON(message: DataSourceExternalSecret_AWSEnvironmentConfig): unknown {
+ const obj: any = {};
+ if (message.accessKeyId !== "") {
+ obj.accessKeyId = message.accessKeyId;
+ }
+ if (message.secretAccessKey !== "") {
+ obj.secretAccessKey = message.secretAccessKey;
+ }
+ if (message.sessionToken !== "") {
+ obj.sessionToken = message.sessionToken;
+ }
+ if (message.region !== "") {
+ obj.region = message.region;
+ }
+ return obj;
+ },
+
+ create(
+ base?: DeepPartial<DataSourceExternalSecret_AWSEnvironmentConfig>,
+ ): DataSourceExternalSecret_AWSEnvironmentConfig {
+ return DataSourceExternalSecret_AWSEnvironmentConfig.fromPartial(base ?? {});
+ },
+ fromPartial(
+ object: DeepPartial<DataSourceExternalSecret_AWSEnvironmentConfig>,
+ ): DataSourceExternalSecret_AWSEnvironmentConfig {
+ const message = createBaseDataSourceExternalSecret_AWSEnvironmentConfig();
+ message.accessKeyId = object.accessKeyId ?? "";
+ message.secretAccessKey = object.secretAccessKey ?? "";
+ message.sessionToken = object.sessionToken ?? "";
+ message.region = object.region ?? "";
+ return message;
+ },
+};
+
function createBaseDataSourceOptions(): DataSourceOptions {
return {
srv: false,
diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.ts
index 86eefedaef..5b098014f3 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -281,8 +281,9 @@ export interface DataSourceExternalSecret {
url: string;
authType: DataSourceExternalSecret_AuthType;
appRole?: DataSourceExternalSecret_AppRoleAuthOption | undefined;
- token?:
- | string
+ token?: string | undefined;
+ awsEnvironmentConfig?:
+ | DataSourceExternalSecret_AWSEnvironmentConfig
| undefined;
/** engine name is the name for secret engine. */
engineName: string;
@@ -296,6 +297,8 @@ export enum DataSourceExternalSecret_SecretType {
SAECRET_TYPE_UNSPECIFIED = 0,
/** VAULT_KV_V2 - ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2 */
VAULT_KV_V2 = 1,
+ /** AWS_SECRETS_MANAGER - ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html */
+ AWS_SECRETS_MANAGER = 2,
UNRECOGNIZED = -1,
}
@@ -307,6 +310,9 @@ export function dataSourceExternalSecret_SecretTypeFromJSON(object: any): DataSo
case 1:
case "VAULT_KV_V2":
return DataSourceExternalSecret_SecretType.VAULT_KV_V2;
+ case 2:
+ case "AWS_SECRETS_MANAGER":
+ return DataSourceExternalSecret_SecretType.AWS_SECRETS_MANAGER;
case -1:
case "UNRECOGNIZED":
default:
@@ -320,6 +326,8 @@ export function dataSourceExternalSecret_SecretTypeToJSON(object: DataSourceExte
return "SAECRET_TYPE_UNSPECIFIED";
case DataSourceExternalSecret_SecretType.VAULT_KV_V2:
return "VAULT_KV_V2";
+ case DataSourceExternalSecret_SecretType.AWS_SECRETS_MANAGER:
+ return "AWS_SECRETS_MANAGER";
case DataSourceExternalSecret_SecretType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -332,6 +340,8 @@ export enum DataSourceExternalSecret_AuthType {
TOKEN = 1,
/** APP_ROLE - ref: https://developer.hashicorp.com/vault/docs/auth/approle */
APP_ROLE = 2,
+ /** AWS_ENVIRONMENT - ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials */
+ AWS_ENVIRONMENT = 3,
UNRECOGNIZED = -1,
}
@@ -346,6 +356,9 @@ export function dataSourceExternalSecret_AuthTypeFromJSON(object: any): DataSour
case 2:
case "APP_ROLE":
return DataSourceExternalSecret_AuthType.APP_ROLE;
+ case 3:
+ case "AWS_ENVIRONMENT":
+ return DataSourceExternalSecret_AuthType.AWS_ENVIRONMENT;
case -1:
case "UNRECOGNIZED":
default:
@@ -361,6 +374,8 @@ export function dataSourceExternalSecret_AuthTypeToJSON(object: DataSourceExtern
return "TOKEN";
case DataSourceExternalSecret_AuthType.APP_ROLE:
return "APP_ROLE";
+ case DataSourceExternalSecret_AuthType.AWS_ENVIRONMENT:
+ return "AWS_ENVIRONMENT";
case DataSourceExternalSecret_AuthType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -419,6 +434,18 @@ export function dataSourceExternalSecret_AppRoleAuthOption_SecretTypeToJSON(
}
}
+/** store the environment name for AWS credentials. */
+export interface DataSourceExternalSecret_AWSEnvironmentConfig {
+ /** environment name for AWS access key id, default AWS_ACCESS_KEY_ID. */
+ accessKeyId: string;
+ /** environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY. */
+ secretAccessKey: string;
+ /** environment name for AWS session token, default AWS_SESSION_TOKEN. */
+ sessionToken: string;
+ /** environment name for AWS region, default AWS_REGION. */
+ region: string;
+}
+
export interface DataSource {
id: string;
type: DataSourceType;
@@ -1999,6 +2026,7 @@ function createBaseDataSourceExternalSecret(): DataSourceExternalSecret {
authType: 0,
appRole: undefined,
token: undefined,
+ awsEnvironmentConfig: undefined,
engineName: "",
secretName: "",
passwordKeyName: "",
@@ -2022,6 +2050,10 @@ export const DataSourceExternalSecret = {
if (message.token !== undefined) {
writer.uint32(42).string(message.token);
}
+ if (message.awsEnvironmentConfig !== undefined) {
+ DataSourceExternalSecret_AWSEnvironmentConfig.encode(message.awsEnvironmentConfig, writer.uint32(74).fork())
+ .ldelim();
+ }
if (message.engineName !== "") {
writer.uint32(50).string(message.engineName);
}
@@ -2076,6 +2108,13 @@ export const DataSourceExternalSecret = {
message.token = reader.string();
continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.awsEnvironmentConfig = DataSourceExternalSecret_AWSEnvironmentConfig.decode(reader, reader.uint32());
+ continue;
case 6:
if (tag !== 50) {
break;
@@ -2113,6 +2152,9 @@ export const DataSourceExternalSecret = {
authType: isSet(object.authType) ? dataSourceExternalSecret_AuthTypeFromJSON(object.authType) : 0,
appRole: isSet(object.appRole) ? DataSourceExternalSecret_AppRoleAuthOption.fromJSON(object.appRole) : undefined,
token: isSet(object.token) ? globalThis.String(object.token) : undefined,
+ awsEnvironmentConfig: isSet(object.awsEnvironmentConfig)
+ ? DataSourceExternalSecret_AWSEnvironmentConfig.fromJSON(object.awsEnvironmentConfig)
+ : undefined,
engineName: isSet(object.engineName) ? globalThis.String(object.engineName) : "",
secretName: isSet(object.secretName) ? globalThis.String(object.secretName) : "",
passwordKeyName: isSet(object.passwordKeyName) ? globalThis.String(object.passwordKeyName) : "",
@@ -2136,6 +2178,9 @@ export const DataSourceExternalSecret = {
if (message.token !== undefined) {
obj.token = message.token;
}
+ if (message.awsEnvironmentConfig !== undefined) {
+ obj.awsEnvironmentConfig = DataSourceExternalSecret_AWSEnvironmentConfig.toJSON(message.awsEnvironmentConfig);
+ }
if (message.engineName !== "") {
obj.engineName = message.engineName;
}
@@ -2160,6 +2205,9 @@ export const DataSourceExternalSecret = {
? DataSourceExternalSecret_AppRoleAuthOption.fromPartial(object.appRole)
: undefined;
message.token = object.token ?? undefined;
+ message.awsEnvironmentConfig = (object.awsEnvironmentConfig !== undefined && object.awsEnvironmentConfig !== null)
+ ? DataSourceExternalSecret_AWSEnvironmentConfig.fromPartial(object.awsEnvironmentConfig)
+ : undefined;
message.engineName = object.engineName ?? "";
message.secretName = object.secretName ?? "";
message.passwordKeyName = object.passwordKeyName ?? "";
@@ -2273,6 +2321,114 @@ export const DataSourceExternalSecret_AppRoleAuthOption = {
},
};
+function createBaseDataSourceExternalSecret_AWSEnvironmentConfig(): DataSourceExternalSecret_AWSEnvironmentConfig {
+ return { accessKeyId: "", secretAccessKey: "", sessionToken: "", region: "" };
+}
+
+export const DataSourceExternalSecret_AWSEnvironmentConfig = {
+ encode(message: DataSourceExternalSecret_AWSEnvironmentConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.accessKeyId !== "") {
+ writer.uint32(10).string(message.accessKeyId);
+ }
+ if (message.secretAccessKey !== "") {
+ writer.uint32(18).string(message.secretAccessKey);
+ }
+ if (message.sessionToken !== "") {
+ writer.uint32(26).string(message.sessionToken);
+ }
+ if (message.region !== "") {
+ writer.uint32(34).string(message.region);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): DataSourceExternalSecret_AWSEnvironmentConfig {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseDataSourceExternalSecret_AWSEnvironmentConfig();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.accessKeyId = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.secretAccessKey = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.sessionToken = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.region = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): DataSourceExternalSecret_AWSEnvironmentConfig {
+ return {
+ accessKeyId: isSet(object.accessKeyId) ? globalThis.String(object.accessKeyId) : "",
+ secretAccessKey: isSet(object.secretAccessKey) ? globalThis.String(object.secretAccessKey) : "",
+ sessionToken: isSet(object.sessionToken) ? globalThis.String(object.sessionToken) : "",
+ region: isSet(object.region) ? globalThis.String(object.region) : "",
+ };
+ },
+
+ toJSON(message: DataSourceExternalSecret_AWSEnvironmentConfig): unknown {
+ const obj: any = {};
+ if (message.accessKeyId !== "") {
+ obj.accessKeyId = message.accessKeyId;
+ }
+ if (message.secretAccessKey !== "") {
+ obj.secretAccessKey = message.secretAccessKey;
+ }
+ if (message.sessionToken !== "") {
+ obj.sessionToken = message.sessionToken;
+ }
+ if (message.region !== "") {
+ obj.region = message.region;
+ }
+ return obj;
+ },
+
+ create(
+ base?: DeepPartial<DataSourceExternalSecret_AWSEnvironmentConfig>,
+ ): DataSourceExternalSecret_AWSEnvironmentConfig {
+ return DataSourceExternalSecret_AWSEnvironmentConfig.fromPartial(base ?? {});
+ },
+ fromPartial(
+ object: DeepPartial<DataSourceExternalSecret_AWSEnvironmentConfig>,
+ ): DataSourceExternalSecret_AWSEnvironmentConfig {
+ const message = createBaseDataSourceExternalSecret_AWSEnvironmentConfig();
+ message.accessKeyId = object.accessKeyId ?? "";
+ message.secretAccessKey = object.secretAccessKey ?? "";
+ message.sessionToken = object.sessionToken ?? "";
+ message.region = object.region ?? "";
+ return message;
+ },
+};
+
function createBaseDataSource(): DataSource {
return {
id: "",
diff --git a/go.mod b/go.mod
index 6173841f0c..c97e8ae11c 100644
--- a/go.mod
+++ b/go.mod
@@ -9,11 +9,12 @@ require (
github.com/alexmullins/zip v0.0.0-20180717182244-4affb64b04d0
github.com/antlr4-go/antlr/v4 v4.13.0
github.com/aws/aws-sdk-go-v2 v1.26.1
- github.com/aws/aws-sdk-go-v2/config v1.27.10
- github.com/aws/aws-sdk-go-v2/credentials v1.17.10
+ github.com/aws/aws-sdk-go-v2/config v1.27.11
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.11
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.14
github.com/aws/aws-sdk-go-v2/service/licensemanager v1.25.4
github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1
+ github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.28.6
github.com/beltran/gohive v1.7.0
github.com/blang/semver/v4 v4.0.0
github.com/bytebase/mysql-parser v0.0.0-20240315091443-ac59cc21115a
@@ -205,7 +206,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.5 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.20.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6
github.com/aws/smithy-go v1.20.2 // indirect
diff --git a/go.sum b/go.sum
index f1d6bb1330..f7172848d9 100644
--- a/go.sum
+++ b/go.sum
@@ -93,10 +93,10 @@ github.com/aws/aws-sdk-go-v2 v1.26.1 h1:5554eUqIYVWpU0YmeeYZ0wU64H2VLBs8TlhRB2L+
github.com/aws/aws-sdk-go-v2 v1.26.1/go.mod h1:ffIFB97e2yNsv4aTSGkqtHnppsIJzw7G7BReUZ3jCXM=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 h1:x6xsQXGSmW6frevwDA+vi/wqhp1ct18mVXYN08/93to=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2/go.mod h1:lPprDr1e6cJdyYeGXnRaJoP4Md+cDBvi2eOj00BlGmg=
-github.com/aws/aws-sdk-go-v2/config v1.27.10 h1:PS+65jThT0T/snC5WjyfHHyUgG+eBoupSDV+f838cro=
-github.com/aws/aws-sdk-go-v2/config v1.27.10/go.mod h1:BePM7Vo4OBpHreKRUMuDXX+/+JWP38FLkzl5m27/Jjs=
-github.com/aws/aws-sdk-go-v2/credentials v1.17.10 h1:qDZ3EA2lv1KangvQB6y258OssCHD0xvaGiEDkG4X/10=
-github.com/aws/aws-sdk-go-v2/credentials v1.17.10/go.mod h1:6t3sucOaYDwDssHQa0ojH1RpmVmF5/jArkye1b2FKMI=
+github.com/aws/aws-sdk-go-v2/config v1.27.11 h1:f47rANd2LQEYHda2ddSCKYId18/8BhSRM4BULGmfgNA=
+github.com/aws/aws-sdk-go-v2/config v1.27.11/go.mod h1:SMsV78RIOYdve1vf36z8LmnszlRWkwMQtomCAI0/mIE=
+github.com/aws/aws-sdk-go-v2/credentials v1.17.11 h1:YuIB1dJNf1Re822rriUOTxopaHHvIq0l/pX3fwO+Tzs=
+github.com/aws/aws-sdk-go-v2/credentials v1.17.11/go.mod h1:AQtFPsDH9bI2O+71anW6EKL+NcD7LG3dpKGMV4SShgo=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 h1:FVJ0r5XTHSmIHJV6KuDmdYhEpvlHpiSd38RQWhut5J4=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1/go.mod h1:zusuAeqezXzAB24LGuzuekqMAEgWkVYukBec3kr3jUg=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.14 h1:Nhcq+ODoD9FRQYI3lATy6iADS5maER3ZXSfE8v3FMh8=
@@ -121,8 +121,10 @@ github.com/aws/aws-sdk-go-v2/service/licensemanager v1.25.4 h1:bpwI4PGHWOxdRRXBG
github.com/aws/aws-sdk-go-v2/service/licensemanager v1.25.4/go.mod h1:Ao5aZ6jlMFjOwXVQUPKoDJ1R8Q8h+a3TEY3JMuKKsr8=
github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 h1:6cnno47Me9bRykw9AEv9zkXE+5or7jz8TsskTTccbgc=
github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1/go.mod h1:qmdkIIAC+GCLASF7R2whgNrJADz0QZPX+Seiw/i4S3o=
-github.com/aws/aws-sdk-go-v2/service/sso v1.20.4 h1:WzFol5Cd+yDxPAdnzTA5LmpHYSWinhmSj4rQChV0ee8=
-github.com/aws/aws-sdk-go-v2/service/sso v1.20.4/go.mod h1:qGzynb/msuZIE8I75DVRCUXw3o3ZyBmUvMwQ2t/BrGM=
+github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.28.6 h1:TIOEjw0i2yyhmhRry3Oeu9YtiiHWISZ6j/irS1W3gX4=
+github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.28.6/go.mod h1:3Ba++UwWd154xtP4FRX5pUK3Gt4up5sDHCve6kVfE+g=
+github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 h1:vN8hEbpRnL7+Hopy9dzmRle1xmDc7o8tmY0klsr175w=
+github.com/aws/aws-sdk-go-v2/service/sso v1.20.5/go.mod h1:qGzynb/msuZIE8I75DVRCUXw3o3ZyBmUvMwQ2t/BrGM=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 h1:Jux+gDDyi1Lruk+KHF91tK2KCuY61kzoCpvtvJJBtOE=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4/go.mod h1:mUYPBhaF2lGiukDEjJX2BLRRKTmoUSitGDUgM4tRxak=
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 h1:cwIxeBttqPN3qkaAjcEcsh8NYr8n2HZPkcKgPAi1phU=
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index b1f2a28634..c2ba434b69 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -80,6 +80,7 @@
- [store/data_source.proto](#store_data_source-proto)
- [DataSourceExternalSecret](#bytebase-store-DataSourceExternalSecret)
+ - [DataSourceExternalSecret.AWSEnvironmentConfig](#bytebase-store-DataSourceExternalSecret-AWSEnvironmentConfig)
- [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-store-DataSourceExternalSecret-AppRoleAuthOption)
- [DataSourceOptions](#bytebase-store-DataSourceOptions)
@@ -1389,6 +1390,7 @@ Used internally for obfuscating the page token.
| auth_type | [DataSourceExternalSecret.AuthType](#bytebase-store-DataSourceExternalSecret-AuthType) | | |
| app_role | [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-store-DataSourceExternalSecret-AppRoleAuthOption) | | |
| token | [string](#string) | | |
+| aws_environment_config | [DataSourceExternalSecret.AWSEnvironmentConfig](#bytebase-store-DataSourceExternalSecret-AWSEnvironmentConfig) | | |
| engine_name | [string](#string) | | engine name is the name for secret engine. |
| secret_name | [string](#string) | | the secret name in the engine to store the password. |
| password_key_name | [string](#string) | | the key name for the password. |
@@ -1398,6 +1400,24 @@ Used internally for obfuscating the page token.
+<a name="bytebase-store-DataSourceExternalSecret-AWSEnvironmentConfig"></a>
+
+### DataSourceExternalSecret.AWSEnvironmentConfig
+store the environment name for AWS credentials.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| access_key_id | [string](#string) | | environment name for AWS access key id, default AWS_ACCESS_KEY_ID. |
+| secret_access_key | [string](#string) | | environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY. |
+| session_token | [string](#string) | | environment name for AWS session token, default AWS_SESSION_TOKEN. |
+| region | [string](#string) | | environment name for AWS region, default AWS_REGION. |
+
+
+
+
+
+
<a name="bytebase-store-DataSourceExternalSecret-AppRoleAuthOption"></a>
### DataSourceExternalSecret.AppRoleAuthOption
@@ -1466,6 +1486,7 @@ Used internally for obfuscating the page token.
| AUTH_TYPE_UNSPECIFIED | 0 | |
| TOKEN | 1 | ref: https://developer.hashicorp.com/vault/docs/auth/token |
| APP_ROLE | 2 | ref: https://developer.hashicorp.com/vault/docs/auth/approle |
+| AWS_ENVIRONMENT | 3 | ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials |
@@ -1478,6 +1499,7 @@ Used internally for obfuscating the page token.
| ---- | ------ | ----------- |
| SAECRET_TYPE_UNSPECIFIED | 0 | |
| VAULT_KV_V2 | 1 | ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2 |
+| AWS_SECRETS_MANAGER | 2 | ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 4aa59122fc..e7fe03f4a0 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -484,6 +484,10 @@
<a href="#bytebase.store.DataSourceExternalSecret"><span class="badge">M</span>DataSourceExternalSecret</a>
</li>
+ <li>
+ <a href="#bytebase.store.DataSourceExternalSecret.AWSEnvironmentConfig"><span class="badge">M</span>DataSourceExternalSecret.AWSEnvironmentConfig</a>
+ </li>
+
<li>
<a href="#bytebase.store.DataSourceExternalSecret.AppRoleAuthOption"><span class="badge">M</span>DataSourceExternalSecret.AppRoleAuthOption</a>
</li>
@@ -3893,6 +3897,13 @@ Example: projects/project-id/branches/branch-id. </p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>aws_environment_config</td>
+ <td><a href="#bytebase.store.DataSourceExternalSecret.AWSEnvironmentConfig">DataSourceExternalSecret.AWSEnvironmentConfig</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
<tr>
<td>engine_name</td>
<td><a href="#string">string</a></td>
@@ -3921,6 +3932,51 @@ Example: projects/project-id/branches/branch-id. </p></td>
+ <h3 id="bytebase.store.DataSourceExternalSecret.AWSEnvironmentConfig">DataSourceExternalSecret.AWSEnvironmentConfig</h3>
+ <p>store the environment name for AWS credentials.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>access_key_id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>environment name for AWS access key id, default AWS_ACCESS_KEY_ID. </p></td>
+ </tr>
+
+ <tr>
+ <td>secret_access_key</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY. </p></td>
+ </tr>
+
+ <tr>
+ <td>session_token</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>environment name for AWS session token, default AWS_SESSION_TOKEN. </p></td>
+ </tr>
+
+ <tr>
+ <td>region</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>environment name for AWS region, default AWS_REGION. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.store.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</h3>
<p></p>
@@ -4119,6 +4175,12 @@ Used for authentication when connecting to the data source. </p></td>
<td><p>ref: https://developer.hashicorp.com/vault/docs/auth/approle</p></td>
</tr>
+ <tr>
+ <td>AWS_ENVIRONMENT</td>
+ <td>3</td>
+ <td><p>ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials</p></td>
+ </tr>
+
</tbody>
</table>
@@ -4142,6 +4204,12 @@ Used for authentication when connecting to the data source. </p></td>
<td><p>ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2</p></td>
</tr>
+ <tr>
+ <td>AWS_SECRETS_MANAGER</td>
+ <td>2</td>
+ <td><p>ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html</p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 3a0ce77504..a86ef44c3e 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -63,6 +63,7 @@
- [CreateInstanceRequest](#bytebase-v1-CreateInstanceRequest)
- [DataSource](#bytebase-v1-DataSource)
- [DataSourceExternalSecret](#bytebase-v1-DataSourceExternalSecret)
+ - [DataSourceExternalSecret.AWSEnvironmentConfig](#bytebase-v1-DataSourceExternalSecret-AWSEnvironmentConfig)
- [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption)
- [DeleteInstanceRequest](#bytebase-v1-DeleteInstanceRequest)
- [GetInstanceRequest](#bytebase-v1-GetInstanceRequest)
@@ -1480,6 +1481,7 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
| auth_type | [DataSourceExternalSecret.AuthType](#bytebase-v1-DataSourceExternalSecret-AuthType) | | |
| app_role | [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption) | | |
| token | [string](#string) | | |
+| aws_environment_config | [DataSourceExternalSecret.AWSEnvironmentConfig](#bytebase-v1-DataSourceExternalSecret-AWSEnvironmentConfig) | | |
| engine_name | [string](#string) | | engine name is the name for secret engine. |
| secret_name | [string](#string) | | the secret name in the engine to store the password. |
| password_key_name | [string](#string) | | the key name for the password. |
@@ -1489,6 +1491,24 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
+<a name="bytebase-v1-DataSourceExternalSecret-AWSEnvironmentConfig"></a>
+
+### DataSourceExternalSecret.AWSEnvironmentConfig
+store the environment name for AWS credentials.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| access_key_id | [string](#string) | | environment name for AWS access key id, default AWS_ACCESS_KEY_ID. |
+| secret_access_key | [string](#string) | | environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY. |
+| session_token | [string](#string) | | environment name for AWS session token, default AWS_SESSION_TOKEN. |
+| region | [string](#string) | | environment name for AWS region, default AWS_REGION. |
+
+
+
+
+
+
<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption"></a>
### DataSourceExternalSecret.AppRoleAuthOption
@@ -1798,6 +1818,7 @@ The instance&#39;s `name` field is used to identify the instance to update. Form
| AUTH_TYPE_UNSPECIFIED | 0 | |
| TOKEN | 1 | ref: https://developer.hashicorp.com/vault/docs/auth/token |
| APP_ROLE | 2 | ref: https://developer.hashicorp.com/vault/docs/auth/approle |
+| AWS_ENVIRONMENT | 3 | ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials |
@@ -1810,6 +1831,7 @@ The instance&#39;s `name` field is used to identify the instance to update. Form
| ---- | ------ | ----------- |
| SAECRET_TYPE_UNSPECIFIED | 0 | |
| VAULT_KV_V2 | 1 | ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2 |
+| AWS_SECRETS_MANAGER | 2 | ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index cb9750a565..1c6217e515 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -406,6 +406,10 @@
<a href="#bytebase.v1.DataSourceExternalSecret"><span class="badge">M</span>DataSourceExternalSecret</a>
</li>
+ <li>
+ <a href="#bytebase.v1.DataSourceExternalSecret.AWSEnvironmentConfig"><span class="badge">M</span>DataSourceExternalSecret.AWSEnvironmentConfig</a>
+ </li>
+
<li>
<a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption"><span class="badge">M</span>DataSourceExternalSecret.AppRoleAuthOption</a>
</li>
@@ -4829,6 +4833,13 @@ Used for authentication when connecting to the data source. </p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>aws_environment_config</td>
+ <td><a href="#bytebase.v1.DataSourceExternalSecret.AWSEnvironmentConfig">DataSourceExternalSecret.AWSEnvironmentConfig</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
<tr>
<td>engine_name</td>
<td><a href="#string">string</a></td>
@@ -4857,6 +4868,51 @@ Used for authentication when connecting to the data source. </p></td>
+ <h3 id="bytebase.v1.DataSourceExternalSecret.AWSEnvironmentConfig">DataSourceExternalSecret.AWSEnvironmentConfig</h3>
+ <p>store the environment name for AWS credentials.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>access_key_id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>environment name for AWS access key id, default AWS_ACCESS_KEY_ID. </p></td>
+ </tr>
+
+ <tr>
+ <td>secret_access_key</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY. </p></td>
+ </tr>
+
+ <tr>
+ <td>session_token</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>environment name for AWS session token, default AWS_SESSION_TOKEN. </p></td>
+ </tr>
+
+ <tr>
+ <td>region</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>environment name for AWS region, default AWS_REGION. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</h3>
<p></p>
@@ -5543,6 +5599,12 @@ Format: instances/{instance} </p></td>
<td><p>ref: https://developer.hashicorp.com/vault/docs/auth/approle</p></td>
</tr>
+ <tr>
+ <td>AWS_ENVIRONMENT</td>
+ <td>3</td>
+ <td><p>ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials</p></td>
+ </tr>
+
</tbody>
</table>
@@ -5566,6 +5628,12 @@ Format: instances/{instance} </p></td>
<td><p>ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2</p></td>
</tr>
+ <tr>
+ <td>AWS_SECRETS_MANAGER</td>
+ <td>2</td>
+ <td><p>ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html</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 d5268d334f..313669a471 100644
--- a/proto/generated-go/store/data_source.pb.go
+++ b/proto/generated-go/store/data_source.pb.go
@@ -26,6 +26,8 @@ const (
DataSourceExternalSecret_SAECRET_TYPE_UNSPECIFIED DataSourceExternalSecret_SecretType = 0
// ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2
DataSourceExternalSecret_VAULT_KV_V2 DataSourceExternalSecret_SecretType = 1
+ // ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
+ DataSourceExternalSecret_AWS_SECRETS_MANAGER DataSourceExternalSecret_SecretType = 2
)
// Enum value maps for DataSourceExternalSecret_SecretType.
@@ -33,10 +35,12 @@ var (
DataSourceExternalSecret_SecretType_name = map[int32]string{
0: "SAECRET_TYPE_UNSPECIFIED",
1: "VAULT_KV_V2",
+ 2: "AWS_SECRETS_MANAGER",
}
DataSourceExternalSecret_SecretType_value = map[string]int32{
"SAECRET_TYPE_UNSPECIFIED": 0,
"VAULT_KV_V2": 1,
+ "AWS_SECRETS_MANAGER": 2,
}
)
@@ -75,6 +79,8 @@ const (
DataSourceExternalSecret_TOKEN DataSourceExternalSecret_AuthType = 1
// ref: https://developer.hashicorp.com/vault/docs/auth/approle
DataSourceExternalSecret_APP_ROLE DataSourceExternalSecret_AuthType = 2
+ // ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials
+ DataSourceExternalSecret_AWS_ENVIRONMENT DataSourceExternalSecret_AuthType = 3
)
// Enum value maps for DataSourceExternalSecret_AuthType.
@@ -83,11 +89,13 @@ var (
0: "AUTH_TYPE_UNSPECIFIED",
1: "TOKEN",
2: "APP_ROLE",
+ 3: "AWS_ENVIRONMENT",
}
DataSourceExternalSecret_AuthType_value = map[string]int32{
"AUTH_TYPE_UNSPECIFIED": 0,
"TOKEN": 1,
"APP_ROLE": 2,
+ "AWS_ENVIRONMENT": 3,
}
)
@@ -179,6 +187,7 @@ type DataSourceExternalSecret struct {
//
// *DataSourceExternalSecret_AppRole
// *DataSourceExternalSecret_Token
+ // *DataSourceExternalSecret_AwsEnvironmentConfig
AuthOption isDataSourceExternalSecret_AuthOption `protobuf_oneof:"auth_option"`
// engine name is the name for secret engine.
EngineName string `protobuf:"bytes,6,opt,name=engine_name,json=engineName,proto3" json:"engine_name,omitempty"`
@@ -262,6 +271,13 @@ func (x *DataSourceExternalSecret) GetToken() string {
return ""
}
+func (x *DataSourceExternalSecret) GetAwsEnvironmentConfig() *DataSourceExternalSecret_AWSEnvironmentConfig {
+ if x, ok := x.GetAuthOption().(*DataSourceExternalSecret_AwsEnvironmentConfig); ok {
+ return x.AwsEnvironmentConfig
+ }
+ return nil
+}
+
func (x *DataSourceExternalSecret) GetEngineName() string {
if x != nil {
return x.EngineName
@@ -295,10 +311,16 @@ type DataSourceExternalSecret_Token struct {
Token string `protobuf:"bytes,5,opt,name=token,proto3,oneof"`
}
+type DataSourceExternalSecret_AwsEnvironmentConfig struct {
+ AwsEnvironmentConfig *DataSourceExternalSecret_AWSEnvironmentConfig `protobuf:"bytes,9,opt,name=aws_environment_config,json=awsEnvironmentConfig,proto3,oneof"`
+}
+
func (*DataSourceExternalSecret_AppRole) isDataSourceExternalSecret_AuthOption() {}
func (*DataSourceExternalSecret_Token) isDataSourceExternalSecret_AuthOption() {}
+func (*DataSourceExternalSecret_AwsEnvironmentConfig) isDataSourceExternalSecret_AuthOption() {}
+
type DataSourceOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -510,12 +532,88 @@ func (x *DataSourceExternalSecret_AppRoleAuthOption) GetMountPath() string {
return ""
}
+// store the environment name for AWS credentials.
+type DataSourceExternalSecret_AWSEnvironmentConfig struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // environment name for AWS access key id, default AWS_ACCESS_KEY_ID.
+ AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
+ // environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY.
+ SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"`
+ // environment name for AWS session token, default AWS_SESSION_TOKEN.
+ SessionToken string `protobuf:"bytes,3,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
+ // environment name for AWS region, default AWS_REGION.
+ Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) Reset() {
+ *x = DataSourceExternalSecret_AWSEnvironmentConfig{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_data_source_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DataSourceExternalSecret_AWSEnvironmentConfig) ProtoMessage() {}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) 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 DataSourceExternalSecret_AWSEnvironmentConfig.ProtoReflect.Descriptor instead.
+func (*DataSourceExternalSecret_AWSEnvironmentConfig) Descriptor() ([]byte, []int) {
+ return file_store_data_source_proto_rawDescGZIP(), []int{0, 1}
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) GetAccessKeyId() string {
+ if x != nil {
+ return x.AccessKeyId
+ }
+ return ""
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) GetSecretAccessKey() string {
+ if x != nil {
+ return x.SecretAccessKey
+ }
+ return ""
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) GetSessionToken() string {
+ if x != nil {
+ return x.SessionToken
+ }
+ return ""
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) GetRegion() string {
+ if x != nil {
+ return x.Region
+ }
+ return ""
+}
+
var File_store_data_source_proto protoreflect.FileDescriptor
var file_store_data_source_proto_rawDesc = []byte{
0x0a, 0x17, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xca, 0x06, 0x0a, 0x18, 0x44, 0x61,
+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x95, 0x09, 0x0a, 0x18, 0x44, 0x61,
0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x54, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x62, 0x79,
@@ -536,73 +634,94 @@ var file_store_data_source_proto_rawDesc = []byte{
0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07,
0x61, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
- 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65,
- 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
- 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d,
- 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6b, 0x65,
- 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61,
- 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x8a, 0x02,
- 0x0a, 0x11, 0x41, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74,
- 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09,
- 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x08, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x04, 0x74, 0x79, 0x70,
- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x45, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65,
- 0x74, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74,
- 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
- 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61,
- 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50,
- 0x61, 0x74, 0x68, 0x22, 0x45, 0x0a, 0x0a, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70,
- 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x43, 0x52, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45,
- 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09,
- 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56,
- 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x22, 0x3b, 0x0a, 0x0a, 0x53, 0x65,
- 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x41, 0x45, 0x43,
- 0x52, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x41, 0x55, 0x4c, 0x54, 0x5f,
- 0x4b, 0x56, 0x5f, 0x56, 0x32, 0x10, 0x01, 0x22, 0x3e, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54,
- 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45,
- 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09,
- 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50,
- 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f,
- 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xff, 0x03, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x53,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03,
- 0x73, 0x72, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37,
- 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x16, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72,
- 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08,
- 0x73, 0x73, 0x68, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
- 0x73, 0x73, 0x68, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x70,
- 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x50, 0x6f,
- 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x36, 0x0a,
- 0x17, 0x73, 0x73, 0x68, 0x5f, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f,
- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15,
- 0x73, 0x73, 0x68, 0x4f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x73,
- 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x73, 0x68, 0x5f, 0x6f, 0x62, 0x66,
- 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f,
- 0x6b, 0x65, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x73, 0x73, 0x68, 0x4f, 0x62,
- 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b,
- 0x65, 0x79, 0x12, 0x51, 0x0a, 0x25, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,
- 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79,
- 0x5f, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x22, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x4f, 0x62, 0x66, 0x75, 0x73,
- 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x51, 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,
- 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28,
+ 0x75, 0x0a, 0x16, 0x61, 0x77, 0x73, 0x5f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
+ 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x3d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72,
+ 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x57, 0x53, 0x45, 0x6e, 0x76,
+ 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00,
+ 0x52, 0x14, 0x61, 0x77, 0x73, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
+ 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x67,
+ 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65,
+ 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x61, 0x73, 0x73,
+ 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4b, 0x65, 0x79,
+ 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x8a, 0x02, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65,
+ 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f,
+ 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6c,
+ 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x69, 0x64,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x64,
+ 0x12, 0x59, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x45,
0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e,
- 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e,
- 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,
- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65,
+ 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65,
+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d,
+ 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x09, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x68, 0x22, 0x45, 0x0a, 0x0a, 0x53, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x43, 0x52,
+ 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x01,
+ 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10,
+ 0x02, 0x1a, 0xa3, 0x01, 0x0a, 0x14, 0x41, 0x57, 0x53, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
+ 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63,
+ 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a,
+ 0x0a, 0x11, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,
+ 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x72, 0x65,
+ 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0c, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
+ 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x0a, 0x53, 0x65, 0x63, 0x72, 0x65,
+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x41, 0x45, 0x43, 0x52, 0x45, 0x54,
+ 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
+ 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x4b, 0x56, 0x5f,
+ 0x56, 0x32, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x57, 0x53, 0x5f, 0x53, 0x45, 0x43, 0x52,
+ 0x45, 0x54, 0x53, 0x5f, 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x52, 0x10, 0x02, 0x22, 0x53, 0x0a,
+ 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x54,
+ 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12,
+ 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x13, 0x0a,
+ 0x0f, 0x41, 0x57, 0x53, 0x5f, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54,
+ 0x10, 0x03, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f,
+ 0x6e, 0x22, 0xff, 0x03, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74,
+ 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75, 0x74, 0x68,
+ 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f,
+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x68,
+ 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x48, 0x6f,
+ 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x19, 0x0a,
+ 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x73, 0x68, 0x5f,
+ 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77,
+ 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x73, 0x73, 0x68, 0x4f, 0x62,
+ 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
+ 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x73, 0x68, 0x5f, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74,
+ 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x09,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x73, 0x73, 0x68, 0x4f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61,
+ 0x74, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x51, 0x0a,
+ 0x25, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
+ 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6f, 0x62, 0x66, 0x75,
+ 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x22, 0x61, 0x75,
+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x76,
+ 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x4f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64,
+ 0x12, 0x51, 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63,
+ 0x72, 0x65, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63,
+ 0x72, 0x65, 0x74, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63,
+ 0x72, 0x65, 0x74, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,
+ 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x33,
}
var (
@@ -618,7 +737,7 @@ func file_store_data_source_proto_rawDescGZIP() []byte {
}
var file_store_data_source_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
-var file_store_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_store_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_store_data_source_proto_goTypes = []interface{}{
(DataSourceExternalSecret_SecretType)(0), // 0: bytebase.store.DataSourceExternalSecret.SecretType
(DataSourceExternalSecret_AuthType)(0), // 1: bytebase.store.DataSourceExternalSecret.AuthType
@@ -626,18 +745,20 @@ var file_store_data_source_proto_goTypes = []interface{}{
(*DataSourceExternalSecret)(nil), // 3: bytebase.store.DataSourceExternalSecret
(*DataSourceOptions)(nil), // 4: bytebase.store.DataSourceOptions
(*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 5: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption
+ (*DataSourceExternalSecret_AWSEnvironmentConfig)(nil), // 6: bytebase.store.DataSourceExternalSecret.AWSEnvironmentConfig
}
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
5, // 2: bytebase.store.DataSourceExternalSecret.app_role:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption
- 3, // 3: bytebase.store.DataSourceOptions.external_secret:type_name -> bytebase.store.DataSourceExternalSecret
- 2, // 4: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType
- 5, // [5:5] is the sub-list for method output_type
- 5, // [5:5] is the sub-list for method input_type
- 5, // [5:5] is the sub-list for extension type_name
- 5, // [5:5] is the sub-list for extension extendee
- 0, // [0:5] is the sub-list for field type_name
+ 6, // 3: bytebase.store.DataSourceExternalSecret.aws_environment_config:type_name -> bytebase.store.DataSourceExternalSecret.AWSEnvironmentConfig
+ 3, // 4: bytebase.store.DataSourceOptions.external_secret:type_name -> bytebase.store.DataSourceExternalSecret
+ 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
}
func init() { file_store_data_source_proto_init() }
@@ -682,10 +803,23 @@ func file_store_data_source_proto_init() {
return nil
}
}
+ file_store_data_source_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DataSourceExternalSecret_AWSEnvironmentConfig); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
}
file_store_data_source_proto_msgTypes[0].OneofWrappers = []interface{}{
(*DataSourceExternalSecret_AppRole)(nil),
(*DataSourceExternalSecret_Token)(nil),
+ (*DataSourceExternalSecret_AwsEnvironmentConfig)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -693,7 +827,7 @@ func file_store_data_source_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_data_source_proto_rawDesc,
NumEnums: 3,
- NumMessages: 3,
+ NumMessages: 4,
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 4a48c63db7..945e163a52 100644
--- a/proto/generated-go/v1/instance_service.pb.go
+++ b/proto/generated-go/v1/instance_service.pb.go
@@ -79,6 +79,8 @@ const (
DataSourceExternalSecret_SAECRET_TYPE_UNSPECIFIED DataSourceExternalSecret_SecretType = 0
// ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2
DataSourceExternalSecret_VAULT_KV_V2 DataSourceExternalSecret_SecretType = 1
+ // ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
+ DataSourceExternalSecret_AWS_SECRETS_MANAGER DataSourceExternalSecret_SecretType = 2
)
// Enum value maps for DataSourceExternalSecret_SecretType.
@@ -86,10 +88,12 @@ var (
DataSourceExternalSecret_SecretType_name = map[int32]string{
0: "SAECRET_TYPE_UNSPECIFIED",
1: "VAULT_KV_V2",
+ 2: "AWS_SECRETS_MANAGER",
}
DataSourceExternalSecret_SecretType_value = map[string]int32{
"SAECRET_TYPE_UNSPECIFIED": 0,
"VAULT_KV_V2": 1,
+ "AWS_SECRETS_MANAGER": 2,
}
)
@@ -128,6 +132,8 @@ const (
DataSourceExternalSecret_TOKEN DataSourceExternalSecret_AuthType = 1
// ref: https://developer.hashicorp.com/vault/docs/auth/approle
DataSourceExternalSecret_APP_ROLE DataSourceExternalSecret_AuthType = 2
+ // ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials
+ DataSourceExternalSecret_AWS_ENVIRONMENT DataSourceExternalSecret_AuthType = 3
)
// Enum value maps for DataSourceExternalSecret_AuthType.
@@ -136,11 +142,13 @@ var (
0: "AUTH_TYPE_UNSPECIFIED",
1: "TOKEN",
2: "APP_ROLE",
+ 3: "AWS_ENVIRONMENT",
}
DataSourceExternalSecret_AuthType_value = map[string]int32{
"AUTH_TYPE_UNSPECIFIED": 0,
"TOKEN": 1,
"APP_ROLE": 2,
+ "AWS_ENVIRONMENT": 3,
}
)
@@ -1396,6 +1404,7 @@ type DataSourceExternalSecret struct {
//
// *DataSourceExternalSecret_AppRole
// *DataSourceExternalSecret_Token
+ // *DataSourceExternalSecret_AwsEnvironmentConfig
AuthOption isDataSourceExternalSecret_AuthOption `protobuf_oneof:"auth_option"`
// engine name is the name for secret engine.
EngineName string `protobuf:"bytes,6,opt,name=engine_name,json=engineName,proto3" json:"engine_name,omitempty"`
@@ -1479,6 +1488,13 @@ func (x *DataSourceExternalSecret) GetToken() string {
return ""
}
+func (x *DataSourceExternalSecret) GetAwsEnvironmentConfig() *DataSourceExternalSecret_AWSEnvironmentConfig {
+ if x, ok := x.GetAuthOption().(*DataSourceExternalSecret_AwsEnvironmentConfig); ok {
+ return x.AwsEnvironmentConfig
+ }
+ return nil
+}
+
func (x *DataSourceExternalSecret) GetEngineName() string {
if x != nil {
return x.EngineName
@@ -1512,10 +1528,16 @@ type DataSourceExternalSecret_Token struct {
Token string `protobuf:"bytes,5,opt,name=token,proto3,oneof"`
}
+type DataSourceExternalSecret_AwsEnvironmentConfig struct {
+ AwsEnvironmentConfig *DataSourceExternalSecret_AWSEnvironmentConfig `protobuf:"bytes,9,opt,name=aws_environment_config,json=awsEnvironmentConfig,proto3,oneof"`
+}
+
func (*DataSourceExternalSecret_AppRole) isDataSourceExternalSecret_AuthOption() {}
func (*DataSourceExternalSecret_Token) isDataSourceExternalSecret_AuthOption() {}
+func (*DataSourceExternalSecret_AwsEnvironmentConfig) isDataSourceExternalSecret_AuthOption() {}
+
type DataSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1888,6 +1910,82 @@ func (x *DataSourceExternalSecret_AppRoleAuthOption) GetMountPath() string {
return ""
}
+// store the environment name for AWS credentials.
+type DataSourceExternalSecret_AWSEnvironmentConfig struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // environment name for AWS access key id, default AWS_ACCESS_KEY_ID.
+ AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
+ // environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY.
+ SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"`
+ // environment name for AWS session token, default AWS_SESSION_TOKEN.
+ SessionToken string `protobuf:"bytes,3,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
+ // environment name for AWS region, default AWS_REGION.
+ Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) Reset() {
+ *x = DataSourceExternalSecret_AWSEnvironmentConfig{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_instance_service_proto_msgTypes[23]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DataSourceExternalSecret_AWSEnvironmentConfig) ProtoMessage() {}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) 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 DataSourceExternalSecret_AWSEnvironmentConfig.ProtoReflect.Descriptor instead.
+func (*DataSourceExternalSecret_AWSEnvironmentConfig) Descriptor() ([]byte, []int) {
+ return file_v1_instance_service_proto_rawDescGZIP(), []int{19, 1}
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) GetAccessKeyId() string {
+ if x != nil {
+ return x.AccessKeyId
+ }
+ return ""
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) GetSecretAccessKey() string {
+ if x != nil {
+ return x.SecretAccessKey
+ }
+ return ""
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) GetSessionToken() string {
+ if x != nil {
+ return x.SessionToken
+ }
+ return ""
+}
+
+func (x *DataSourceExternalSecret_AWSEnvironmentConfig) GetRegion() string {
+ if x != nil {
+ return x.Region
+ }
+ return ""
+}
+
var File_v1_instance_service_proto protoreflect.FileDescriptor
var file_v1_instance_service_proto_rawDesc = []byte{
@@ -2047,7 +2145,7 @@ var file_v1_instance_service_proto_rawDesc = []byte{
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62,
0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61,
0x6e, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69,
- 0x6f, 0x6e, 0x73, 0x22, 0xc8, 0x06, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,
+ 0x6f, 0x6e, 0x73, 0x22, 0x90, 0x09, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
0x12, 0x51, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
@@ -2060,226 +2158,247 @@ var file_v1_instance_service_proto_rawDesc = []byte{
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e,
0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x54, 0x79,
- 0x70, 0x65, 0x12, 0x59, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04,
+ 0x70, 0x65, 0x12, 0x54, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74,
0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x70, 0x70, 0x52,
- 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0,
- 0x41, 0x04, 0x48, 0x00, 0x52, 0x07, 0x61, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1b, 0x0a,
- 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
- 0x04, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e,
- 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0a, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73,
- 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11,
- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d,
- 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
- 0x64, 0x4b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x87, 0x02, 0x0a, 0x11, 0x41, 0x70, 0x70,
- 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17,
- 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65,
- 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x0e, 0x32, 0x42, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72,
- 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x6f, 0x6c,
- 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
- 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x09, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x68, 0x22, 0x45, 0x0a, 0x0a, 0x53,
- 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x43,
- 0x52, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10,
- 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54,
- 0x10, 0x02, 0x22, 0x3b, 0x0a, 0x0a, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65,
- 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x41, 0x45, 0x43, 0x52, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45,
- 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f,
- 0x0a, 0x0b, 0x56, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x4b, 0x56, 0x5f, 0x56, 0x32, 0x10, 0x01, 0x22,
- 0x3e, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x41,
- 0x55, 0x54, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10,
- 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x42,
- 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe1,
- 0x05, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0e, 0x0a,
- 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a,
- 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a,
- 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61,
- 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
- 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x06, 0x73,
- 0x73, 0x6c, 0x5f, 0x63, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04,
- 0x52, 0x05, 0x73, 0x73, 0x6c, 0x43, 0x61, 0x12, 0x1e, 0x0a, 0x08, 0x73, 0x73, 0x6c, 0x5f, 0x63,
- 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x07,
- 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x12, 0x1c, 0x0a, 0x07, 0x73, 0x73, 0x6c, 0x5f, 0x6b,
- 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x06, 0x73,
- 0x73, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72,
- 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a,
- 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76,
- 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61,
- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75,
- 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
- 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65,
- 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68,
- 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68,
- 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74,
- 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12,
- 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x73,
- 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09,
- 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x73, 0x73, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
- 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x0f, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74,
- 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04,
- 0x52, 0x0d, 0x73, 0x73, 0x68, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12,
- 0x41, 0x0a, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x14, 0x20,
- 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x18, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,
- 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b,
- 0x65, 0x79, 0x12, 0x4e, 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73,
- 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x22, 0xdd, 0x01, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,
- 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b, 0x0a,
- 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69,
- 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x0e, 0x65, 0x6e,
- 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56,
- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
- 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55,
- 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
- 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09,
- 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x32, 0x91, 0x0e, 0x0a, 0x0f,
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
- 0x6c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
+ 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52,
+ 0x07, 0x61, 0x70, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x48, 0x00, 0x52, 0x05,
+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x72, 0x0a, 0x16, 0x61, 0x77, 0x73, 0x5f, 0x65, 0x6e, 0x76,
+ 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
+ 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78,
+ 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x57, 0x53,
+ 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x48, 0x00, 0x52, 0x14, 0x61, 0x77, 0x73, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
+ 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x67,
+ 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
+ 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70,
+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
+ 0x4b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x8c, 0x02, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x52,
+ 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a,
+ 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
+ 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
+ 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x08,
+ 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x42, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45,
+ 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x41, 0x70,
+ 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
+ 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x68, 0x22,
+ 0x45, 0x0a, 0x0a, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a,
+ 0x17, 0x53, 0x45, 0x43, 0x52, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53,
+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c,
+ 0x41, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e,
+ 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x1a, 0xa3, 0x01, 0x0a, 0x14, 0x41, 0x57, 0x53, 0x45, 0x6e,
+ 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
+ 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65,
+ 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x61, 0x63,
+ 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
+ 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12,
+ 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54,
+ 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x0a,
+ 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x41,
+ 0x45, 0x43, 0x52, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x41, 0x55, 0x4c,
+ 0x54, 0x5f, 0x4b, 0x56, 0x5f, 0x56, 0x32, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x57, 0x53,
+ 0x5f, 0x53, 0x45, 0x43, 0x52, 0x45, 0x54, 0x53, 0x5f, 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x52,
+ 0x10, 0x02, 0x22, 0x53, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19,
+ 0x0a, 0x15, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b,
+ 0x45, 0x4e, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x5f, 0x52, 0x4f, 0x4c, 0x45,
+ 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x57, 0x53, 0x5f, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f,
+ 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f,
+ 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe1, 0x05, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65,
+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61,
+ 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61,
+ 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
+ 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x06, 0x73, 0x73, 0x6c, 0x5f, 0x63, 0x61, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x05, 0x73, 0x73, 0x6c, 0x43, 0x61, 0x12,
+ 0x1e, 0x0a, 0x08, 0x73, 0x73, 0x6c, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x07, 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x12,
+ 0x1c, 0x0a, 0x07, 0x73, 0x73, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
+ 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x06, 0x73, 0x73, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a,
+ 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73,
+ 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03,
+ 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0c,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03,
+ 0x73, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21,
+ 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d,
+ 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08,
+ 0x73, 0x73, 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
+ 0x73, 0x73, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75,
+ 0x73, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73,
+ 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
+ 0x72, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x73,
+ 0x73, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x0f, 0x73, 0x73,
+ 0x68, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x13, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0d, 0x73, 0x73, 0x68, 0x50, 0x72, 0x69,
+ 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x65,
+ 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74,
+ 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04,
+ 0x52, 0x18, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x4e, 0x0a, 0x0f, 0x65, 0x78,
+ 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x15, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x78, 0x74, 0x65,
+ 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65,
+ 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0xdd, 0x01, 0x0a, 0x10, 0x49,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
+ 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69,
+ 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x0e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72,
+ 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
+ 0x0d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a,
+ 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x64,
+ 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63,
+ 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a,
+ 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x61,
+ 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17,
+ 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d,
+ 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c,
+ 0x59, 0x10, 0x02, 0x32, 0x91, 0x0e, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x25,
+ 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d,
+ 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x0d,
+ 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xa9, 0x01,
+ 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 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, 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,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a, 0xda, 0x41, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x22, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x22, 0x48, 0xda, 0x41, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x75, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a,
+ 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x32, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0e, 0x44, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
+ 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12,
+ 0x7b, 0x0a, 0x10, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x7b, 0x0a, 0x0c,
+ 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e,
+ 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x42, 0x61,
+ 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12,
+ 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61,
+ 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79,
+ 0x6e, 0x63, 0x12, 0x7e, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,
+ 0x72, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74,
+ 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61,
+ 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22,
+ 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f,
+ 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a,
+ 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a,
- 0xda, 0x41, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x19, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x0d, 0x2f, 0x76, 0x31,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0e, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x48, 0xda, 0x41, 0x14, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
- 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x32, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
- 0x22, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a,
- 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7b, 0x0a, 0x10, 0x55, 0x6e, 0x64, 0x65, 0x6c,
- 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24,
- 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65,
- 0x6c, 0x65, 0x74, 0x65, 0x12, 0x7b, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e,
- 0x63, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74,
- 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01,
- 0x2a, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x7e, 0x0a, 0x0d, 0x41, 0x64,
- 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74,
- 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a,
- 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64,
- 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x52,
- 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
- 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
- 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,
- 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,
- 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01,
- 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0xae,
- 0x01, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69,
- 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
- 0x5e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x58, 0x3a, 0x01, 0x2a, 0x5a, 0x29, 0x22, 0x27, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
- 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,
- 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,
- 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
- 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42,
- 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f,
- 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
+ 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53,
+ 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f,
+ 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x5e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x58, 0x3a,
+ 0x01, 0x2a, 0x5a, 0x29, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79,
+ 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x28, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77,
+ 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,
+ 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x33,
}
var (
@@ -2295,7 +2414,7 @@ func file_v1_instance_service_proto_rawDescGZIP() []byte {
}
var file_v1_instance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
-var file_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
+var file_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
var file_v1_instance_service_proto_goTypes = []interface{}{
(DataSourceType)(0), // 0: bytebase.v1.DataSourceType
(DataSourceExternalSecret_SecretType)(0), // 1: bytebase.v1.DataSourceExternalSecret.SecretType
@@ -2324,67 +2443,69 @@ var file_v1_instance_service_proto_goTypes = []interface{}{
(*DataSource)(nil), // 24: bytebase.v1.DataSource
(*InstanceResource)(nil), // 25: bytebase.v1.InstanceResource
(*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 26: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption
- (*fieldmaskpb.FieldMask)(nil), // 27: google.protobuf.FieldMask
- (*durationpb.Duration)(nil), // 28: google.protobuf.Duration
- (State)(0), // 29: bytebase.v1.State
- (Engine)(0), // 30: bytebase.v1.Engine
- (*emptypb.Empty)(nil), // 31: google.protobuf.Empty
+ (*DataSourceExternalSecret_AWSEnvironmentConfig)(nil), // 27: bytebase.v1.DataSourceExternalSecret.AWSEnvironmentConfig
+ (*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
}
var file_v1_instance_service_proto_depIdxs = []int32{
22, // 0: bytebase.v1.ListInstancesResponse.instances:type_name -> bytebase.v1.Instance
22, // 1: bytebase.v1.SearchInstancesResponse.instances:type_name -> bytebase.v1.Instance
22, // 2: bytebase.v1.CreateInstanceRequest.instance:type_name -> bytebase.v1.Instance
22, // 3: bytebase.v1.UpdateInstanceRequest.instance:type_name -> bytebase.v1.Instance
- 27, // 4: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 28, // 4: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask
13, // 5: bytebase.v1.BatchSyncInstanceRequest.requests:type_name -> bytebase.v1.SyncInstanceRequest
24, // 6: bytebase.v1.AddDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
24, // 7: bytebase.v1.RemoveDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
24, // 8: bytebase.v1.UpdateDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
- 27, // 9: bytebase.v1.UpdateDataSourceRequest.update_mask:type_name -> google.protobuf.FieldMask
- 28, // 10: bytebase.v1.InstanceOptions.sync_interval:type_name -> google.protobuf.Duration
- 29, // 11: bytebase.v1.Instance.state:type_name -> bytebase.v1.State
- 30, // 12: bytebase.v1.Instance.engine:type_name -> bytebase.v1.Engine
+ 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
24, // 13: bytebase.v1.Instance.data_sources:type_name -> bytebase.v1.DataSource
21, // 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
26, // 17: bytebase.v1.DataSourceExternalSecret.app_role:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption
- 0, // 18: bytebase.v1.DataSource.type:type_name -> bytebase.v1.DataSourceType
- 23, // 19: bytebase.v1.DataSource.external_secret:type_name -> bytebase.v1.DataSourceExternalSecret
- 30, // 20: bytebase.v1.InstanceResource.engine:type_name -> bytebase.v1.Engine
- 24, // 21: bytebase.v1.InstanceResource.data_sources:type_name -> bytebase.v1.DataSource
- 3, // 22: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType
- 4, // 23: bytebase.v1.InstanceService.GetInstance:input_type -> bytebase.v1.GetInstanceRequest
- 5, // 24: bytebase.v1.InstanceService.ListInstances:input_type -> bytebase.v1.ListInstancesRequest
- 7, // 25: bytebase.v1.InstanceService.SearchInstances:input_type -> bytebase.v1.SearchInstancesRequest
- 9, // 26: bytebase.v1.InstanceService.CreateInstance:input_type -> bytebase.v1.CreateInstanceRequest
- 10, // 27: bytebase.v1.InstanceService.UpdateInstance:input_type -> bytebase.v1.UpdateInstanceRequest
- 11, // 28: bytebase.v1.InstanceService.DeleteInstance:input_type -> bytebase.v1.DeleteInstanceRequest
- 12, // 29: bytebase.v1.InstanceService.UndeleteInstance:input_type -> bytebase.v1.UndeleteInstanceRequest
- 13, // 30: bytebase.v1.InstanceService.SyncInstance:input_type -> bytebase.v1.SyncInstanceRequest
- 15, // 31: bytebase.v1.InstanceService.BatchSyncInstance:input_type -> bytebase.v1.BatchSyncInstanceRequest
- 17, // 32: bytebase.v1.InstanceService.AddDataSource:input_type -> bytebase.v1.AddDataSourceRequest
- 18, // 33: bytebase.v1.InstanceService.RemoveDataSource:input_type -> bytebase.v1.RemoveDataSourceRequest
- 19, // 34: bytebase.v1.InstanceService.UpdateDataSource:input_type -> bytebase.v1.UpdateDataSourceRequest
- 20, // 35: bytebase.v1.InstanceService.SyncSlowQueries:input_type -> bytebase.v1.SyncSlowQueriesRequest
- 22, // 36: bytebase.v1.InstanceService.GetInstance:output_type -> bytebase.v1.Instance
- 6, // 37: bytebase.v1.InstanceService.ListInstances:output_type -> bytebase.v1.ListInstancesResponse
- 8, // 38: bytebase.v1.InstanceService.SearchInstances:output_type -> bytebase.v1.SearchInstancesResponse
- 22, // 39: bytebase.v1.InstanceService.CreateInstance:output_type -> bytebase.v1.Instance
- 22, // 40: bytebase.v1.InstanceService.UpdateInstance:output_type -> bytebase.v1.Instance
- 31, // 41: bytebase.v1.InstanceService.DeleteInstance:output_type -> google.protobuf.Empty
- 22, // 42: bytebase.v1.InstanceService.UndeleteInstance:output_type -> bytebase.v1.Instance
- 14, // 43: bytebase.v1.InstanceService.SyncInstance:output_type -> bytebase.v1.SyncInstanceResponse
- 16, // 44: bytebase.v1.InstanceService.BatchSyncInstance:output_type -> bytebase.v1.BatchSyncInstanceResponse
- 22, // 45: bytebase.v1.InstanceService.AddDataSource:output_type -> bytebase.v1.Instance
- 22, // 46: bytebase.v1.InstanceService.RemoveDataSource:output_type -> bytebase.v1.Instance
- 22, // 47: bytebase.v1.InstanceService.UpdateDataSource:output_type -> bytebase.v1.Instance
- 31, // 48: bytebase.v1.InstanceService.SyncSlowQueries:output_type -> google.protobuf.Empty
- 36, // [36:49] is the sub-list for method output_type
- 23, // [23:36] is the sub-list for method input_type
- 23, // [23:23] is the sub-list for extension type_name
- 23, // [23:23] is the sub-list for extension extendee
- 0, // [0:23] is the sub-list for field type_name
+ 27, // 18: bytebase.v1.DataSourceExternalSecret.aws_environment_config:type_name -> bytebase.v1.DataSourceExternalSecret.AWSEnvironmentConfig
+ 0, // 19: bytebase.v1.DataSource.type:type_name -> bytebase.v1.DataSourceType
+ 23, // 20: bytebase.v1.DataSource.external_secret:type_name -> bytebase.v1.DataSourceExternalSecret
+ 31, // 21: bytebase.v1.InstanceResource.engine:type_name -> bytebase.v1.Engine
+ 24, // 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
+ 4, // 24: bytebase.v1.InstanceService.GetInstance:input_type -> bytebase.v1.GetInstanceRequest
+ 5, // 25: bytebase.v1.InstanceService.ListInstances:input_type -> bytebase.v1.ListInstancesRequest
+ 7, // 26: bytebase.v1.InstanceService.SearchInstances:input_type -> bytebase.v1.SearchInstancesRequest
+ 9, // 27: bytebase.v1.InstanceService.CreateInstance:input_type -> bytebase.v1.CreateInstanceRequest
+ 10, // 28: bytebase.v1.InstanceService.UpdateInstance:input_type -> bytebase.v1.UpdateInstanceRequest
+ 11, // 29: bytebase.v1.InstanceService.DeleteInstance:input_type -> bytebase.v1.DeleteInstanceRequest
+ 12, // 30: bytebase.v1.InstanceService.UndeleteInstance:input_type -> bytebase.v1.UndeleteInstanceRequest
+ 13, // 31: bytebase.v1.InstanceService.SyncInstance:input_type -> bytebase.v1.SyncInstanceRequest
+ 15, // 32: bytebase.v1.InstanceService.BatchSyncInstance:input_type -> bytebase.v1.BatchSyncInstanceRequest
+ 17, // 33: bytebase.v1.InstanceService.AddDataSource:input_type -> bytebase.v1.AddDataSourceRequest
+ 18, // 34: bytebase.v1.InstanceService.RemoveDataSource:input_type -> bytebase.v1.RemoveDataSourceRequest
+ 19, // 35: bytebase.v1.InstanceService.UpdateDataSource:input_type -> bytebase.v1.UpdateDataSourceRequest
+ 20, // 36: bytebase.v1.InstanceService.SyncSlowQueries:input_type -> bytebase.v1.SyncSlowQueriesRequest
+ 22, // 37: bytebase.v1.InstanceService.GetInstance:output_type -> bytebase.v1.Instance
+ 6, // 38: bytebase.v1.InstanceService.ListInstances:output_type -> bytebase.v1.ListInstancesResponse
+ 8, // 39: bytebase.v1.InstanceService.SearchInstances:output_type -> bytebase.v1.SearchInstancesResponse
+ 22, // 40: bytebase.v1.InstanceService.CreateInstance:output_type -> bytebase.v1.Instance
+ 22, // 41: bytebase.v1.InstanceService.UpdateInstance:output_type -> bytebase.v1.Instance
+ 32, // 42: bytebase.v1.InstanceService.DeleteInstance:output_type -> google.protobuf.Empty
+ 22, // 43: bytebase.v1.InstanceService.UndeleteInstance:output_type -> bytebase.v1.Instance
+ 14, // 44: bytebase.v1.InstanceService.SyncInstance:output_type -> bytebase.v1.SyncInstanceResponse
+ 16, // 45: bytebase.v1.InstanceService.BatchSyncInstance:output_type -> bytebase.v1.BatchSyncInstanceResponse
+ 22, // 46: bytebase.v1.InstanceService.AddDataSource:output_type -> bytebase.v1.Instance
+ 22, // 47: bytebase.v1.InstanceService.RemoveDataSource:output_type -> bytebase.v1.Instance
+ 22, // 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
}
func init() { file_v1_instance_service_proto_init() }
@@ -2670,10 +2791,23 @@ func file_v1_instance_service_proto_init() {
return nil
}
}
+ file_v1_instance_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DataSourceExternalSecret_AWSEnvironmentConfig); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
}
file_v1_instance_service_proto_msgTypes[19].OneofWrappers = []interface{}{
(*DataSourceExternalSecret_AppRole)(nil),
(*DataSourceExternalSecret_Token)(nil),
+ (*DataSourceExternalSecret_AwsEnvironmentConfig)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -2681,7 +2815,7 @@ func file_v1_instance_service_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_instance_service_proto_rawDesc,
NumEnums: 4,
- NumMessages: 23,
+ NumMessages: 24,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/store/data_source.proto b/proto/store/data_source.proto
index 0dcbb0edf1..410ada5f0d 100644
--- a/proto/store/data_source.proto
+++ b/proto/store/data_source.proto
@@ -9,6 +9,8 @@ message DataSourceExternalSecret {
SAECRET_TYPE_UNSPECIFIED = 0;
// ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2
VAULT_KV_V2 = 1;
+ // ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
+ AWS_SECRETS_MANAGER = 2;
}
SecretType secret_type = 1;
string url = 2;
@@ -19,6 +21,8 @@ message DataSourceExternalSecret {
TOKEN = 1;
// ref: https://developer.hashicorp.com/vault/docs/auth/approle
APP_ROLE = 2;
+ // ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials
+ AWS_ENVIRONMENT = 3;
}
AuthType auth_type = 3;
@@ -39,9 +43,22 @@ message DataSourceExternalSecret {
string mount_path = 4;
}
+ // store the environment name for AWS credentials.
+ message AWSEnvironmentConfig {
+ // environment name for AWS access key id, default AWS_ACCESS_KEY_ID.
+ string access_key_id = 1;
+ // environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY.
+ string secret_access_key = 2;
+ // environment name for AWS session token, default AWS_SESSION_TOKEN.
+ string session_token = 3;
+ // environment name for AWS region, default AWS_REGION.
+ string region = 4;
+ }
+
oneof auth_option {
AppRoleAuthOption app_role = 4;
string token = 5;
+ AWSEnvironmentConfig aws_environment_config = 9;
}
// engine name is the name for secret engine.
diff --git a/proto/v1/instance_service.proto b/proto/v1/instance_service.proto
index 17d4e817a3..b6cbea1b77 100644
--- a/proto/v1/instance_service.proto
+++ b/proto/v1/instance_service.proto
@@ -310,6 +310,8 @@ message DataSourceExternalSecret {
SAECRET_TYPE_UNSPECIFIED = 0;
// ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2
VAULT_KV_V2 = 1;
+ // ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
+ AWS_SECRETS_MANAGER = 2;
}
SecretType secret_type = 1;
string url = 2;
@@ -320,13 +322,15 @@ message DataSourceExternalSecret {
TOKEN = 1;
// ref: https://developer.hashicorp.com/vault/docs/auth/approle
APP_ROLE = 2;
+ // ref: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials
+ AWS_ENVIRONMENT = 3;
}
AuthType auth_type = 3;
message AppRoleAuthOption {
string role_id = 1;
// the secret id for the role without ttl.
- string secret_id = 2;
+ string secret_id = 2 [(google.api.field_behavior) = INPUT_ONLY];
enum SecretType {
SECRET_TYPE_UNSPECIFIED = 0;
@@ -340,9 +344,22 @@ message DataSourceExternalSecret {
string mount_path = 4;
}
+ // store the environment name for AWS credentials.
+ message AWSEnvironmentConfig {
+ // environment name for AWS access key id, default AWS_ACCESS_KEY_ID.
+ string access_key_id = 1;
+ // environment name for AWS secret access key, default AWS_SECRET_ACCESS_KEY.
+ string secret_access_key = 2;
+ // environment name for AWS session token, default AWS_SESSION_TOKEN.
+ string session_token = 3;
+ // environment name for AWS region, default AWS_REGION.
+ string region = 4;
+ }
+
oneof auth_option {
- AppRoleAuthOption app_role = 4 [(google.api.field_behavior) = INPUT_ONLY];
+ AppRoleAuthOption app_role = 4;
string token = 5 [(google.api.field_behavior) = INPUT_ONLY];
+ AWSEnvironmentConfig aws_environment_config = 9;
}
// engine name is the name for secret engine.