Skip to content

Commit 143cca5

Browse files
cityofshipsmarkgoddard
authored andcommitted
[Security] Add log4j vulnerability mitigation in Elasticsearch
Change-Id: I2d4a4fab35771723be82a1c8b98dbe4cc3164f58 (cherry picked from commit ecbd96b)
1 parent 8c63d93 commit 143cca5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ansible/roles/elasticsearch/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ elasticsearch_services:
3333
####################
3434
elasticsearch_cluster_name: "kolla_logging"
3535
es_heap_size: "1g"
36-
es_java_opts: "{% if es_heap_size %}-Xms{{ es_heap_size }} -Xmx{{ es_heap_size }}{%endif%}"
36+
es_java_opts: "{% if es_heap_size %}-Xms{{ es_heap_size }} -Xmx{{ es_heap_size }}{%endif%} -Dlog4j2.formatMsgNoLookups=true"
3737

3838
#######################
3939
# Elasticsearch Curator
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
security:
3+
- |
4+
Adds mitigation for the Apache Log4j2 Remote Code Execution (RCE)
5+
Vulnerability in Elasticsearch - CVE-2021-44228.

0 commit comments

Comments
 (0)