My Java web application needs access to certain passwords. I've configured the app to read these passwords from environment variables. When I deploy the app to tomcat these environment variables are stored in setenv.sh
file like this
export SOME_PWD="somvalue"
Is there a better way to do this so that they aren't stored in clear text? I would like to maintain setenv.sh
in my git repository to keep track of changes and easily do CI deploy and would hate to keep clear text passwords in my repository.