The documentation here shows that, the config server can be configured to use vault as its backend, by simply setting the property below, in application.properties
spring.profiles.active=vault
Even after doing so, when a Embedded config server starts up, it expects a Git repository to be configured as below:
spring.cloud.config.server.git.uri=repo_url
It fails with the below exception, without the git repo property set.
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'environmentRepository' defined in class org.springframework.cloud.config.
server.config.
EnvironmentRepositoryConfiguration$GitRepositoryConfiguration:
Invocation of init method failed;
nested exception is java.lang.IllegalStateException:
You need to configure a uri for the git repository
I am not sure how to get the config server look up the vault server running at localhost:8200
.