I'm currently working on a java project. I already built the JAR for the project, and this JAR uses some properties files that have credentials for third party services in them. So this program reads the configuration files from "src/main/resources". But I don't think this is the best way to bring it to production since the properties files have credentials.
My question is, what is the state of the art to deploy a JAR to production server that reads properties files that have credentials in them?
- Do I just put the properties files in "src/main/resources" like I did and it's enough? Is it safe enough?
- Or should I not actually push the properties files with credentials in production and there is a better way to do that?