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: update masking exemption member format to match IAM policy (#18491)
Danny Xu621ab309c8be
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yamlindex eed9a8cd47..33ae7c346a 100644--- a/backend/api/mcp/gen/openapi.yaml+++ b/backend/api/mcp/gen/openapi.yaml@@ -12339,9 +12339,9 @@ components:type: stringtitle: membersdescription: |-- Members who bind to this exemption.-- Format: users/{email} or groups/{group email}+ Specifies the principals who are exempt from masking.+ For users, the member should be: user:{email}+ For groups, the member should be: group:{email}condition:title: conditiondescription: |-diff --git a/backend/generated-go/v1/org_policy_service.pb.go b/backend/generated-go/v1/org_policy_service.pb.goindex 7a39ebb43a..f966b49ae5 100644--- a/backend/generated-go/v1/org_policy_service.pb.go+++ b/backend/generated-go/v1/org_policy_service.pb.go@@ -1089,9 +1089,9 @@ func (x *DataSourceQueryPolicy) GetDisallowDml() bool {type MaskingExemptionPolicy_Exemption struct {state protoimpl.MessageState `protogen:"open.v1"`- // Members who bind to this exemption.- //- // Format: users/{email} or groups/{group email}+ // Specifies the principals who are exempt from masking.+ // For users, the member should be: user:{email}+ // For groups, the member should be: group:{email}Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`// The condition that is associated with this exception policy instance.// The syntax and semantics of CEL are documented at https://github.com/google/cel-specdiff --git a/frontend/src/components/Member/MembersBindingSelect.vue b/frontend/src/components/Member/MembersBindingSelect.vueindex 5db7c40bc9..1b53266a39 100644--- a/frontend/src/components/Member/MembersBindingSelect.vue+++ b/frontend/src/components/Member/MembersBindingSelect.vue@@ -89,7 +89,7 @@ type MemberType = "USERS" | "GROUPS";const props = withDefaults(defineProps<{- // member binding list, for users, should be user:{email}, for groups, shoud be groups:{email}+ // member binding list, for users, should be user:{email}, for groups, should be group:{email}// We don't support mixed data.value: string[];required: boolean;diff --git a/frontend/src/types/proto-es/v1/org_policy_service_pb.d.ts b/frontend/src/types/proto-es/v1/org_policy_service_pb.d.tsindex 8884e002a6..e0e900f6b3 100644--- a/frontend/src/types/proto-es/v1/org_policy_service_pb.d.ts+++ b/frontend/src/types/proto-es/v1/org_policy_service_pb.d.ts@@ -375,9 +375,9 @@ export declare const MaskingExemptionPolicySchema: GenMessage<MaskingExemptionPo*/export declare type MaskingExemptionPolicy_Exemption = Message<"bytebase.v1.MaskingExemptionPolicy.Exemption"> & {/**- * Members who bind to this exemption.- *- * Format: users/{email} or groups/{group email}+ * Specifies the principals who are exempt from masking.+ * For users, the member should be: user:{email}+ * For groups, the member should be: group:{email}** @generated from field: repeated string members = 1;*/diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex ec29aa68a8..1b3165e43e 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -11539,9 +11539,9 @@ components:items:type: stringdescription: |-- Members who bind to this exemption.-- Format: users/{email} or groups/{group email}+ Specifies the principals who are exempt from masking.+ For users, the member should be: user:{email}+ For groups, the member should be: group:{email}condition:allOf:- $ref: '#/components/schemas/Expr'diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 3406f547ef..9699aa6829 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -6522,9 +6522,7 @@ MaskingExemptionPolicy is the allowlist of users who can access sensitive data.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| members | [string](#string) | repeated | Members who bind to this exemption.--Format: users/{email} or groups/{group email} |+| members | [string](#string) | repeated | Specifies the principals who are exempt from masking. For users, the member should be: user:{email} For groups, the member should be: group:{email} || condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this exception policy instance. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec If the condition is empty, means the user can access all databases without expiration.Support variables: resource.instance_id: the instance resource id. Only support "==" operation. resource.database_name: the database name. Only support "==" operation. resource.schema_name: the schema name. Only support "==" operation. resource.table_name: the table name. Only support "==" operation. resource.column_name: the column name. Only support "==" operation. request.time: the expiration. Only support "<" operation in `request.time < timestamp("{ISO datetime string format}")` All variables should join with "&&" condition.diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 5032c512ba..7f80f32bd9 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -18442,9 +18442,9 @@ Format: {resource type}/{resource id} </p></td><td>members</td><td><a href="#string">string</a></td><td>repeated</td>- <td><p>Members who bind to this exemption.--Format: users/{email} or groups/{group email} </p></td>+ <td><p>Specifies the principals who are exempt from masking.+For users, the member should be: user:{email}+For groups, the member should be: group:{email} </p></td></tr><tr>diff --git a/proto/v1/v1/org_policy_service.proto b/proto/v1/v1/org_policy_service.protoindex 0f2b1f2047..06f0db930b 100644--- a/proto/v1/v1/org_policy_service.proto+++ b/proto/v1/v1/org_policy_service.proto@@ -307,9 +307,9 @@ message QueryDataPolicy {// MaskingExemptionPolicy is the allowlist of users who can access sensitive data.message MaskingExemptionPolicy {message Exemption {- // Members who bind to this exemption.- //- // Format: users/{email} or groups/{group email}+ // Specifies the principals who are exempt from masking.+ // For users, the member should be: user:{email}+ // For groups, the member should be: group:{email}repeated string members = 1;// The condition that is associated with this exception policy instance.