spring-cloud-vault
spring-cloud-vault copied to clipboard
spring.cloud.vault.kv.profiles is always ignored
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