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: deprecate exception level (#14804)
Danny Xu78c0aed4940e
diff --git a/backend/api/v1/masking_evaluator.go b/backend/api/v1/masking_evaluator.goindex d81be331cc..b4c7c7343f 100644--- a/backend/api/v1/masking_evaluator.go+++ b/backend/api/v1/masking_evaluator.go@@ -1,7 +1,6 @@package v1import (- "cmp""log/slog""reflect""time"@@ -239,13 +238,8 @@ func (m *maskingLevelEvaluator) evaluateMaskingLevelOfColumn(databaseMessage *stif err != nil {return storepb.MaskingLevel_MASKING_LEVEL_UNSPECIFIED, errors.Wrapf(err, "failed to evaluate masking exception policy condition")}- if !hit {- continue- }- // TODO(zp): Expectedly, a column should hit only one exception,- // but we can take the strictest level here to make the whole program more robust.- if cmp.Less[storepb.MaskingLevel](filteredMaskingException.MaskingLevel, finalLevel) {- finalLevel = filteredMaskingException.MaskingLevel+ if hit {+ return storepb.MaskingLevel_NONE, nil}}return finalLevel, nildiff --git a/backend/api/v1/masking_evaluator_test.go b/backend/api/v1/masking_evaluator_test.goindex 728d2ea634..d3ecf8a452 100644--- a/backend/api/v1/masking_evaluator_test.go+++ b/backend/api/v1/masking_evaluator_test.go@@ -108,14 +108,13 @@ func TestEvalMaskingLevelOfColumn(t *testing.T) {Condition: &expr.Expr{Expression: `(resource.instance_id == "neon-host") && (resource.database_name == "bb") && (resource.schema_name == "hiring") && (resource.table_name == "employees") && (resource.column_name == "salary")`,},- Member: "users/1234",- MaskingLevel: storepb.MaskingLevel_PARTIAL,+ Member: "users/1234",},},dataClassification: defaultClassification,databaseProjectDatabaseClassificationID: defaultProjectDatabaseDataClassificationID,- want: storepb.MaskingLevel_PARTIAL,+ want: storepb.MaskingLevel_NONE,},{description: "Only Find The Lower Level in Exception",@@ -141,14 +140,13 @@ func TestEvalMaskingLevelOfColumn(t *testing.T) {Condition: &expr.Expr{Expression: `(resource.instance_id == "neon-host") && (resource.database_name == "bb") && (resource.schema_name == "hiring") && (resource.table_name == "employees") && (resource.column_name == "salary")`,},- Member: "users/1234",- MaskingLevel: storepb.MaskingLevel_FULL,+ Member: "users/1234",},},dataClassification: defaultClassification,databaseProjectDatabaseClassificationID: defaultProjectDatabaseDataClassificationID,- want: storepb.MaskingLevel_PARTIAL,+ want: storepb.MaskingLevel_NONE,},{description: "Respect The Column Masking Policy",@@ -177,14 +175,13 @@ func TestEvalMaskingLevelOfColumn(t *testing.T) {Condition: &expr.Expr{Expression: `(resource.instance_id == "neon-host") && (resource.database_name == "bb") && (resource.schema_name == "hiring") && (resource.table_name == "employees") && (resource.column_name == "salary")`,},- Member: "users/1234",- MaskingLevel: storepb.MaskingLevel_PARTIAL,+ Member: "users/1234",},},dataClassification: defaultClassification,databaseProjectDatabaseClassificationID: defaultProjectDatabaseDataClassificationID,- want: storepb.MaskingLevel_PARTIAL,+ want: storepb.MaskingLevel_NONE,},}diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex d9b45b4fe5..2924b14158 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -506,12 +506,6 @@ func validatePolicyPayload(policyType api.PolicyType, policy *v1pb.Policy) errorif exception.Action == v1pb.MaskingExceptionPolicy_MaskingException_ACTION_UNSPECIFIED {return status.Errorf(codes.InvalidArgument, "masking exception must have action set")}- if exception.MaskingLevel == v1pb.MaskingLevel_FULL {- return status.Errorf(codes.InvalidArgument, "masking exception cannot have full masking level")- }- if exception.MaskingLevel == v1pb.MaskingLevel_MASKING_LEVEL_UNSPECIFIED {- return status.Errorf(codes.InvalidArgument, "masking exception must have masking level set")- }if _, err := common.ValidateMaskingExceptionCELExpr(exception.Condition); err != nil {return status.Error(codes.InvalidArgument, fmt.Sprintf("invalid masking exception expression: %v", err))}@@ -972,9 +966,8 @@ func (s *OrgPolicyService) convertToStorePBMaskingExceptionPolicyPayload(ctx conreturn nil, err}exceptions = append(exceptions, &storepb.MaskingExceptionPolicy_MaskingException{- Action: convertToStorePBAction(exception.Action),- MaskingLevel: convertToStorePBMaskingLevel(exception.MaskingLevel),- Member: member,+ Action: convertToStorePBAction(exception.Action),+ Member: member,Condition: &expr.Expr{Title: exception.Condition.Title,Expression: exception.Condition.Expression,@@ -998,9 +991,8 @@ func (s *OrgPolicyService) convertToV1PBMaskingExceptionPolicyPayload(ctx contex}exceptions = append(exceptions, &v1pb.MaskingExceptionPolicy_MaskingException{- Action: convertToV1PBAction(exception.Action),- MaskingLevel: convertToV1PBMaskingLevel(exception.MaskingLevel),- Member: memberInBinding,+ Action: convertToV1PBAction(exception.Action),+ Member: memberInBinding,Condition: &expr.Expr{Title: exception.Condition.Title,Expression: exception.Condition.Expression,diff --git a/frontend/src/components/SensitiveData/GrantAccessForm.vue b/frontend/src/components/SensitiveData/GrantAccessForm.vueindex 44a08241bd..5b66eefe50 100644--- a/frontend/src/components/SensitiveData/GrantAccessForm.vue+++ b/frontend/src/components/SensitiveData/GrantAccessForm.vue@@ -42,20 +42,6 @@</div></div>- <div class="w-full">- <div class="flex items-center gap-x-1 mb-2">- <span class="font-medium text-main">- {{ $t("settings.sensitive-data.masking-level.self") }}- </span>- <span class="text-red-600">*</span>- </div>- <MaskingLevelRadioGroup- :level="state.maskingLevel"- :level-list="MASKING_LEVELS"- @update:level="state.maskingLevel = $event"- />- </div>-<div class="w-full"><p class="mb-2 font-medium text-main">{{ $t("common.expiration") }}@@ -113,7 +99,6 @@ import FormLayout from "@/components/v2/Form/FormLayout.vue";import { usePolicyV1Store, pushNotification } from "@/store";import type { DatabaseResource } from "@/types";import { Expr } from "@/types/proto/google/type/expr";-import { MaskingLevel } from "@/types/proto/v1/common";import type {Policy,MaskingExceptionPolicy_MaskingException,@@ -124,7 +109,6 @@ import {MaskingExceptionPolicy_MaskingException_Action,maskingExceptionPolicy_MaskingException_ActionToJSON,} from "@/types/proto/v1/org_policy_service";-import MaskingLevelRadioGroup from "./components/MaskingLevelRadioGroup.vue";import type { SensitiveColumn } from "./types";import {getExpressionsForDatabaseResource,@@ -142,7 +126,6 @@ const emit = defineEmits(["dismiss"]);interface LocalState {memberList: string[];expirationTimestamp?: number;- maskingLevel: MaskingLevel;processing: boolean;supportActions: Set<MaskingExceptionPolicy_MaskingException_Action>;databaseResources?: DatabaseResource[];@@ -152,11 +135,9 @@ const ACTIONS = [MaskingExceptionPolicy_MaskingException_Action.EXPORT,MaskingExceptionPolicy_MaskingException_Action.QUERY,];-const MASKING_LEVELS = [MaskingLevel.PARTIAL, MaskingLevel.NONE];const state = reactive<LocalState>({memberList: [],- maskingLevel: MaskingLevel.PARTIAL,processing: false,supportActions: new Set(ACTIONS),databaseResources: props.columnList.map(@@ -169,7 +150,6 @@ const { t } = useI18n();const resetState = () => {state.expirationTimestamp = undefined;- state.maskingLevel = MaskingLevel.PARTIAL;state.supportActions = new Set(ACTIONS);state.memberList = [];state.databaseResources = undefined;@@ -237,7 +217,6 @@ const getPendingUpdatePolicy = async (maskingExceptions.push({member,action,- maskingLevel: state.maskingLevel,condition: Expr.fromPartial({expression:expressions.length > 0 ? expressions.join(" && ") : undefined,@@ -251,7 +230,6 @@ const getPendingUpdatePolicy = async (maskingExceptions.push({member,action,- maskingLevel: state.maskingLevel,condition: Expr.fromPartial({expression: resourceExpressions.join(" && "),}),diff --git a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vueindex 22e3df54db..d17052ace9 100644--- a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue+++ b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue@@ -40,7 +40,6 @@ import {groupBindingPrefix,} from "@/types";import { Expr } from "@/types/proto/google/type/expr";-import { MaskingLevel, maskingLevelToJSON } from "@/types/proto/v1/common";import { MaskingExceptionPolicy_MaskingException_Action } from "@/types/proto/v1/org_policy_service";import type {Policy,@@ -50,7 +49,6 @@ import { PolicyType } from "@/types/proto/v1/org_policy_service";import { autoDatabaseRoute, hasWorkspacePermissionV2 } from "@/utils";import { convertFromCELString } from "@/utils/issue/cel";import UserAvatar from "../User/UserAvatar.vue";-import MaskingLevelDropdown from "./components/MaskingLevelDropdown.vue";import { type AccessUser } from "./types";interface LocalState {@@ -156,7 +154,6 @@ const getAccessUsers = async (const access: AccessUser = {type: "user",key: exception.member,- maskingLevel: exception.maskingLevel,expirationTimestamp,supportActions: new Set([exception.action]),rawExpression: expression,@@ -185,7 +182,6 @@ const getExceptionIdentifier = (): string => {const expression = exception.condition?.expression ?? "";const res: string[] = [- `level:"${maskingLevelToJSON(exception.maskingLevel)}"`,expression,];return res.join(" && ");@@ -367,24 +363,6 @@ const accessTableColumns = computed();},},- {- key: "level",- title: t("settings.sensitive-data.masking-level.self"),- render: (item: AccessUser, row: number) => {- return (- <MaskingLevelDropdown- disabled={!hasPermission.value || props.disabled}- level={item.maskingLevel}- levelList={[MaskingLevel.PARTIAL, MaskingLevel.NONE]}- onUpdate:level={(e) => {- if (e) {- onAccessControlUpdate(row, (item) => (item.maskingLevel = e));- }- }}- />- );- },- },{key: "expire",title: t("common.expiration"),@@ -546,7 +524,6 @@ const updateExceptionPolicy = async () => {}for (const action of accessUser.supportActions) {unChangedExceptions.push({- maskingLevel: accessUser.maskingLevel,action,member: getMemberBinding(accessUser),condition: Expr.fromPartial({diff --git a/frontend/src/components/SensitiveData/types.ts b/frontend/src/components/SensitiveData/types.tsindex ff8217928c..939f0e54d6 100644--- a/frontend/src/components/SensitiveData/types.ts+++ b/frontend/src/components/SensitiveData/types.ts@@ -24,7 +24,6 @@ export interface AccessUser {group?: Group;user?: User;supportActions: Set<MaskingExceptionPolicy_MaskingException_Action>;- maskingLevel: MaskingLevel;expirationTimestamp?: number;rawExpression: string;databaseResource?: DatabaseResource;diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex ae3f877dc7..2fdf22f5e2 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -36,7 +36,7 @@ export enum Edition {EDITION_2024 = "EDITION_2024",/*** EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be- * used or relyed on outside of tests.+ * used or relied on outside of tests.*/EDITION_1_TEST_ONLY = "EDITION_1_TEST_ONLY",EDITION_2_TEST_ONLY = "EDITION_2_TEST_ONLY",@@ -1093,12 +1093,13 @@ export interface MessageOptions {export interface FieldOptions {/**+ * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.* 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 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!+ * type "bytes" in the open source release.+ * TODO: make ctype actually deprecated.*/ctype?:| FieldOptions_CType@@ -1314,11 +1315,7 @@ export function fieldOptions_JSTypeToNumber(object: FieldOptions_JSType): number}}-/**- * If set to RETENTION_SOURCE, the option will be omitted from the binary.- * Note: as of January 2023, support for this is in progress and does not yet- * have an effect (b/264593489).- */+/** If set to RETENTION_SOURCE, the option will be omitted from the binary. */export enum FieldOptions_OptionRetention {RETENTION_UNKNOWN = "RETENTION_UNKNOWN",RETENTION_RUNTIME = "RETENTION_RUNTIME",@@ -1375,8 +1372,7 @@ export function fieldOptions_OptionRetentionToNumber(object: FieldOptions_Option/*** This indicates the types of entities that the field may apply to when used* as an option. If it is unset, then the field may be freely used as an- * option on any kind of entity. Note: as of January 2023, support for this is- * in progress and does not yet have an effect (b/264593489).+ * option on any kind of entity.*/export enum FieldOptions_OptionTargetType {TARGET_TYPE_UNKNOWN = "TARGET_TYPE_UNKNOWN",diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.tsindex 6e1c89a8b0..dfc71829ce 100644--- a/frontend/src/types/proto/store/policy.ts+++ b/frontend/src/types/proto/store/policy.ts@@ -114,8 +114,6 @@ export interface MaskingExceptionPolicy {export interface MaskingExceptionPolicy_MaskingException {/** action is the action that the user can access sensitive data. */action: MaskingExceptionPolicy_MaskingException_Action;- /** Level is the masking level that the user can access sensitive data. */- maskingLevel: MaskingLevel;/*** Member is the principal who bind to this exception policy instance.*@@ -781,7 +779,6 @@ export const MaskingExceptionPolicy: MessageFns<MaskingExceptionPolicy> = {function createBaseMaskingExceptionPolicy_MaskingException(): MaskingExceptionPolicy_MaskingException {return {action: MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED,- maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,member: "",condition: undefined,};@@ -792,9 +789,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptioif (message.action !== MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED) {writer.uint32(8).int32(maskingExceptionPolicy_MaskingException_ActionToNumber(message.action));}- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {- writer.uint32(16).int32(maskingLevelToNumber(message.maskingLevel));- }if (message.member !== "") {writer.uint32(34).string(message.member);}@@ -819,14 +813,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptiomessage.action = maskingExceptionPolicy_MaskingException_ActionFromJSON(reader.int32());continue;}- case 2: {- if (tag !== 16) {- break;- }-- message.maskingLevel = maskingLevelFromJSON(reader.int32());- continue;- }case 4: {if (tag !== 34) {break;@@ -857,9 +843,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptioaction: isSet(object.action)? maskingExceptionPolicy_MaskingException_ActionFromJSON(object.action): MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED,- maskingLevel: isSet(object.maskingLevel)- ? maskingLevelFromJSON(object.maskingLevel)- : MaskingLevel.MASKING_LEVEL_UNSPECIFIED,member: isSet(object.member) ? globalThis.String(object.member) : "",condition: isSet(object.condition) ? Expr.fromJSON(object.condition) : undefined,};@@ -870,9 +853,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptioif (message.action !== MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED) {obj.action = maskingExceptionPolicy_MaskingException_ActionToJSON(message.action);}- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {- obj.maskingLevel = maskingLevelToJSON(message.maskingLevel);- }if (message.member !== "") {obj.member = message.member;}@@ -888,7 +868,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptiofromPartial(object: DeepPartial<MaskingExceptionPolicy_MaskingException>): MaskingExceptionPolicy_MaskingException {const message = createBaseMaskingExceptionPolicy_MaskingException();message.action = object.action ?? MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED;- message.maskingLevel = object.maskingLevel ?? MaskingLevel.MASKING_LEVEL_UNSPECIFIED;message.member = object.member ?? "";message.condition = (object.condition !== undefined && object.condition !== null)? Expr.fromPartial(object.condition)diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.tsindex 2b0fa0a249..60317bf33f 100644--- a/frontend/src/types/proto/v1/org_policy_service.ts+++ b/frontend/src/types/proto/v1/org_policy_service.ts@@ -434,8 +434,6 @@ export interface MaskingExceptionPolicy {export interface MaskingExceptionPolicy_MaskingException {/** action is the action that the user can access sensitive data. */action: MaskingExceptionPolicy_MaskingException_Action;- /** Level is the masking level that the user can access sensitive data. */- maskingLevel: MaskingLevel;/*** Member is the principal who bind to this exception policy instance.*@@ -1912,7 +1910,6 @@ export const MaskingExceptionPolicy: MessageFns<MaskingExceptionPolicy> = {function createBaseMaskingExceptionPolicy_MaskingException(): MaskingExceptionPolicy_MaskingException {return {action: MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED,- maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,member: "",condition: undefined,};@@ -1923,9 +1920,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptioif (message.action !== MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED) {writer.uint32(8).int32(maskingExceptionPolicy_MaskingException_ActionToNumber(message.action));}- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {- writer.uint32(16).int32(maskingLevelToNumber(message.maskingLevel));- }if (message.member !== "") {writer.uint32(26).string(message.member);}@@ -1950,14 +1944,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptiomessage.action = maskingExceptionPolicy_MaskingException_ActionFromJSON(reader.int32());continue;}- case 2: {- if (tag !== 16) {- break;- }-- message.maskingLevel = maskingLevelFromJSON(reader.int32());- continue;- }case 3: {if (tag !== 26) {break;@@ -1988,9 +1974,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptioaction: isSet(object.action)? maskingExceptionPolicy_MaskingException_ActionFromJSON(object.action): MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED,- maskingLevel: isSet(object.maskingLevel)- ? maskingLevelFromJSON(object.maskingLevel)- : MaskingLevel.MASKING_LEVEL_UNSPECIFIED,member: isSet(object.member) ? globalThis.String(object.member) : "",condition: isSet(object.condition) ? Expr.fromJSON(object.condition) : undefined,};@@ -2001,9 +1984,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptioif (message.action !== MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED) {obj.action = maskingExceptionPolicy_MaskingException_ActionToJSON(message.action);}- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {- obj.maskingLevel = maskingLevelToJSON(message.maskingLevel);- }if (message.member !== "") {obj.member = message.member;}@@ -2019,7 +1999,6 @@ export const MaskingExceptionPolicy_MaskingException: MessageFns<MaskingExceptiofromPartial(object: DeepPartial<MaskingExceptionPolicy_MaskingException>): MaskingExceptionPolicy_MaskingException {const message = createBaseMaskingExceptionPolicy_MaskingException();message.action = object.action ?? MaskingExceptionPolicy_MaskingException_Action.ACTION_UNSPECIFIED;- message.maskingLevel = object.maskingLevel ?? MaskingLevel.MASKING_LEVEL_UNSPECIFIED;message.member = object.member ?? "";message.condition = (object.condition !== undefined && object.condition !== null)? Expr.fromPartial(object.condition)diff --git a/frontend/src/views/project/ProjectDatabaseMaskingAccess.vue b/frontend/src/views/project/ProjectDatabaseMaskingAccess.vueindex 63ba3021ae..cf99e27e94 100644--- a/frontend/src/views/project/ProjectDatabaseMaskingAccess.vue+++ b/frontend/src/views/project/ProjectDatabaseMaskingAccess.vue@@ -11,12 +11,6 @@:project-name="project.name":database-name="state.selectedDatabaseName"/>- <MaskingLevelDropdown- v-model:level="state.selectedMaskLevel"- style="width: 12rem"- :clearable="true"- :level-list="[MaskingLevel.PARTIAL, MaskingLevel.NONE]"- /><MaskingActionDropdownv-model:action="state.selectedAction"style="width: 12rem"@@ -83,12 +77,10 @@ import { useRouter } from "vue-router";import { FeatureModal, FeatureBadge } from "@/components/FeatureGuard";import MaskingExceptionUserTable from "@/components/SensitiveData/MaskingExceptionUserTable.vue";import MaskingActionDropdown from "@/components/SensitiveData/components/MaskingActionDropdown.vue";-import MaskingLevelDropdown from "@/components/SensitiveData/components/MaskingLevelDropdown.vue";import { SearchBox, DatabaseSelect } from "@/components/v2";import { PROJECT_V1_ROUTE_MASKING_ACCESS_CREATE } from "@/router/dashboard/projectV1";import { useProjectByName, hasFeature } from "@/store";import { projectNamePrefix } from "@/store/modules/v1/common";-import { MaskingLevel } from "@/types/proto/v1/common";import type { MaskingExceptionPolicy_MaskingException } from "@/types/proto/v1/org_policy_service";import { MaskingExceptionPolicy_MaskingException_Action as Action } from "@/types/proto/v1/org_policy_service";import { extractDatabaseResourceName, hasProjectPermissionV2 } from "@/utils";@@ -98,7 +90,6 @@ interface LocalState {showFeatureModal: boolean;selectedEnvironmentName?: string;selectedDatabaseName?: string;- selectedMaskLevel?: MaskingLevel;selectedAction?: Action;}@@ -130,12 +121,6 @@ const allowCreate = computed(() => {const filterException = (exception: MaskingExceptionPolicy_MaskingException): boolean => {- if (- state.selectedMaskLevel &&- exception.maskingLevel !== state.selectedMaskLevel- ) {- return false;- }if (state.selectedAction && exception.action !== state.selectedAction) {return false;}diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 8f652c0357..bcf5de91fd 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -11887,15 +11887,6 @@ components:type: stringdescription: action is the action that the user can access sensitive data.format: enum- maskingLevel:- enum:- - MASKING_LEVEL_UNSPECIFIED- - NONE- - PARTIAL- - FULL- type: string- description: Level is the masking level that the user can access sensitive data.- format: enummember:type: stringdescription: |-diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 768efec8b1..5f5867ad7d 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -3638,7 +3638,6 @@ MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || action | [MaskingExceptionPolicy.MaskingException.Action](#bytebase-store-MaskingExceptionPolicy-MaskingException-Action) | | action is the action that the user can access sensitive data. |-| masking_level | [MaskingLevel](#bytebase-store-MaskingLevel) | | Level is the masking level that the user can access sensitive data. || member | [string](#string) | | Member is the principal who bind to this exception policy instance.Format: users/{userUID} or groups/{group email} |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 0dee339385..408066ffa1 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -9569,13 +9569,6 @@ A binding binds one or more members or groups to a single role. </p></td><td><p>action is the action that the user can access sensitive data. </p></td></tr>- <tr>- <td>masking_level</td>- <td><a href="#bytebase.store.MaskingLevel">MaskingLevel</a></td>- <td></td>- <td><p>Level is the masking level that the user can access sensitive data. </p></td>- </tr>-<tr><td>member</td><td><a href="#string">string</a></td>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex f0a5e4adbf..4385bb000a 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -7880,7 +7880,6 @@ MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || action | [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action) | | action is the action that the user can access sensitive data. |-| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | Level is the masking level that the user can access sensitive data. || member | [string](#string) | | Member is the principal who bind to this exception policy instance.- `user:{email}`: An email address that represents a specific Bytebase account. For example, `[email protected]`. - `group:{email}`: An email address for group. |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 0f69ab588e..ca91a4755d 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -22055,13 +22055,6 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>action is the action that the user can access sensitive data. </p></td></tr>- <tr>- <td>masking_level</td>- <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>- <td></td>- <td><p>Level is the masking level that the user can access sensitive data. </p></td>- </tr>-<tr><td>member</td><td><a href="#string">string</a></td>diff --git a/proto/generated-go/store/policy.pb.go b/proto/generated-go/store/policy.pb.goindex d238b89853..190afd65d8 100644--- a/proto/generated-go/store/policy.pb.go+++ b/proto/generated-go/store/policy.pb.go@@ -1045,8 +1045,6 @@ type MaskingExceptionPolicy_MaskingException struct {state protoimpl.MessageState `protogen:"open.v1"`// action is the action that the user can access sensitive data.Action MaskingExceptionPolicy_MaskingException_Action `protobuf:"varint,1,opt,name=action,proto3,enum=bytebase.store.MaskingExceptionPolicy_MaskingException_Action" json:"action,omitempty"`- // Level is the masking level that the user can access sensitive data.- MaskingLevel MaskingLevel `protobuf:"varint,2,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.store.MaskingLevel" json:"masking_level,omitempty"`// Member is the principal who bind to this exception policy instance.//// Format: users/{userUID} or groups/{group email}@@ -1094,13 +1092,6 @@ func (x *MaskingExceptionPolicy_MaskingException) GetAction() MaskingExceptionPoreturn MaskingExceptionPolicy_MaskingException_ACTION_UNSPECIFIED}-func (x *MaskingExceptionPolicy_MaskingException) GetMaskingLevel() MaskingLevel {- if x != nil {- return x.MaskingLevel- }- return MaskingLevel_MASKING_LEVEL_UNSPECIFIED-}-func (x *MaskingExceptionPolicy_MaskingException) GetMember() string {if x != nil {return x.Member@@ -1215,7 +1206,7 @@ var file_store_policy_proto_rawDesc = []byte{0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f,0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19,0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c,- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0xb2, 0x03, 0x0a, 0x16, 0x4d, 0x61,+ 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0xef, 0x02, 0x0a, 0x16, 0x4d, 0x61,0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f,0x6c, 0x69, 0x63, 0x79, 0x12, 0x66, 0x0a, 0x12, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f,0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,@@ -1223,125 +1214,120 @@ var file_store_policy_proto_rawDesc = []byte{0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69,- 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xaf, 0x02, 0x0a,+ 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xec, 0x01, 0x0a,0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f,0x6e, 0x12, 0x56, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,0x0e, 0x32, 0x3e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74,0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f,- 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x61, 0x73,- 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,- 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c,- 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06,- 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65,- 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f,- 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64,- 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,- 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55, 0x45, 0x52, 0x59,- 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x22, 0xec,- 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20,- 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,- 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75,- 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x91, 0x01, 0x0a, 0x0b, 0x4d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e,- 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67,- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52,- 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,- 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52,- 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xc1, 0x01,- 0x0a, 0x0d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12,- 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,- 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c,- 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a,- 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,- 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,- 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52,- 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65,- 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,- 0x74, 0x22, 0x7d, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x37,- 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61,- 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72,- 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 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, 0x68, 0x0a, 0x07, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x72,- 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12,- 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,- 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e,- 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67,- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52,- 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x0a, 0x09, 0x49, 0x61,- 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69,- 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69,- 0x6e, 0x67, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xe4, 0x01, 0x0a,- 0x15, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x60, 0x0a, 0x10, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,- 0x32, 0x35, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65,- 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,- 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,- 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f,- 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x22, 0x53,- 0x0a, 0x0f, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65,- 0x72, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54,- 0x5f, 0x54, 0x49, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44,- 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45,- 0x44, 0x10, 0x02, 0x22, 0x29, 0x0a, 0x0f, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f,- 0x0a, 0x15, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74,- 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22,- 0x2c, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x45, 0x0a,- 0x27, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72,- 0x65, 0x61, 0x74, 0x69, 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, 0x9b, 0x02, 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, 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, 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, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,- 0x5f, 0x64, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61,- 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c,- 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64,- 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 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,+ 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d,+ 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65,+ 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79,+ 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69,+ 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12,+ 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x01, 0x12,+ 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x22, 0xec, 0x01, 0x0a, 0x11,+ 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x43, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52,+ 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x91, 0x01, 0x0a, 0x0b, 0x4d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,+ 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67,+ 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f,+ 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,+ 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x53,+ 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04,+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,+ 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65,+ 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,+ 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79,+ 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e,+ 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,+ 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x7d,+ 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x37, 0x0a, 0x04, 0x74,+ 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x67, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04,+ 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 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, 0x68, 0x0a,+ 0x07, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07,+ 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d,+ 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,+ 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67,+ 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f,+ 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x0a, 0x09, 0x49, 0x61, 0x6d, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73,+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52,+ 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xe4, 0x01, 0x0a, 0x15, 0x45, 0x6e,+ 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x60, 0x0a, 0x10, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,+ 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45,+ 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,+ 0x54, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,+ 0x74, 0x54, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x22, 0x53, 0x0a, 0x0f, 0x45,+ 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x12, 0x20,+ 0x0a, 0x1c, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x49,+ 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12,+ 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02,+ 0x22, 0x29, 0x0a, 0x0f, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44,+ 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2c, 0x0a, 0x10,+ 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65,+ 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74,+ 0x69, 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, 0x9b, 0x02, 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, 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, 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, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x64,+ 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,+ 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,+ 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61,+ 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 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 (@@ -1398,15 +1384,14 @@ var file_store_policy_proto_depIdxs = []int32{2, // 9: bytebase.store.EnvironmentTierPolicy.environment_tier:type_name -> bytebase.store.EnvironmentTierPolicy.EnvironmentTier3, // 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.Action- 22, // 12: bytebase.store.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.store.MaskingLevel- 24, // 13: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 24, // 14: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 22, // 15: bytebase.store.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.store.MaskingLevel- 16, // [16:16] is the sub-list for method output_type- 16, // [16:16] is the sub-list for method input_type- 16, // [16:16] is the sub-list for extension type_name- 16, // [16:16] is the sub-list for extension extendee- 0, // [0:16] is the sub-list for field type_name+ 24, // 12: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 24, // 13: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 22, // 14: bytebase.store.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.store.MaskingLevel+ 15, // [15:15] is the sub-list for method output_type+ 15, // [15:15] is the sub-list for method input_type+ 15, // [15:15] is the sub-list for extension type_name+ 15, // [15:15] is the sub-list for extension extendee+ 0, // [0:15] is the sub-list for field type_name}func init() { file_store_policy_proto_init() }diff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.goindex 071266237a..5fedf2f263 100644--- a/proto/generated-go/v1/org_policy_service.pb.go+++ b/proto/generated-go/v1/org_policy_service.pb.go@@ -1447,8 +1447,6 @@ type MaskingExceptionPolicy_MaskingException struct {state protoimpl.MessageState `protogen:"open.v1"`// action is the action that the user can access sensitive data.Action MaskingExceptionPolicy_MaskingException_Action `protobuf:"varint,1,opt,name=action,proto3,enum=bytebase.v1.MaskingExceptionPolicy_MaskingException_Action" json:"action,omitempty"`- // Level is the masking level that the user can access sensitive data.- MaskingLevel MaskingLevel `protobuf:"varint,2,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.v1.MaskingLevel" json:"masking_level,omitempty"`// Member is the principal who bind to this exception policy instance.//// - `user:{email}`: An email address that represents a specific Bytebase account. For example, `[email protected]`.@@ -1497,13 +1495,6 @@ func (x *MaskingExceptionPolicy_MaskingException) GetAction() MaskingExceptionPoreturn MaskingExceptionPolicy_MaskingException_ACTION_UNSPECIFIED}-func (x *MaskingExceptionPolicy_MaskingException) GetMaskingLevel() MaskingLevel {- if x != nil {- return x.MaskingLevel- }- return MaskingLevel_MASKING_LEVEL_UNSPECIFIED-}-func (x *MaskingExceptionPolicy_MaskingException) GetMember() string {if x != nil {return x.Member@@ -1763,7 +1754,7 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{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, 0x18, 0x0a, 0x07, 0x63,0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xa9, 0x03, 0x0a, 0x16, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,+ 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xe9, 0x02, 0x0a, 0x16, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,0x12, 0x63, 0x0a, 0x12, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63, 0x65,0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62,@@ -1771,17 +1762,13 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63,0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,0x6f, 0x6e, 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70,- 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xa9, 0x02, 0x0a, 0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xe9, 0x01, 0x0a, 0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x06, 0x61, 0x63,0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74,0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e,0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,- 0x3e, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65,- 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69,0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f,@@ -2013,8 +2000,8 @@ var file_v1_org_policy_service_proto_goTypes = []any{nil, // 24: bytebase.v1.TagPolicy.TagsEntry(*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask(Engine)(0), // 26: bytebase.v1.Engine- (MaskingLevel)(0), // 27: bytebase.v1.MaskingLevel- (*expr.Expr)(nil), // 28: google.type.Expr+ (*expr.Expr)(nil), // 27: google.type.Expr+ (MaskingLevel)(0), // 28: bytebase.v1.MaskingLevel(*emptypb.Empty)(nil), // 29: google.protobuf.Empty}var file_v1_org_policy_service_proto_depIdxs = []int32{@@ -2042,25 +2029,24 @@ var file_v1_org_policy_service_proto_depIdxs = []int32{24, // 21: bytebase.v1.TagPolicy.tags:type_name -> bytebase.v1.TagPolicy.TagsEntry4, // 22: bytebase.v1.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.v1.DataSourceQueryPolicy.Restriction3, // 23: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- 27, // 24: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel- 28, // 25: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 28, // 26: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 27, // 27: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel- 8, // 28: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest- 9, // 29: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest- 5, // 30: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest- 6, // 31: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest- 7, // 32: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest- 11, // 33: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy- 10, // 34: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse- 11, // 35: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy- 11, // 36: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy- 29, // 37: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty- 33, // [33:38] is the sub-list for method output_type- 28, // [28:33] is the sub-list for method input_type- 28, // [28:28] is the sub-list for extension type_name- 28, // [28:28] is the sub-list for extension extendee- 0, // [0:28] is the sub-list for field type_name+ 27, // 24: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 27, // 25: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 28, // 26: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel+ 8, // 27: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest+ 9, // 28: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest+ 5, // 29: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest+ 6, // 30: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest+ 7, // 31: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest+ 11, // 32: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy+ 10, // 33: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse+ 11, // 34: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy+ 11, // 35: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy+ 29, // 36: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty+ 32, // [32:37] is the sub-list for method output_type+ 27, // [27:32] is the sub-list for method input_type+ 27, // [27:27] is the sub-list for extension type_name+ 27, // [27:27] is the sub-list for extension extendee+ 0, // [0:27] is the sub-list for field type_name}func init() { file_v1_org_policy_service_proto_init() }diff --git a/proto/store/policy.proto b/proto/store/policy.protoindex f05c33e925..219f26ca51 100644--- a/proto/store/policy.proto+++ b/proto/store/policy.proto@@ -40,9 +40,6 @@ message MaskingExceptionPolicy {// action is the action that the user can access sensitive data.Action action = 1;- // Level is the masking level that the user can access sensitive data.- MaskingLevel masking_level = 2;-// Member is the principal who bind to this exception policy instance.//// Format: users/{userUID} or groups/{group email}diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex e65fcf9366..d5db673c0b 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -324,9 +324,6 @@ message MaskingExceptionPolicy {// action is the action that the user can access sensitive data.Action action = 1;- // Level is the masking level that the user can access sensitive data.- MaskingLevel masking_level = 2;-// Member is the principal who bind to this exception policy instance.//// - `user:{email}`: An email address that represents a specific Bytebase account. For example, `[email protected]`.