am trying to get my microservices configuration from a config server connected to 2 sources : git and vault (for secrets). I have the config bellow: in the config-server:

server:
  port: 8888

spring:
  profiles:
    active: git, vault
  cloud:
    config:
      server:
        vault:
          port: 8200
          host: 127.0.0.1
          kvVersion: 2
        git:
          order: 2
          uri: git@gitlab.git

and in the client side in the bootstrap.yml:

spring:
  application:
    name: my-service-name

  cloud:
    config:
      uri: http://localhost:8888
      token: //token
      label: dev

But in my vault i have the path like this :

secret/cad
     |--my-service-name

When i make my secret directly in /secret/my-service-name i can access my secrets, but how can i configure acces to secrets in : /secret/cad/my-service-name

I use:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-dependencies</artifactId>
    <version>Finchley.SR2</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>

Thank you.

Comment From: spencergibb

Setting spring.cloud.config.server.vault.backed=secret/cad will work if all services have that. Also, Finchley and Greenwich are no longer supported. Hoxton is supported thru mid 2021, so I'd suggest upgrading to 2020.0

Comment From: spring-cloud-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-cloud-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.