How can I connect both Hashicorp Vault and Git repo to Spring Cloud Config Server and pull the properties simultaneously from both repos together and provide to the Spring Config Client?
I want to keep my external configurations in Git repo and keep my secrets in Vault. And both should be integrated with Config Server.
I have tried the configuration below, but it gives me the error mentioned at the bottom.
Configuration:
spring.cloud.config.server.composite[0].type=vault
spring.cloud.config.server.composite[0].vault.host:localhost
spring.cloud.config.server.composite[0].vault.port:8200
.....
spring.cloud.config.server.composite[1].type=git
spring.cloud.config.server.composite[1].git.uri:https://github.com/<username>/<repo.git>
spring.cloud.config.server.composite[1].git.username:<username>
spring.cloud.config.server.composite[1].git.password:<password>
.....
Error:
Invalid config server configuration.
Action: If you are using the git profile, you need to set a Git URI in your configuration.