0

I am using spring boot 2.7.8

I am following this https://docs.spring.io/spring-cloud-vault/docs/current/reference/html/#client-side-usage and https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#_client_side_usage

I have a spring cloud config server too which hosts the externalized properties for my application. So my pom.xml has below

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-config</artifactId>
</dependency>

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-vault-config</artifactId>
</dependency>

I can point to the external spring cloud config server using the below in my properties file

spring.config.import=optional:configserver:http://myconfigserver.com

But as per https://docs.spring.io/spring-cloud-vault/docs/current/reference/html/#client-side-usage, I still have to define spring.cloud.vault.* in my application properties? How can I move spring.cloud.vault.* properties into my spring cloud config server so that all my properties are externalized. I want to avoid having some properties within the application and some externalized.

Please help to clarify if this is even possible?

Vishal
  • 549
  • 3
  • 13

0 Answers0