Search code examples
springspring-bootspring-cloudspring-cloud-configspring-cloud-config-server

Spring Cloud config server security


I implemented Spring Cloud config server. How can I prevent the config server bootstrap.yml file from storing the GIT user name and password as clear text?


Solution

  • ok So this is working fine for me, the issue was my config server's bootstrap.yml need to connect to GIT repository as backend and GIT repo is secured with username and password but I can not pass the username and password in bootstrap.yml file.

    To solve this:

    Pass the credential as environmental variable and store these environment variable in terraform or any other secure location.