spring-cloud/spring-cloud-vault

Spring config import + config server

HelenLorenzo opened this issue · 0 comments

Describe the bug
When I take config from import configserver + vault, is not possible take the spring clouf vault configuration from the imported config server.

Sample
I have this configuration:
spring:
application:
name: app
profiles:
active:
- dev
config:
import:
- "optional:vault://kv/dev/apps/app"
- "optional:configserver:"

(Mandatory put spring.cloud.vault --> I dont know why)
spring.cloud:
vault:
host: vault-active-internal-sanes-seg-vault-pre.apps.ocp01.san.pre.weu1.azure.paas.cloudcenter.corp
port: 80
scheme: https
uri: https://vault-active-internal-sanes-seg-vault-pre.apps.ocp01.san.pre.weu1.azure.paas.cloudcenter.corp

 connection-timeout: 5000
 read-timeout: 15000   
 token: s.qUphJr9wlcs1oGxReFlKQyqY    

If, I have a different configuration in my configserver.yml from vault, this configuration is not taking into account