security: patch log4j remote code execution vulnerability (#1178)

This commit is contained in:
Pascal Sthamer 2021-12-10 14:52:19 +01:00 committed by GitHub
parent 529d92fa63
commit 0718a62007
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,9 @@ if [ -n "$JVM_DD_OPTS" ]; then
done
fi
# Patch Log4j remote code execution vulnerability
JVM_OPTS="-Dlog4j2.formatMsgNoLookups=true ${JVM_OPTS}"
if isTrue ${ENABLE_JMX}; then
: ${JMX_PORT:=7091}
JVM_OPTS="${JVM_OPTS}