mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 02:32:46 +01:00
Strip JndiLookup.class from log4j-core jars, to match Elastic's mitigation approach
This commit is contained in:
@@ -131,6 +131,13 @@ esrolesdir:
|
||||
- group: 939
|
||||
- makedirs: True
|
||||
|
||||
eslibdir:
|
||||
file.directory:
|
||||
- name: /opt/so/conf/elasticsearch/lib
|
||||
- user: 930
|
||||
- group: 939
|
||||
- makedirs: True
|
||||
|
||||
esingestdynamicconf:
|
||||
file.recurse:
|
||||
- name: /opt/so/conf/elasticsearch/ingest
|
||||
@@ -179,6 +186,14 @@ es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }}:
|
||||
- group: 939
|
||||
{% endfor %}
|
||||
|
||||
eslibsync:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/elasticsearch/lib/log4j-core-2.11.1-patched.jar
|
||||
- source: salt://elasticsearch/lib/log4j-core-2.11.1-patched.jar
|
||||
- user: 930
|
||||
- group: 939
|
||||
- mode: 644
|
||||
|
||||
esroles:
|
||||
file.recurse:
|
||||
- source: salt://elasticsearch/roles/
|
||||
@@ -267,6 +282,7 @@ so-elasticsearch:
|
||||
- 0.0.0.0:9200:9200
|
||||
- 0.0.0.0:9300:9300
|
||||
- binds:
|
||||
- /opt/so/conf/elasticsearch/lib/log4j-core-2.11.1-patched.jar:/usr/share/elasticsearch/lib/log4j-core-2.11.1.jar:ro
|
||||
- /opt/so/conf/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
|
||||
- /opt/so/conf/elasticsearch/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
|
||||
- /nsm/elasticsearch:/usr/share/elasticsearch/data:rw
|
||||
|
||||
BIN
salt/elasticsearch/lib/log4j-core-2.11.1-patched.jar
Normal file
BIN
salt/elasticsearch/lib/log4j-core-2.11.1-patched.jar
Normal file
Binary file not shown.
Reference in New Issue
Block a user