After updating to spring boot 2.4.2, Vault stopped working for me and after debugging I think the reason for it is that vault was only looking for secrets under {path}/application and no longer was searching for secrets under {path}/applicationName. I believe this might be because of the fact that the code in org.springframework.cloud.vault.config.VaultConfigDataLocationResolver#getKeyValueProperties is defaulting to spring.application-name property name instead of spring.application.name. I managed to solve my problem by setting spring.cloud.vault.application-name in the meantime.
After updating to spring boot 2.4.2, Vault stopped working for me and after debugging I think the reason for it is that vault was only looking for secrets under {path}/application and no longer was searching for secrets under {path}/applicationName. I believe this might be because of the fact that the code in
org.springframework.cloud.vault.config.VaultConfigDataLocationResolver#getKeyValueProperties
is defaulting tospring.application-name
property name instead ofspring.application.name
. I managed to solve my problem by settingspring.cloud.vault.application-name
in the meantime.