So we are deploying elasticsearch using docker file.
it is the same steps followed in the official docker file linked below.
We are trying to do a Version upgrade from 8.2.0 to 8.11.2
The problem is that the scans reveal that log4j-api and log4j-core packages are packaged in the image with version less than 2.15.0 (the infamous log4j vulnerability) coming in via this package https://github.com/elastic/apm-agent-java/blob/main/pom.xml#L128 (apm-agent-java)
Our company has a guideline of not allowing any log4j package less than 2.15.0 even if it has some workaround done to prevent the vulnerability from being exploited.
So question here,
Will removal of the apm-agent-java cause any errors during the runtime of the elasticsearch ?
The removal here means manually removing the elastic-apm-agent-1.43.0.jar jar file from /usr/share/elasticsearch/modules/apm/ path
Which Log4J vulnerability exactly do you mean? The file you link references Log4J 2.12.4 which was a security-fix release. Are you sure that it's vulnerable?
Modifying the package in any way is not supported. It may work, or it may only appear to work but silently lose some of your data.
To answer this question would take much more analysis than it deserves. If you modify the package in any way you're no longer using a supported or tested configuration, so all bets are off.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.