You can make a simple modification to your Tomcat startup environment to complete ShiftLeft integration. Make sure you've installed the ShiftLeft CLI on the Tomcat server, and that you have access to the
shiftleft.json file that was created when you ran sl analyze. The most straightforward integration is simply to customize
catalina.sh as follows:
Add a call to
sl update java-agent to ensure that the latest version of the ShiftLeft Java microagent library is present in
SHIFTLEFT_CONFIG=(complete path to the shiftleft.json file)
-javaagent flag to
JAVA_OPTS. Point the flag to the location of the current ShiftLeft microagent jarfile e.g.
Make sure you back up
catalina.sh before you proceed.