Skip to content

Conversation

lukewhiting
Copy link
Contributor

This PR introduces a new setting for Watcher that allows you to restrict sending of emails to addresses matching a specific pattern.

For example, if xpack.notification.email.recipient_allowlist is set to ['*[email protected]', '*@mydomain.com'] then Watcher emails sent via To, CC or BCC to the following addresses would be allowed:

But any e-mail with a recipient in this list would be blocked:

This new setting is mutually exclusive with the existing domain based allow list setting xpack.notification.email.account.domain_allowlist and will throw an error if both are set to a non default value.

Copy link
Contributor

Documentation preview:

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticsearchmachine elasticsearchmachine added Team:Data Management Meta label for data/management team Team:Docs Meta label for docs team labels Nov 12, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@lukewhiting lukewhiting force-pushed the email-address-pattern-allow branch from 3bdf71e to 7292283 Compare November 13, 2024 09:34
Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Luke!

Fix comment
@lukewhiting lukewhiting enabled auto-merge (squash) November 14, 2024 09:11
@lukewhiting lukewhiting added the auto-backport Automatically create backport pull requests when merged label Nov 14, 2024
@lukewhiting lukewhiting merged commit 2f26ec2 into elastic:main Nov 14, 2024
15 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

lukewhiting added a commit to lukewhiting/elasticsearch that referenced this pull request Nov 14, 2024
* New setting plus mutual exclusiveness validation

* New domain list checking

* Email service tests

* Documentation updates

* PR Changes

Fix comment
elasticsearchmachine pushed a commit that referenced this pull request Nov 14, 2024
)

* Introduce Email Address Allow Lists For Watcher (#116672)

* New setting plus mutual exclusiveness validation

* New domain list checking

* Email service tests

* Documentation updates

* PR Changes

Fix comment

* Backport missing Settings method for default value with validator
@lukewhiting lukewhiting deleted the email-address-pattern-allow branch November 18, 2024 09:13
salvatore-campagna pushed a commit to salvatore-campagna/elasticsearch that referenced this pull request Nov 18, 2024
* New setting plus mutual exclusiveness validation

* New domain list checking

* Email service tests

* Documentation updates

* PR Changes

Fix comment
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
* New setting plus mutual exclusiveness validation

* New domain list checking

* Email service tests

* Documentation updates

* PR Changes

Fix comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Data Management/Watcher >docs General docs changes >enhancement Team:Data Management Meta label for data/management team Team:Docs Meta label for docs team v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants