-
Notifications
You must be signed in to change notification settings - Fork 118
Description
Is your feature request related to a problem?
When configuring an alerting action to send a notification, you can include ctx.results in the message body template, which will interpolate the alerting monitor's results that triggered the alert in the message.
While this feature is very useful, there are some cases where it could be dangerous. If there is a chance that documents may contain sensitive information, then it may not be safe to send this information in an unencrypted email.
What solution would you like?
I would like a new setting for the plugin that allows restricting what user roles can include results in notification message templates. Then, at this point in the code, the alerting plugin whether the monitor roles allow results as template arguments and include/exclude them accordingly:
alerting/alerting/src/main/kotlin/org/opensearch/alerting/script/TriggerExecutionContext.kt
Line 34 in d9614ba
| "results" to results, |
What alternatives have you considered?
None
Do you have any additional context?
None