mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
feat: restrict smtp sender address (#3637)
* fix: check if sender address is custom domain * fix: check if sender address is custom domain * fix: check if sender address is custom domain Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -3444,6 +3444,7 @@ message GetDomainPolicyResponse {
|
||||
message UpdateDomainPolicyRequest {
|
||||
bool user_login_must_be_domain = 1;
|
||||
bool validate_org_domains = 2;
|
||||
bool smtp_sender_address_matches_instance_domain = 3;
|
||||
}
|
||||
|
||||
message UpdateDomainPolicyResponse {
|
||||
@@ -3497,6 +3498,11 @@ message AddCustomDomainPolicyRequest {
|
||||
description: "defines if organisation domains should be validated org count as validated automatically"
|
||||
}
|
||||
];
|
||||
bool smtp_sender_address_matches_instance_domain = 4 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if the smtp sender address domain should match an existing domain on the instance"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message AddCustomDomainPolicyResponse {
|
||||
@@ -3528,6 +3534,11 @@ message UpdateCustomDomainPolicyRequest {
|
||||
description: "defines if organisation domains should be validated org count as validated automatically"
|
||||
}
|
||||
];
|
||||
bool smtp_sender_address_matches_instance_domain = 4 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if the smtp sender address domain should match an existing domain on the instance"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message UpdateCustomDomainPolicyResponse {
|
||||
|
@@ -40,6 +40,12 @@ message DomainPolicy {
|
||||
description: "defines if organisation domains should be validated org count as validated automatically"
|
||||
}
|
||||
];
|
||||
bool smtp_sender_address_matches_instance_domain = 5 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if the smtp sender address domain should match an existing domain on the instance"
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
message LabelPolicy {
|
||||
|
Reference in New Issue
Block a user