spring-cloud-vault icon indicating copy to clipboard operation
spring-cloud-vault copied to clipboard

spring.cloud.vault.kv.profiles is always ignored

Open benba opened this issue 4 years ago • 0 comments

Describe the bug spring.cloud.vault.kv.profiles is always overridden by spring.profiles.active (even if application profile is not defined).

From the documentation it looks like spring.cloud.vault.kv.profiles should always supersede spring.profiles.active (like spring.cloud.vault.kv.application-name over spring.application.name)

It seems to be linked to this code where setProfiles is called with the active profile no matter of the previously spring.cloud.vault.kv.profiles binded value.

Sample An application with that config will reproduce the issue:

spring.profiles.active=app-profile
spring.cloud.vault.kv.profiles=kv-profile

benba avatar Jan 19 '22 15:01 benba