Skip to content

Commit b4b2fa7

Browse files
authored
[Security] Workaround for CVE-2021-44228 Log4J RCE when Log4J >= 2.10.0 (#186)
* [Security] Workaround for CVE-2021-44228 Log4J RCE when Log4J >= 2.10.0 - prevents the exploit by disabling message pattern lookups * Bump the chart version
1 parent a16c6bb commit b4b2fa7

6 files changed

+6
-6
lines changed

charts/pulsar/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ apiVersion: v1
2121
appVersion: "2.7.2"
2222
description: Apache Pulsar Helm chart for Kubernetes
2323
name: pulsar
24-
version: 2.7.5
24+
version: 2.7.6
2525
home: https://pulsar.apache.org
2626
sources:
2727
- https://github.com/apache/pulsar

charts/pulsar/templates/autorecovery-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ spec:
139139
- >
140140
bin/apply-config-from-env.py conf/bookkeeper.conf;
141141
{{- include "pulsar.autorecovery.zookeeper.tls.settings" . | nindent 10 }}
142-
exec bin/bookkeeper autorecovery
142+
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/bookkeeper autorecovery
143143
ports:
144144
- name: http
145145
containerPort: {{ .Values.autorecovery.ports.http }}

charts/pulsar/templates/bookkeeper-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ spec:
167167
- >
168168
bin/apply-config-from-env.py conf/bookkeeper.conf;
169169
{{- include "pulsar.bookkeeper.zookeeper.tls.settings" . | nindent 10 }}
170-
exec bin/pulsar bookie;
170+
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar bookie;
171171
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
172172
securityContext:
173173
readOnlyRootFilesystem: false

charts/pulsar/templates/broker-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ spec:
209209
bin/pulsar zookeeper-shell -server {{ template "pulsar.zookeeper.connect" . }} get {{ template "pulsar.broker.znode" . }};
210210
done;
211211
cat conf/pulsar_env.sh;
212-
exec bin/pulsar broker;
212+
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar broker;
213213
ports:
214214
# prometheus needs to access /metrics endpoint
215215
- name: http

charts/pulsar/templates/proxy-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ spec:
180180
- >
181181
bin/apply-config-from-env.py conf/proxy.conf &&
182182
echo "OK" > status &&
183-
exec bin/pulsar proxy
183+
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
184184
ports:
185185
# prometheus needs to access /metrics endpoint
186186
- name: http

charts/pulsar/templates/zookeeper-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ spec:
115115
bin/apply-config-from-env.py conf/zookeeper.conf;
116116
{{- include "pulsar.zookeeper.tls.settings" . | nindent 10 }}
117117
bin/generate-zookeeper-config.sh conf/zookeeper.conf;
118-
exec bin/pulsar zookeeper;
118+
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar zookeeper;
119119
ports:
120120
# prometheus needs to access /metrics endpoint
121121
- name: http

0 commit comments

Comments
 (0)