I have a concern about putting configuration that consist of db password, server name, and other services settings of my app or service.
Right now, I put the config file on the same place with my codes (Git). This is risky because if someone get it, he / she can connect to my db or services. I am also using CI/CD development tool like Jenkins. Where I should put my config so when I am running my pipelines or auto deployment so my config file is ready ?
- Git, same place with my code
- Jenkins, creating file and put it inside everytime CI is running
- Hidden Drive, pull the config file by Jenkins command when deployment is running
- Any other ideas ?
Thank You