I'm running Tomcat through IntelliJ. My app property file has properties that are filled up by an ENV variable (such as credentials)
DB_PASSWORD=${DB_PASSWORD}
I don't store my credentials on git and these credentials are fetch at run time from a vault. So manually hardcoding these credentials in IntelliJ somewhere is a no go.
Is there a way to pass ENV vars to IntelliJ? Or have IntelliJ load a var file prior starting tomcat ? Or have IntelliJ read the ENV vars of the host (OSX shell in this case)?