Describe the bugspring.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:
Describe the bug
spring.cloud.vault.kv.profiles
is always overridden byspring.profiles.active
(even if application profile is not defined).From the documentation it looks like
spring.cloud.vault.kv.profiles
should always supersedespring.profiles.active
(likespring.cloud.vault.kv.application-name
overspring.application.name
)It seems to be linked to this code where
setProfiles
is called with the active profile no matter of the previouslyspring.cloud.vault.kv.profiles
binded value.Sample An application with that config will reproduce the issue: