Repository navigation
Commit 778389d
authored
ssi_all: use triple-brace templating (elastic#11284)
The mustache templating system used by ingest pipelines has two levels of
escaping available, not escaped (triple stache) and HTML escaped
(double stache) — see man mustache[1] under "tag types: variables". This can
lead to data corruption, particularly in cases where an operating system has
chosen to use a character requiring escaping in its path syntax.
The cloudflare package is omitted from this set of changes due to ci
difficulties with its system tests.
[1]http://mustache.github.io/mustache.5.html
[git-generate]
for f in $(
(
for p in $(
yq 'select(.owner.github == "elastic/security-service-integrations")|.name' packages/**/manifest.yml \
| grep -v -- '---'
); do
rg -l -g '*.yml' ": ('\{\{[^{][ .a-zA-Z0-9_]*[^}]}}'|\"\{\{[^{][ .a-zA-Z0-9_]*[^}]}}\")" packages/$p
done
)|grep -v "cloudflare"|grep "elasticsearch/ingest_pipeline"|sort|uniq
); do
sed -i -r "s/: (['\"])\{\{([^{][ .a-zA-Z0-9_]*[^}])}}['\"]/: \1{{{\2}}}\1/g" $f
done
for p in $(git diff --name-only HEAD~1|cut -d/ -f1,2|sort|uniq); do
(
cd $p
elastic-package test pipeline -g
elastic-package changelog add \
--description "Use triple-brace Mustache templating when referencing variables in ingest pipelines." \
--type bugfix \
--next patch \
--link elastic#11284
)>/dev/null 2>&1
done1 parent 80d8260 commit 778389d
222 files changed
Lines changed: 696 additions & 435 deletions
File tree
- packages
- 1password
- data_stream
- item_usages/elasticsearch/ingest_pipeline
- signin_attempts/elasticsearch/ingest_pipeline
- akamai
- data_stream/siem/elasticsearch/ingest_pipeline
- atlassian_bitbucket
- data_stream/audit/elasticsearch/ingest_pipeline
- atlassian_confluence
- data_stream/audit/elasticsearch/ingest_pipeline
- atlassian_jira
- data_stream/audit/elasticsearch/ingest_pipeline
- azure_frontdoor
- data_stream
- access/elasticsearch/ingest_pipeline
- waf/elasticsearch/ingest_pipeline
- barracuda
- data_stream/waf/elasticsearch/ingest_pipeline
- bitdefender
- data_stream/push_notifications/elasticsearch/ingest_pipeline
- carbonblack_edr
- data_stream/log/elasticsearch/ingest_pipeline
- cisco_secure_endpoint
- data_stream/event/elasticsearch/ingest_pipeline
- cisco_umbrella
- data_stream/log/elasticsearch/ingest_pipeline
- cribl
- data_stream/logs/elasticsearch/ingest_pipeline
- crowdstrike
- data_stream/falcon/elasticsearch/ingest_pipeline
- cyberark_pta
- data_stream/events/elasticsearch/ingest_pipeline
- cylance
- data_stream/protect/elasticsearch/ingest_pipeline
- f5
- data_stream
- bigipafm/elasticsearch/ingest_pipeline
- bigipapm/elasticsearch/ingest_pipeline
- falco
- data_stream/alerts
- _dev/test/pipeline
- elasticsearch/ingest_pipeline
- fireeye
- data_stream/nx/elasticsearch/ingest_pipeline
- forgerock
- data_stream
- am_access/elasticsearch/ingest_pipeline
- am_activity/elasticsearch/ingest_pipeline
- am_authentication/elasticsearch/ingest_pipeline
- am_config/elasticsearch/ingest_pipeline
- am_core/elasticsearch/ingest_pipeline
- idm_access/elasticsearch/ingest_pipeline
- idm_activity/elasticsearch/ingest_pipeline
- idm_authentication/elasticsearch/ingest_pipeline
- idm_config/elasticsearch/ingest_pipeline
- idm_core/elasticsearch/ingest_pipeline
- idm_sync/elasticsearch/ingest_pipeline
- github
- data_stream
- audit/elasticsearch/ingest_pipeline
- code_scanning/elasticsearch/ingest_pipeline
- issues/elasticsearch/ingest_pipeline
- secret_scanning/elasticsearch/ingest_pipeline
- gitlab
- data_stream
- application/elasticsearch/ingest_pipeline
- audit/elasticsearch/ingest_pipeline
- auth/elasticsearch/ingest_pipeline
- google_workspace
- data_stream
- admin/elasticsearch/ingest_pipeline
- drive/elasticsearch/ingest_pipeline
- groups/elasticsearch/ingest_pipeline
- login/elasticsearch/ingest_pipeline
- saml/elasticsearch/ingest_pipeline
- user_accounts/elasticsearch/ingest_pipeline
- infoblox_nios
- data_stream/log/elasticsearch/ingest_pipeline
- jamf_protect
- data_stream
- alerts/elasticsearch/ingest_pipeline
- telemetry_legacy/elasticsearch/ingest_pipeline
- telemetry/elasticsearch/ingest_pipeline
- web_threat_events/elasticsearch/ingest_pipeline
- web_traffic_events/elasticsearch/ingest_pipeline
- jumpcloud
- data_stream/events/elasticsearch/ingest_pipeline
- keycloak
- data_stream/log
- _dev/test/pipeline
- elasticsearch/ingest_pipeline
- lyve_cloud
- data_stream/audit/elasticsearch/ingest_pipeline
- mattermost
- data_stream/audit/elasticsearch/ingest_pipeline
- menlo
- data_stream
- dlp/elasticsearch/ingest_pipeline
- web/elasticsearch/ingest_pipeline
- microsoft_defender_endpoint
- data_stream/log/elasticsearch/ingest_pipeline
- mimecast
- data_stream
- audit_events/elasticsearch/ingest_pipeline
- dlp_logs/elasticsearch/ingest_pipeline
- siem_logs/elasticsearch/ingest_pipeline
- threat_intel_malware_customer/elasticsearch/ingest_pipeline
- threat_intel_malware_grid/elasticsearch/ingest_pipeline
- ttp_ap_logs/elasticsearch/ingest_pipeline
- ttp_ip_logs/elasticsearch/ingest_pipeline
- ttp_url_logs/elasticsearch/ingest_pipeline
- netskope
- data_stream
- alerts
- _dev/test/pipeline
- elasticsearch/ingest_pipeline
- events
- _dev/test/pipeline
- elasticsearch/ingest_pipeline
- o365
- data_stream/audit/elasticsearch/ingest_pipeline
- okta
- data_stream/system/elasticsearch/ingest_pipeline
- pulse_connect_secure
- data_stream/log/elasticsearch/ingest_pipeline
- santa
- data_stream/log/elasticsearch/ingest_pipeline
- slack
- data_stream/audit/elasticsearch/ingest_pipeline
- snyk
- data_stream/vulnerabilities/elasticsearch/ingest_pipeline
- symantec_endpoint_security
- data_stream/event/elasticsearch/ingest_pipeline
- ti_abusech
- data_stream
- malwarebazaar/elasticsearch/ingest_pipeline
- url
- _dev/test/pipeline
- elasticsearch/ingest_pipeline
- ti_cif3
- data_stream/feed/elasticsearch/ingest_pipeline
- ti_custom
- data_stream/indicator
- _dev/test/pipeline
- elasticsearch/ingest_pipeline
- ti_cybersixgill
- data_stream/threat/elasticsearch/ingest_pipeline
- ti_eclecticiq
- data_stream/threat/elasticsearch/ingest_pipeline
- ti_eset
- data_stream
- apt/elasticsearch/ingest_pipeline
- botnet/elasticsearch/ingest_pipeline
- cc/elasticsearch/ingest_pipeline
- domains/elasticsearch/ingest_pipeline
- files/elasticsearch/ingest_pipeline
- ip/elasticsearch/ingest_pipeline
- url/elasticsearch/ingest_pipeline
- ti_maltiverse
- data_stream/indicator/elasticsearch/ingest_pipeline
- ti_misp
- data_stream
- threat_attributes/elasticsearch/ingest_pipeline
- threat/elasticsearch/ingest_pipeline
- tychon
- data_stream
- exposedservice/elasticsearch/ingest_pipeline
- host/elasticsearch/ingest_pipeline
- zeronetworks
- data_stream/audit/elasticsearch/ingest_pipeline
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
| 399 | + | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments