As per the security advisory,
For portal, the solr container needs to be disabled to mitigate the Log4j vulnerability.
The instruction is to make the following script change in portal.sh in function single from:
cat "$path_yml" | sed '/solr/,/tenant-provisioner/c\ \ tenant-provisioner:',
But the portal.sh script on portal 4.2 is different, see the screenshot below,
Release : 4.2
Component : API PORTAL
Add following line before YML=$(cat "$path_yml") ,
sed -i '/solr/,/tenant-provisioner/c\ \ tenant-provisioner:' "$path_yml"