Skip to content

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

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.yaml
index eed9a8cd47..33ae7c346a 100644
--- a/backend/api/mcp/gen/openapi.yaml
+++ b/backend/api/mcp/gen/openapi.yaml
@@ -12339,9 +12339,9 @@ components:
type: string
title: members
description: |-
- 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: condition
description: |-
diff --git a/backend/generated-go/v1/org_policy_service.pb.go b/backend/generated-go/v1/org_policy_service.pb.go
index 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-spec
diff --git a/frontend/src/components/Member/MembersBindingSelect.vue b/frontend/src/components/Member/MembersBindingSelect.vue
index 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.ts
index 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.yaml
index ec29aa68a8..1b3165e43e 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -11539,9 +11539,9 @@ components:
items:
type: string
description: |-
- 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.md
index 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 &#34;==&#34; operation. resource.database_name: the database name. Only support &#34;==&#34; operation. resource.schema_name: the schema name. Only support &#34;==&#34; operation. resource.table_name: the table name. Only support &#34;==&#34; operation. resource.column_name: the column name. Only support &#34;==&#34; operation. request.time: the expiration. Only support &#34;&lt;&#34; operation in `request.time &lt; timestamp(&#34;{ISO datetime string format}&#34;)` All variables should join with &#34;&amp;&amp;&#34; condition.
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 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.proto
index 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.