Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: handle data source query policy (#13004)
boojack827132ef9ade
diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex bbf34872c8..d99b3f685f 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -632,7 +632,20 @@ func (s *OrgPolicyService) convertPolicyPayloadToString(ctx context.Context, pol}payloadBytes, err := protojson.Marshal(payload)if err != nil {- return "", errors.Wrap(err, "failed to marshal masking exception policy")+ return "", errors.Wrap(err, "failed to marshal restrict issue creation for SQL review policy")+ }+ return string(payloadBytes), nil+ case v1pb.PolicyType_DATA_SOURCE_QUERY:+ if err := s.licenseService.IsFeatureEnabled(api.FeatureAccessControl); err != nil {+ return "", status.Errorf(codes.PermissionDenied, err.Error())+ }+ payload, err := convertToDataSourceQueryPayload(policy.GetDataSourceQueryPolicy())+ if err != nil {+ return "", status.Errorf(codes.InvalidArgument, err.Error())+ }+ payloadBytes, err := protojson.Marshal(payload)+ if err != nil {+ return "", errors.Wrap(err, "failed to marshal data source query policy")}return string(payloadBytes), nil}@@ -734,6 +747,13 @@ func (s *OrgPolicyService) convertToPolicy(ctx context.Context, parentPath strinreturn nil, err}policy.Policy = payload+ case api.PolicyTypeDataSourceQuery:+ pType = v1pb.PolicyType_DATA_SOURCE_QUERY+ payload, err := convertToV1PBDataSourceQueryPolicy(policyMessage.Payload)+ if err != nil {+ return nil, err+ }+ policy.Policy = payload}policy.Type = pType@@ -1083,6 +1103,24 @@ func convertToRestrictIssueCreationForSQLReviewPayload(policy *v1pb.RestrictIssu}, nil}+func convertToV1PBDataSourceQueryPolicy(payloadStr string) (*v1pb.Policy_DataSourceQueryPolicy, error) {+ payload := &storepb.DataSourceQueryPolicy{}+ if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(payloadStr), payload); err != nil {+ return nil, err+ }+ return &v1pb.Policy_DataSourceQueryPolicy{+ DataSourceQueryPolicy: &v1pb.DataSourceQueryPolicy{+ AdminDataSourceRestriction: v1pb.DataSourceQueryPolicy_Restriction(payload.AdminDataSourceRestriction),+ },+ }, nil+}++func convertToDataSourceQueryPayload(policy *v1pb.DataSourceQueryPolicy) (*storepb.DataSourceQueryPolicy, error) {+ return &storepb.DataSourceQueryPolicy{+ AdminDataSourceRestriction: storepb.DataSourceQueryPolicy_Restriction(policy.AdminDataSourceRestriction),+ }, nil+}+func convertPolicyType(pType string) (api.PolicyType, error) {var policyType api.PolicyTypeswitch strings.ToUpper(pType) {@@ -1102,6 +1140,8 @@ func convertPolicyType(pType string) (api.PolicyType, error) {return api.PolicyTypeDisableCopyData, nilcase v1pb.PolicyType_RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW.String():return api.PolicyTypeRestrictIssueCreationForSQLReview, nil+ case v1pb.PolicyType_DATA_SOURCE_QUERY.String():+ return api.PolicyTypeDataSourceQuery, nil}return policyType, errors.Errorf("invalid policy type %v", pType)}diff --git a/backend/legacyapi/policy.go b/backend/legacyapi/policy.goindex c7ac873e84..449a1c84a3 100644--- a/backend/legacyapi/policy.go+++ b/backend/legacyapi/policy.go@@ -42,6 +42,8 @@ const (PolicyTypeIAM PolicyType = "bb.policy.iam"// PolicyTypeTag is the policy type for resource tags.PolicyTypeTag PolicyType = "bb.policy.tag"+ // PolicyTypeDataSourceQuery is the policy type for data source query.+ PolicyTypeDataSourceQuery PolicyType = "bb.policy.data-source-query"// PipelineApprovalValueManualNever means the pipeline will automatically be approved without user intervention.PipelineApprovalValueManualNever PipelineApprovalValue = "MANUAL_APPROVAL_NEVER"diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.tsindex a05f6c3ce6..1be7fbca65 100644--- a/frontend/src/types/proto/store/policy.ts+++ b/frontend/src/types/proto/store/policy.ts@@ -314,10 +314,10 @@ export interface RestrictIssueCreationForSQLReviewPolicy {/** DataSourceQueryPolicy is the policy configuration for data source query. */export interface DataSourceQueryPolicy {- adminDataSourceRestriction: DataSourceQueryPolicy_Restricton;+ adminDataSourceRestriction: DataSourceQueryPolicy_Restriction;}-export enum DataSourceQueryPolicy_Restricton {+export enum DataSourceQueryPolicy_Restriction {RESTRICTION_UNSPECIFIED = "RESTRICTION_UNSPECIFIED",/** FALLBACK - Allow to query admin data sources when there is no read-only data source. */FALLBACK = "FALLBACK",@@ -326,47 +326,47 @@ export enum DataSourceQueryPolicy_Restricton {UNRECOGNIZED = "UNRECOGNIZED",}-export function dataSourceQueryPolicy_RestrictonFromJSON(object: any): DataSourceQueryPolicy_Restricton {+export function dataSourceQueryPolicy_RestrictionFromJSON(object: any): DataSourceQueryPolicy_Restriction {switch (object) {case 0:case "RESTRICTION_UNSPECIFIED":- return DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED;+ return DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED;case 1:case "FALLBACK":- return DataSourceQueryPolicy_Restricton.FALLBACK;+ return DataSourceQueryPolicy_Restriction.FALLBACK;case 2:case "DISALLOW":- return DataSourceQueryPolicy_Restricton.DISALLOW;+ return DataSourceQueryPolicy_Restriction.DISALLOW;case -1:case "UNRECOGNIZED":default:- return DataSourceQueryPolicy_Restricton.UNRECOGNIZED;+ return DataSourceQueryPolicy_Restriction.UNRECOGNIZED;}}-export function dataSourceQueryPolicy_RestrictonToJSON(object: DataSourceQueryPolicy_Restricton): string {+export function dataSourceQueryPolicy_RestrictionToJSON(object: DataSourceQueryPolicy_Restriction): string {switch (object) {- case DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED:+ case DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED:return "RESTRICTION_UNSPECIFIED";- case DataSourceQueryPolicy_Restricton.FALLBACK:+ case DataSourceQueryPolicy_Restriction.FALLBACK:return "FALLBACK";- case DataSourceQueryPolicy_Restricton.DISALLOW:+ case DataSourceQueryPolicy_Restriction.DISALLOW:return "DISALLOW";- case DataSourceQueryPolicy_Restricton.UNRECOGNIZED:+ case DataSourceQueryPolicy_Restriction.UNRECOGNIZED:default:return "UNRECOGNIZED";}}-export function dataSourceQueryPolicy_RestrictonToNumber(object: DataSourceQueryPolicy_Restricton): number {+export function dataSourceQueryPolicy_RestrictionToNumber(object: DataSourceQueryPolicy_Restriction): number {switch (object) {- case DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED:+ case DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED:return 0;- case DataSourceQueryPolicy_Restricton.FALLBACK:+ case DataSourceQueryPolicy_Restriction.FALLBACK:return 1;- case DataSourceQueryPolicy_Restricton.DISALLOW:+ case DataSourceQueryPolicy_Restriction.DISALLOW:return 2;- case DataSourceQueryPolicy_Restricton.UNRECOGNIZED:+ case DataSourceQueryPolicy_Restriction.UNRECOGNIZED:default:return -1;}@@ -1680,13 +1680,13 @@ export const RestrictIssueCreationForSQLReviewPolicy = {};function createBaseDataSourceQueryPolicy(): DataSourceQueryPolicy {- return { adminDataSourceRestriction: DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED };+ return { adminDataSourceRestriction: DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED };}export const DataSourceQueryPolicy = {encode(message: DataSourceQueryPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.adminDataSourceRestriction !== DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED) {- writer.uint32(8).int32(dataSourceQueryPolicy_RestrictonToNumber(message.adminDataSourceRestriction));+ if (message.adminDataSourceRestriction !== DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED) {+ writer.uint32(8).int32(dataSourceQueryPolicy_RestrictionToNumber(message.adminDataSourceRestriction));}return writer;},@@ -1703,7 +1703,7 @@ export const DataSourceQueryPolicy = {break;}- message.adminDataSourceRestriction = dataSourceQueryPolicy_RestrictonFromJSON(reader.int32());+ message.adminDataSourceRestriction = dataSourceQueryPolicy_RestrictionFromJSON(reader.int32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -1717,15 +1717,15 @@ export const DataSourceQueryPolicy = {fromJSON(object: any): DataSourceQueryPolicy {return {adminDataSourceRestriction: isSet(object.adminDataSourceRestriction)- ? dataSourceQueryPolicy_RestrictonFromJSON(object.adminDataSourceRestriction)- : DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED,+ ? dataSourceQueryPolicy_RestrictionFromJSON(object.adminDataSourceRestriction)+ : DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED,};},toJSON(message: DataSourceQueryPolicy): unknown {const obj: any = {};- if (message.adminDataSourceRestriction !== DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED) {- obj.adminDataSourceRestriction = dataSourceQueryPolicy_RestrictonToJSON(message.adminDataSourceRestriction);+ if (message.adminDataSourceRestriction !== DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED) {+ obj.adminDataSourceRestriction = dataSourceQueryPolicy_RestrictionToJSON(message.adminDataSourceRestriction);}return obj;},@@ -1736,7 +1736,7 @@ export const DataSourceQueryPolicy = {fromPartial(object: DeepPartial<DataSourceQueryPolicy>): DataSourceQueryPolicy {const message = createBaseDataSourceQueryPolicy();message.adminDataSourceRestriction = object.adminDataSourceRestriction ??- DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED;+ DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED;return message;},};diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.tsindex 5a65b9a62b..a2cfe523e4 100644--- a/frontend/src/types/proto/v1/org_policy_service.ts+++ b/frontend/src/types/proto/v1/org_policy_service.ts@@ -27,6 +27,7 @@ export enum PolicyType {MASKING_EXCEPTION = "MASKING_EXCEPTION",RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW = "RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW",TAG = "TAG",+ DATA_SOURCE_QUERY = "DATA_SOURCE_QUERY",UNRECOGNIZED = "UNRECOGNIZED",}@@ -59,6 +60,9 @@ export function policyTypeFromJSON(object: any): PolicyType {case 13:case "TAG":return PolicyType.TAG;+ case 14:+ case "DATA_SOURCE_QUERY":+ return PolicyType.DATA_SOURCE_QUERY;case -1:case "UNRECOGNIZED":default:@@ -86,6 +90,8 @@ export function policyTypeToJSON(object: PolicyType): string {return "RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW";case PolicyType.TAG:return "TAG";+ case PolicyType.DATA_SOURCE_QUERY:+ return "DATA_SOURCE_QUERY";case PolicyType.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -112,6 +118,8 @@ export function policyTypeToNumber(object: PolicyType): number {return 12;case PolicyType.TAG:return 13;+ case PolicyType.DATA_SOURCE_QUERY:+ return 14;case PolicyType.UNRECOGNIZED:default:return -1;@@ -532,10 +540,10 @@ export interface TagPolicy_TagsEntry {}export interface DataSourceQueryPolicy {- adminDataSourceRestriction: DataSourceQueryPolicy_Restricton;+ adminDataSourceRestriction: DataSourceQueryPolicy_Restriction;}-export enum DataSourceQueryPolicy_Restricton {+export enum DataSourceQueryPolicy_Restriction {RESTRICTION_UNSPECIFIED = "RESTRICTION_UNSPECIFIED",/** FALLBACK - Allow to query admin data sources when there is no read-only data source. */FALLBACK = "FALLBACK",@@ -544,47 +552,47 @@ export enum DataSourceQueryPolicy_Restricton {UNRECOGNIZED = "UNRECOGNIZED",}-export function dataSourceQueryPolicy_RestrictonFromJSON(object: any): DataSourceQueryPolicy_Restricton {+export function dataSourceQueryPolicy_RestrictionFromJSON(object: any): DataSourceQueryPolicy_Restriction {switch (object) {case 0:case "RESTRICTION_UNSPECIFIED":- return DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED;+ return DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED;case 1:case "FALLBACK":- return DataSourceQueryPolicy_Restricton.FALLBACK;+ return DataSourceQueryPolicy_Restriction.FALLBACK;case 2:case "DISALLOW":- return DataSourceQueryPolicy_Restricton.DISALLOW;+ return DataSourceQueryPolicy_Restriction.DISALLOW;case -1:case "UNRECOGNIZED":default:- return DataSourceQueryPolicy_Restricton.UNRECOGNIZED;+ return DataSourceQueryPolicy_Restriction.UNRECOGNIZED;}}-export function dataSourceQueryPolicy_RestrictonToJSON(object: DataSourceQueryPolicy_Restricton): string {+export function dataSourceQueryPolicy_RestrictionToJSON(object: DataSourceQueryPolicy_Restriction): string {switch (object) {- case DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED:+ case DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED:return "RESTRICTION_UNSPECIFIED";- case DataSourceQueryPolicy_Restricton.FALLBACK:+ case DataSourceQueryPolicy_Restriction.FALLBACK:return "FALLBACK";- case DataSourceQueryPolicy_Restricton.DISALLOW:+ case DataSourceQueryPolicy_Restriction.DISALLOW:return "DISALLOW";- case DataSourceQueryPolicy_Restricton.UNRECOGNIZED:+ case DataSourceQueryPolicy_Restriction.UNRECOGNIZED:default:return "UNRECOGNIZED";}}-export function dataSourceQueryPolicy_RestrictonToNumber(object: DataSourceQueryPolicy_Restricton): number {+export function dataSourceQueryPolicy_RestrictionToNumber(object: DataSourceQueryPolicy_Restriction): number {switch (object) {- case DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED:+ case DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED:return 0;- case DataSourceQueryPolicy_Restricton.FALLBACK:+ case DataSourceQueryPolicy_Restriction.FALLBACK:return 1;- case DataSourceQueryPolicy_Restricton.DISALLOW:+ case DataSourceQueryPolicy_Restriction.DISALLOW:return 2;- case DataSourceQueryPolicy_Restricton.UNRECOGNIZED:+ case DataSourceQueryPolicy_Restriction.UNRECOGNIZED:default:return -1;}@@ -2519,13 +2527,13 @@ export const TagPolicy_TagsEntry = {};function createBaseDataSourceQueryPolicy(): DataSourceQueryPolicy {- return { adminDataSourceRestriction: DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED };+ return { adminDataSourceRestriction: DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED };}export const DataSourceQueryPolicy = {encode(message: DataSourceQueryPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.adminDataSourceRestriction !== DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED) {- writer.uint32(8).int32(dataSourceQueryPolicy_RestrictonToNumber(message.adminDataSourceRestriction));+ if (message.adminDataSourceRestriction !== DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED) {+ writer.uint32(8).int32(dataSourceQueryPolicy_RestrictionToNumber(message.adminDataSourceRestriction));}return writer;},@@ -2542,7 +2550,7 @@ export const DataSourceQueryPolicy = {break;}- message.adminDataSourceRestriction = dataSourceQueryPolicy_RestrictonFromJSON(reader.int32());+ message.adminDataSourceRestriction = dataSourceQueryPolicy_RestrictionFromJSON(reader.int32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2556,15 +2564,15 @@ export const DataSourceQueryPolicy = {fromJSON(object: any): DataSourceQueryPolicy {return {adminDataSourceRestriction: isSet(object.adminDataSourceRestriction)- ? dataSourceQueryPolicy_RestrictonFromJSON(object.adminDataSourceRestriction)- : DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED,+ ? dataSourceQueryPolicy_RestrictionFromJSON(object.adminDataSourceRestriction)+ : DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED,};},toJSON(message: DataSourceQueryPolicy): unknown {const obj: any = {};- if (message.adminDataSourceRestriction !== DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED) {- obj.adminDataSourceRestriction = dataSourceQueryPolicy_RestrictonToJSON(message.adminDataSourceRestriction);+ if (message.adminDataSourceRestriction !== DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED) {+ obj.adminDataSourceRestriction = dataSourceQueryPolicy_RestrictionToJSON(message.adminDataSourceRestriction);}return obj;},@@ -2575,7 +2583,7 @@ export const DataSourceQueryPolicy = {fromPartial(object: DeepPartial<DataSourceQueryPolicy>): DataSourceQueryPolicy {const message = createBaseDataSourceQueryPolicy();message.adminDataSourceRestriction = object.adminDataSourceRestriction ??- DataSourceQueryPolicy_Restricton.RESTRICTION_UNSPECIFIED;+ DataSourceQueryPolicy_Restriction.RESTRICTION_UNSPECIFIED;return message;},};diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 2309762c5b..e77840b465 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -623,6 +623,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enum- name: pageSize@@ -687,6 +688,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enumrequestBody:@@ -1843,6 +1845,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enum- name: pageSize@@ -1913,6 +1916,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enumrequestBody:@@ -2612,6 +2616,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enum- name: pageSize@@ -2676,6 +2681,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enumrequestBody:@@ -3380,6 +3386,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enum- name: pageSize@@ -3448,6 +3455,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enumrequestBody:@@ -5554,6 +5562,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enum- name: pageSize@@ -5618,6 +5627,7 @@ paths:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enumrequestBody:@@ -11856,6 +11866,7 @@ components:- MASKING_EXCEPTION- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG+ - DATA_SOURCE_QUERYtype: stringformat: enumrolloutPolicy:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex ad07e394fb..95b6692ed6 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -194,7 +194,7 @@- [TagPolicy](#bytebase-store-TagPolicy)- [TagPolicy.TagsEntry](#bytebase-store-TagPolicy-TagsEntry)- - [DataSourceQueryPolicy.Restricton](#bytebase-store-DataSourceQueryPolicy-Restricton)+ - [DataSourceQueryPolicy.Restriction](#bytebase-store-DataSourceQueryPolicy-Restriction)- [EnvironmentTierPolicy.EnvironmentTier](#bytebase-store-EnvironmentTierPolicy-EnvironmentTier)- [MaskingExceptionPolicy.MaskingException.Action](#bytebase-store-MaskingExceptionPolicy-MaskingException-Action)- [SQLReviewRuleLevel](#bytebase-store-SQLReviewRuleLevel)@@ -2857,7 +2857,7 @@ DataSourceQueryPolicy is the policy configuration for data source query.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| admin_data_source_restriction | [DataSourceQueryPolicy.Restricton](#bytebase-store-DataSourceQueryPolicy-Restricton) | | |+| admin_data_source_restriction | [DataSourceQueryPolicy.Restriction](#bytebase-store-DataSourceQueryPolicy-Restriction) | | |@@ -3111,9 +3111,9 @@ SlowQueryPolicy is the policy configuration for slow query.-<a name="bytebase-store-DataSourceQueryPolicy-Restricton"></a>+<a name="bytebase-store-DataSourceQueryPolicy-Restriction"></a>-### DataSourceQueryPolicy.Restricton+### DataSourceQueryPolicy.Restriction| Name | Number | Description |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 81bba03be6..4584e58e73 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -950,7 +950,7 @@<li>- <a href="#bytebase.store.DataSourceQueryPolicy.Restricton"><span class="badge">E</span>DataSourceQueryPolicy.Restricton</a>+ <a href="#bytebase.store.DataSourceQueryPolicy.Restriction"><span class="badge">E</span>DataSourceQueryPolicy.Restriction</a></li><li>@@ -7529,7 +7529,7 @@ If the condition evaluates to false, then this binding does not apply to the cur<tr><td>admin_data_source_restriction</td>- <td><a href="#bytebase.store.DataSourceQueryPolicy.Restricton">DataSourceQueryPolicy.Restricton</a></td>+ <td><a href="#bytebase.store.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</a></td><td></td><td><p> </p></td></tr>@@ -8034,7 +8034,7 @@ for example, the environment resource can have the sql review config tag, like &- <h3 id="bytebase.store.DataSourceQueryPolicy.Restricton">DataSourceQueryPolicy.Restricton</h3>+ <h3 id="bytebase.store.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</h3><p></p><table class="enum-table"><thead>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex bfc04b8c32..054ee13939 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -376,7 +376,7 @@- [TagPolicy.TagsEntry](#bytebase-v1-TagPolicy-TagsEntry)- [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest)- - [DataSourceQueryPolicy.Restricton](#bytebase-v1-DataSourceQueryPolicy-Restricton)+ - [DataSourceQueryPolicy.Restriction](#bytebase-v1-DataSourceQueryPolicy-Restriction)- [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action)- [PolicyResourceType](#bytebase-v1-PolicyResourceType)- [PolicyType](#bytebase-v1-PolicyType)@@ -5970,7 +5970,7 @@ ANY means approving any node will proceed.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| admin_data_source_restriction | [DataSourceQueryPolicy.Restricton](#bytebase-v1-DataSourceQueryPolicy-Restricton) | | |+| admin_data_source_restriction | [DataSourceQueryPolicy.Restriction](#bytebase-v1-DataSourceQueryPolicy-Restriction) | | |@@ -6310,9 +6310,9 @@ The policy's `name` field is used to identify the instance to update. Format-<a name="bytebase-v1-DataSourceQueryPolicy-Restricton"></a>+<a name="bytebase-v1-DataSourceQueryPolicy-Restriction"></a>-### DataSourceQueryPolicy.Restricton+### DataSourceQueryPolicy.Restriction| Name | Number | Description |@@ -6368,6 +6368,7 @@ The policy's `name` field is used to identify the instance to update. Format| MASKING_EXCEPTION | 10 | || RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW | 12 | || TAG | 13 | |+| DATA_SOURCE_QUERY | 14 | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex c82275585b..2f7e7fe59e 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1607,7 +1607,7 @@<li>- <a href="#bytebase.v1.DataSourceQueryPolicy.Restricton"><span class="badge">E</span>DataSourceQueryPolicy.Restricton</a>+ <a href="#bytebase.v1.DataSourceQueryPolicy.Restriction"><span class="badge">E</span>DataSourceQueryPolicy.Restriction</a></li><li>@@ -17011,7 +17011,7 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><tr><td>admin_data_source_restriction</td>- <td><a href="#bytebase.v1.DataSourceQueryPolicy.Restricton">DataSourceQueryPolicy.Restricton</a></td>+ <td><a href="#bytebase.v1.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</a></td><td></td><td><p> </p></td></tr>@@ -17794,7 +17794,7 @@ In this situation, `update_mask` is ignored. </p></td>- <h3 id="bytebase.v1.DataSourceQueryPolicy.Restricton">DataSourceQueryPolicy.Restricton</h3>+ <h3 id="bytebase.v1.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</h3><p></p><table class="enum-table"><thead>@@ -17961,6 +17961,12 @@ In this situation, `update_mask` is ignored. </p></td><td><p></p></td></tr>+ <tr>+ <td>DATA_SOURCE_QUERY</td>+ <td>14</td>+ <td><p></p></td>+ </tr>+</tbody></table>diff --git a/proto/generated-go/store/policy.pb.go b/proto/generated-go/store/policy.pb.goindex 587c3618ba..388a3809f1 100644--- a/proto/generated-go/store/policy.pb.go+++ b/proto/generated-go/store/policy.pb.go@@ -171,54 +171,54 @@ func (EnvironmentTierPolicy_EnvironmentTier) EnumDescriptor() ([]byte, []int) {return file_store_policy_proto_rawDescGZIP(), []int{9, 0}}-type DataSourceQueryPolicy_Restricton int32+type DataSourceQueryPolicy_Restriction int32const (- DataSourceQueryPolicy_RESTRICTION_UNSPECIFIED DataSourceQueryPolicy_Restricton = 0+ DataSourceQueryPolicy_RESTRICTION_UNSPECIFIED DataSourceQueryPolicy_Restriction = 0// Allow to query admin data sources when there is no read-only data source.- DataSourceQueryPolicy_FALLBACK DataSourceQueryPolicy_Restricton = 1+ DataSourceQueryPolicy_FALLBACK DataSourceQueryPolicy_Restriction = 1// Disallow to query admin data sources.- DataSourceQueryPolicy_DISALLOW DataSourceQueryPolicy_Restricton = 2+ DataSourceQueryPolicy_DISALLOW DataSourceQueryPolicy_Restriction = 2)-// Enum value maps for DataSourceQueryPolicy_Restricton.+// Enum value maps for DataSourceQueryPolicy_Restriction.var (- DataSourceQueryPolicy_Restricton_name = map[int32]string{+ DataSourceQueryPolicy_Restriction_name = map[int32]string{0: "RESTRICTION_UNSPECIFIED",1: "FALLBACK",2: "DISALLOW",}- DataSourceQueryPolicy_Restricton_value = map[string]int32{+ DataSourceQueryPolicy_Restriction_value = map[string]int32{"RESTRICTION_UNSPECIFIED": 0,"FALLBACK": 1,"DISALLOW": 2,})-func (x DataSourceQueryPolicy_Restricton) Enum() *DataSourceQueryPolicy_Restricton {- p := new(DataSourceQueryPolicy_Restricton)+func (x DataSourceQueryPolicy_Restriction) Enum() *DataSourceQueryPolicy_Restriction {+ p := new(DataSourceQueryPolicy_Restriction)*p = xreturn p}-func (x DataSourceQueryPolicy_Restricton) String() string {+func (x DataSourceQueryPolicy_Restriction) String() string {return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))}-func (DataSourceQueryPolicy_Restricton) Descriptor() protoreflect.EnumDescriptor {+func (DataSourceQueryPolicy_Restriction) Descriptor() protoreflect.EnumDescriptor {return file_store_policy_proto_enumTypes[3].Descriptor()}-func (DataSourceQueryPolicy_Restricton) Type() protoreflect.EnumType {+func (DataSourceQueryPolicy_Restriction) Type() protoreflect.EnumType {return &file_store_policy_proto_enumTypes[3]}-func (x DataSourceQueryPolicy_Restricton) Number() protoreflect.EnumNumber {+func (x DataSourceQueryPolicy_Restriction) Number() protoreflect.EnumNumber {return protoreflect.EnumNumber(x)}-// Deprecated: Use DataSourceQueryPolicy_Restricton.Descriptor instead.-func (DataSourceQueryPolicy_Restricton) EnumDescriptor() ([]byte, []int) {+// Deprecated: Use DataSourceQueryPolicy_Restriction.Descriptor instead.+func (DataSourceQueryPolicy_Restriction) EnumDescriptor() ([]byte, []int) {return file_store_policy_proto_rawDescGZIP(), []int{13, 0}}@@ -970,7 +970,7 @@ type DataSourceQueryPolicy struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- AdminDataSourceRestriction DataSourceQueryPolicy_Restricton `protobuf:"varint,1,opt,name=admin_data_source_restriction,json=adminDataSourceRestriction,proto3,enum=bytebase.store.DataSourceQueryPolicy_Restricton" json:"admin_data_source_restriction,omitempty"`+ AdminDataSourceRestriction DataSourceQueryPolicy_Restriction `protobuf:"varint,1,opt,name=admin_data_source_restriction,json=adminDataSourceRestriction,proto3,enum=bytebase.store.DataSourceQueryPolicy_Restriction" json:"admin_data_source_restriction,omitempty"`}func (x *DataSourceQueryPolicy) Reset() {@@ -1005,7 +1005,7 @@ func (*DataSourceQueryPolicy) Descriptor() ([]byte, []int) {return file_store_policy_proto_rawDescGZIP(), []int{13}}-func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restricton {+func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restriction {if x != nil {return x.AdminDataSourceRestriction}@@ -1289,27 +1289,27 @@ var file_store_policy_proto_rawDesc = []byte{0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f,0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,- 0x22, 0xd3, 0x01, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51,- 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x73, 0x0a, 0x1d, 0x61, 0x64,+ 0x22, 0xd5, 0x01, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51,+ 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x74, 0x0a, 0x1d, 0x61, 0x64,0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,+ 0x0e, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65,0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,- 0x74, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22,- 0x45, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x6f, 0x6e, 0x12, 0x1b, 0x0a,- 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53,- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41,- 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41,- 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76,- 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11,- 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b,- 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44,- 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 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,+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,+ 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08,+ 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49,+ 0x53, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52,+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15,+ 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01,+ 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a,+ 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 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 (@@ -1330,7 +1330,7 @@ var file_store_policy_proto_goTypes = []any{(SQLReviewRuleLevel)(0), // 0: bytebase.store.SQLReviewRuleLevel(MaskingExceptionPolicy_MaskingException_Action)(0), // 1: bytebase.store.MaskingExceptionPolicy.MaskingException.Action(EnvironmentTierPolicy_EnvironmentTier)(0), // 2: bytebase.store.EnvironmentTierPolicy.EnvironmentTier- (DataSourceQueryPolicy_Restricton)(0), // 3: bytebase.store.DataSourceQueryPolicy.Restricton+ (DataSourceQueryPolicy_Restriction)(0), // 3: bytebase.store.DataSourceQueryPolicy.Restriction(*RolloutPolicy)(nil), // 4: bytebase.store.RolloutPolicy(*MaskingPolicy)(nil), // 5: bytebase.store.MaskingPolicy(*MaskData)(nil), // 6: bytebase.store.MaskData@@ -1363,7 +1363,7 @@ var file_store_policy_proto_depIdxs = []int32{23, // 7: bytebase.store.Binding.condition:type_name -> google.type.Expr11, // 8: bytebase.store.IamPolicy.bindings:type_name -> bytebase.store.Binding2, // 9: bytebase.store.EnvironmentTierPolicy.environment_tier:type_name -> bytebase.store.EnvironmentTierPolicy.EnvironmentTier- 3, // 10: bytebase.store.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.store.DataSourceQueryPolicy.Restricton+ 3, // 10: bytebase.store.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.store.DataSourceQueryPolicy.Restriction1, // 11: bytebase.store.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException.Action21, // 12: bytebase.store.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.store.MaskingLevel23, // 13: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Exprdiff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.goindex 24e54f6d48..850aead3de 100644--- a/proto/generated-go/v1/org_policy_service.pb.go+++ b/proto/generated-go/v1/org_policy_service.pb.go@@ -36,6 +36,7 @@ const (PolicyType_MASKING_EXCEPTION PolicyType = 10PolicyType_RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW PolicyType = 12PolicyType_TAG PolicyType = 13+ PolicyType_DATA_SOURCE_QUERY PolicyType = 14)// Enum value maps for PolicyType.@@ -50,6 +51,7 @@ var (10: "MASKING_EXCEPTION",12: "RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW",13: "TAG",+ 14: "DATA_SOURCE_QUERY",}PolicyType_value = map[string]int32{"POLICY_TYPE_UNSPECIFIED": 0,@@ -61,6 +63,7 @@ var ("MASKING_EXCEPTION": 10,"RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW": 12,"TAG": 13,+ "DATA_SOURCE_QUERY": 14,})@@ -250,54 +253,54 @@ func (MaskingExceptionPolicy_MaskingException_Action) EnumDescriptor() ([]byte,return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13, 0, 0}}-type DataSourceQueryPolicy_Restricton int32+type DataSourceQueryPolicy_Restriction int32const (- DataSourceQueryPolicy_RESTRICTION_UNSPECIFIED DataSourceQueryPolicy_Restricton = 0+ DataSourceQueryPolicy_RESTRICTION_UNSPECIFIED DataSourceQueryPolicy_Restriction = 0// Allow to query admin data sources when there is no read-only data source.- DataSourceQueryPolicy_FALLBACK DataSourceQueryPolicy_Restricton = 1+ DataSourceQueryPolicy_FALLBACK DataSourceQueryPolicy_Restriction = 1// Disallow to query admin data sources.- DataSourceQueryPolicy_DISALLOW DataSourceQueryPolicy_Restricton = 2+ DataSourceQueryPolicy_DISALLOW DataSourceQueryPolicy_Restriction = 2)-// Enum value maps for DataSourceQueryPolicy_Restricton.+// Enum value maps for DataSourceQueryPolicy_Restriction.var (- DataSourceQueryPolicy_Restricton_name = map[int32]string{+ DataSourceQueryPolicy_Restriction_name = map[int32]string{0: "RESTRICTION_UNSPECIFIED",1: "FALLBACK",2: "DISALLOW",}- DataSourceQueryPolicy_Restricton_value = map[string]int32{+ DataSourceQueryPolicy_Restriction_value = map[string]int32{"RESTRICTION_UNSPECIFIED": 0,"FALLBACK": 1,"DISALLOW": 2,})-func (x DataSourceQueryPolicy_Restricton) Enum() *DataSourceQueryPolicy_Restricton {- p := new(DataSourceQueryPolicy_Restricton)+func (x DataSourceQueryPolicy_Restriction) Enum() *DataSourceQueryPolicy_Restriction {+ p := new(DataSourceQueryPolicy_Restriction)*p = xreturn p}-func (x DataSourceQueryPolicy_Restricton) String() string {+func (x DataSourceQueryPolicy_Restriction) String() string {return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))}-func (DataSourceQueryPolicy_Restricton) Descriptor() protoreflect.EnumDescriptor {+func (DataSourceQueryPolicy_Restriction) Descriptor() protoreflect.EnumDescriptor {return file_v1_org_policy_service_proto_enumTypes[4].Descriptor()}-func (DataSourceQueryPolicy_Restricton) Type() protoreflect.EnumType {+func (DataSourceQueryPolicy_Restriction) Type() protoreflect.EnumType {return &file_v1_org_policy_service_proto_enumTypes[4]}-func (x DataSourceQueryPolicy_Restricton) Number() protoreflect.EnumNumber {+func (x DataSourceQueryPolicy_Restriction) Number() protoreflect.EnumNumber {return protoreflect.EnumNumber(x)}-// Deprecated: Use DataSourceQueryPolicy_Restricton.Descriptor instead.-func (DataSourceQueryPolicy_Restricton) EnumDescriptor() ([]byte, []int) {+// Deprecated: Use DataSourceQueryPolicy_Restriction.Descriptor instead.+func (DataSourceQueryPolicy_Restriction) EnumDescriptor() ([]byte, []int) {return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17, 0}}@@ -1515,7 +1518,7 @@ type DataSourceQueryPolicy struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- AdminDataSourceRestriction DataSourceQueryPolicy_Restricton `protobuf:"varint,1,opt,name=admin_data_source_restriction,json=adminDataSourceRestriction,proto3,enum=bytebase.v1.DataSourceQueryPolicy_Restricton" json:"admin_data_source_restriction,omitempty"`+ AdminDataSourceRestriction DataSourceQueryPolicy_Restriction `protobuf:"varint,1,opt,name=admin_data_source_restriction,json=adminDataSourceRestriction,proto3,enum=bytebase.v1.DataSourceQueryPolicy_Restriction" json:"admin_data_source_restriction,omitempty"`}func (x *DataSourceQueryPolicy) Reset() {@@ -1550,7 +1553,7 @@ func (*DataSourceQueryPolicy) Descriptor() ([]byte, []int) {return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17}}-func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restricton {+func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restriction {if x != nil {return x.AdminDataSourceRestriction}@@ -1958,152 +1961,153 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,- 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd0, 0x01, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x70,+ 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd2, 0x01, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,+ 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x71,0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75,0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75,0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69,- 0x63, 0x74, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,- 0x22, 0x45, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x6f, 0x6e, 0x12, 0x1b,- 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46,- 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53,- 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a, 0xe1, 0x01, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f, 0x50,- 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x53, 0x4b, 0x49,- 0x4e, 0x47, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x4c, 0x4f, 0x57, 0x5f, 0x51, 0x55, 0x45,- 0x52, 0x59, 0x10, 0x07, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x5f,- 0x43, 0x4f, 0x50, 0x59, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x4d,- 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x10, 0x09, 0x12, 0x15, 0x0a,- 0x11, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50, 0x54, 0x49,- 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54,- 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,- 0x46, 0x4f, 0x52, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x0c,- 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x0d, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22,- 0x04, 0x08, 0x04, 0x10, 0x04, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x2a, 0x7c, 0x0a, 0x12, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,- 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,- 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12,- 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02,- 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c, 0x0a,- 0x08, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44,- 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x05, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c,- 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,- 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10,- 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c,- 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xe8, 0x0c, 0x0a,- 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,- 0x65, 0x12, 0xa0, 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,- 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,- 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x22, 0xde, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30,- 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74,- 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61,+ 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f,+ 0x6e, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a,+ 0x08, 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44,+ 0x49, 0x53, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a, 0xf8, 0x01, 0x0a, 0x0a, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49,+ 0x43, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54,+ 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x53,+ 0x4b, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x4c, 0x4f, 0x57, 0x5f, 0x51,+ 0x55, 0x45, 0x52, 0x59, 0x10, 0x07, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c,+ 0x45, 0x5f, 0x43, 0x4f, 0x50, 0x59, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x08, 0x12, 0x10, 0x0a,+ 0x0c, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x10, 0x09, 0x12,+ 0x15, 0x0a, 0x11, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50,+ 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49,+ 0x43, 0x54, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f,+ 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57,+ 0x10, 0x0c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x0d, 0x12, 0x15, 0x0a, 0x11, 0x44,+ 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59,+ 0x10, 0x0e, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22, 0x04, 0x08, 0x04, 0x10, 0x04, 0x22, 0x04,+ 0x08, 0x06, 0x10, 0x06, 0x2a, 0x7c, 0x0a, 0x12, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45,+ 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x4f, 0x52,+ 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49,+ 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f,+ 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e,+ 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,+ 0x10, 0x05, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52,+ 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45,+ 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41,+ 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42,+ 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xe8, 0x0c, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa0, 0x02, 0x0a, 0x09, 0x47,+ 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,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0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa8, 0x02,+ 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,+ 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,+ 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,+ 0x6e, 0x73, 0x65, 0x22, 0xd2, 0x01, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30,+ 0x01, 0x82, 0xd3, 0xe4, 0x93, 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 0x65,+ 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x22, 0x89, 0x02, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0xd8, 0x01, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,+ 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2b, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x37, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,+ 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c,+ 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x82, 0x03, 0x0a,+ 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x22, 0xba, 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12,+ 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x84, 0x02, 0x3a, 0x06, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32,+ 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,0x73, 0x2f, 0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0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd2, 0x01, 0xda, 0x41, 0x00,- 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e,- 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb0, 0x01, 0x5a,- 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,- 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x23, 0x12, 0x21, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,+ 0x32, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x34, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12,- 0xd1, 0x02, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,- 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x89, 0x02, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62,- 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd8, 0x01, 0x3a, 0x06, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x20, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a,- 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,- 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a,- 0x2b, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x37, 0x3a, 0x06,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x12, 0x82, 0x03, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xba, 0x02, 0xda, 0x41,- 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,- 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x84, 0x02, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a,- 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69,- 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x32, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x32, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61,- 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x3a, 0x06, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x32, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xac, 0x02, 0x0a, 0x0c, 0x44, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,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f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,- 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 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,+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x2f, 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,+ 0x7d, 0x12, 0xac, 0x02, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0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0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 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 (@@ -2125,7 +2129,7 @@ var file_v1_org_policy_service_proto_goTypes = []any{(PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType(SQLReviewRuleLevel)(0), // 2: bytebase.v1.SQLReviewRuleLevel(MaskingExceptionPolicy_MaskingException_Action)(0), // 3: bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- (DataSourceQueryPolicy_Restricton)(0), // 4: bytebase.v1.DataSourceQueryPolicy.Restricton+ (DataSourceQueryPolicy_Restriction)(0), // 4: bytebase.v1.DataSourceQueryPolicy.Restriction(*CreatePolicyRequest)(nil), // 5: bytebase.v1.CreatePolicyRequest(*UpdatePolicyRequest)(nil), // 6: bytebase.v1.UpdatePolicyRequest(*DeletePolicyRequest)(nil), // 7: bytebase.v1.DeletePolicyRequest@@ -2178,7 +2182,7 @@ var file_v1_org_policy_service_proto_depIdxs = []int32{23, // 21: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException24, // 22: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule25, // 23: bytebase.v1.TagPolicy.tags:type_name -> bytebase.v1.TagPolicy.TagsEntry- 4, // 24: bytebase.v1.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.v1.DataSourceQueryPolicy.Restricton+ 4, // 24: bytebase.v1.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.v1.DataSourceQueryPolicy.Restriction3, // 25: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action27, // 26: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel29, // 27: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Exprdiff --git a/proto/store/policy.proto b/proto/store/policy.protoindex c75ba7b497..997c533fe4 100644--- a/proto/store/policy.proto+++ b/proto/store/policy.proto@@ -138,12 +138,12 @@ message RestrictIssueCreationForSQLReviewPolicy {// DataSourceQueryPolicy is the policy configuration for data source query.message DataSourceQueryPolicy {- enum Restricton {+ enum Restriction {RESTRICTION_UNSPECIFIED = 0;// Allow to query admin data sources when there is no read-only data source.FALLBACK = 1;// Disallow to query admin data sources.DISALLOW = 2;}- Restricton admin_data_source_restriction = 1;+ Restriction admin_data_source_restriction = 1;}diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex 571a0a4a9a..988ceac75f 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -264,6 +264,7 @@ enum PolicyType {MASKING_EXCEPTION = 10;RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW = 12;TAG = 13;+ DATA_SOURCE_QUERY = 14;}enum PolicyResourceType {@@ -370,12 +371,12 @@ message TagPolicy {}message DataSourceQueryPolicy {- enum Restricton {+ enum Restriction {RESTRICTION_UNSPECIFIED = 0;// Allow to query admin data sources when there is no read-only data source.FALLBACK = 1;// Disallow to query admin data sources.DISALLOW = 2;}- Restricton admin_data_source_restriction = 1;+ Restriction admin_data_source_restriction = 1;}