kibana/x-pack/plugins
Patrick Mueller 7873e3685b
Allow action types to perform their own mustache variable escaping in parameter templates (#83919)
resolves https://github.com/elastic/kibana/issues/79371
resolves https://github.com/elastic/kibana/issues/62928

In this PR, we allow action types to determine how to escape the
variables used in their parameters, when rendered as mustache
templates.  Prior to this, action parameters were recursively
rendered as mustache templates using the default mustache
templating, by the alerts library.  The default mustache
templating used html escaping.

Action types opt-in to the new capability via a new optional
method in the action type, `renderParameterTemplates()`.  If not
provided, the previous recursive rendering is done, but now with
no escaping at all.

For #62928, changed the mustache template rendering to be
replaced with the error message, if an error occurred,
so at least you can now see that an error occurred.  Useful
to diagnose problems with invalid mustache templates.
2020-12-14 20:41:13 -05:00
..
actions Allow action types to perform their own mustache variable escaping in parameter templates (#83919) 2020-12-14 20:41:13 -05:00
alerting_builtins
alerts Allow action types to perform their own mustache variable escaping in parameter templates (#83919) 2020-12-14 20:41:13 -05:00
apm Closes #79995 by adding new tab in transaction details to show related trace logs. (#85859) 2020-12-14 19:24:01 -05:00
audit_trail
beats_management test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
canvas Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00
case [Security Solution][Case] Sync cases with alerts (#84731) 2020-12-14 21:11:53 +02:00
cloud
code
console_extensions
cross_cluster_replication
dashboard_enhanced
dashboard_mode
data_enhanced [Search] Session SO polling (#84225) 2020-12-09 14:05:01 +02:00
discover_enhanced
drilldowns Row trigger 2 (#83167) 2020-12-14 13:28:23 +01:00
embeddable_enhanced
encrypted_saved_objects test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
enterprise_search test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
event_log Removed Alerting & Event Log deprecated fields that should not be using (#85652) 2020-12-14 17:05:58 -08:00
features
file_upload
fleet [Security_Solution][Endpoint] Register Custom tab into Fleet Endpoint Integration Detail (#85643) 2020-12-14 17:09:34 -05:00
global_search [GS] add tag and dashboard suggestion results (#85144) 2020-12-09 11:05:59 +01:00
global_search_bar [GS] adding tags UI to search results (#85084) 2020-12-10 11:16:21 -06:00
global_search_providers [GS] adding tags UI to search results (#85084) 2020-12-10 11:16:21 -06:00
graph test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
grokdebugger
index_lifecycle_management Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00
index_management Added hidden filter to data streams tab (#85028) 2020-12-14 16:54:06 +01:00
infra [Logs UI] Add helper hooks with search strategy request cancellation (#83906) 2020-12-11 11:25:45 +01:00
ingest_manager
ingest_pipelines Added accessibility test for ingest node pipelines (#84983) 2020-12-10 15:33:58 -05:00
lens test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
license_management Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00
licensing
lists [Security Solution] Fixes CIDR, float, long, integer, array, and text based issues when using value lists in exceptions (#85191) 2020-12-10 18:07:47 -07:00
logstash Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00
maps [Maps] Surface on prem EMS (#85729) 2020-12-14 18:44:41 -05:00
maps_legacy_licensing
ml test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
monitoring Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00
observability [APM] Fix Transaction duration distribution barchart clickarea (#84394) 2020-12-14 18:29:18 +01:00
painless_lab
remote_clusters Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00
reporting Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00
rollup Remove 'minute' frequency option from SLM policy form because ES won't allow a frequency faster than every 15 minutes. (#84854) 2020-12-09 09:14:57 -08:00
runtime_fields Add help text for runtime fields source. (#85204) 2020-12-08 14:51:47 -05:00
saved_objects_tagging [GS] adding tags UI to search results (#85084) 2020-12-10 11:16:21 -06:00
searchprofiler
security Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00
security_solution skip flaky suite (#85714) 2020-12-14 22:24:02 +00:00
snapshot_restore Remove 'minute' frequency option from SLM policy form because ES won't allow a frequency faster than every 15 minutes. (#84854) 2020-12-09 09:14:57 -08:00
spaces Update core usage stats collection (#85706) 2020-12-14 17:12:05 -05:00
stack_alerts Add test handling for alert instantiation (#85632) 2020-12-10 16:25:55 -07:00
task_manager test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
telemetry_collection_xpack
transform test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
translations [Maps] Surface on prem EMS (#85729) 2020-12-14 18:44:41 -05:00
triggers_actions_ui removed unnecessary field (#85792) 2020-12-14 17:30:49 +00:00
ui_actions_enhanced Row trigger 2 (#83167) 2020-12-14 13:28:23 +01:00
upgrade_assistant
uptime Fix outdated jest snapshot 2020-12-14 16:54:44 -07:00
vis_type_timeseries_enhanced
watcher
xpack_legacy