I want my email alerts to be more user-friendly.
In order to do so, I made some styled email templates (with mustache expressions) using css. Unfortunately i can't paste them here.
According to the Watcher HTML Sanitization Documentation, _style attributes are disabled in order to avoid XSS through CSS.
This is reasonable, but i want to find a way to send really neatly decorated emails to my clients. My concern is not about what tags and attributes are supported by email clients (i have control on this in my case), but how to send formatted and user friendly mails safely.
I am not really worried about XSS on client side, but mostly about XSS affecting the ELK environment.
Is it only a matter of allowing specific tags and attributes in a way that avoids XSS? or is there any built in solution in watcher for safly sending decorated mails?
We do not whitelist xpack.notification.email.html.sanitization.allow setting in Elastic Cloud hence it is illegal.
The reason is that we want to verify the ownership of the addresses that people send watches to. Having said that, your particular setting doesn't interfere with that as far as I can tell. We will discuss internally and decide if we want to allow setting this attribute for Cloud customers. Or if not then maybe we can whitelist it on your cluster.
@JbRichardet, a quick update: we've decided to whitelist these email sanitization settings, but it will take a few days to "do" this change and release it on all of our machines. In meantime, if you don't want to wait you can post the settings that you want to have applied here and list the cluster ids. I'll apply them and let you know and you won't be dependent on our release schedule
I've applied the change to your cluster, but it needs to create a new instance and replicate the data to it. This is needed for no downtime migration. I think it will take few more hours for the data to replicate. Stay tuned for updates!
The way it works is that they are sticky and will be there even if you make a change to your cluster. If you want them changed or removed please let us know on the cloud forum.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.