spring-cloud / spring-cloud-vault

Configuration Integration with HashiCorp Vault
http://cloud.spring.io/spring-cloud-vault/
Apache License 2.0
274 stars 152 forks source link

Application name considers spring.application-name instead of spring.application.name #566

Closed fkohantorabi closed 3 years ago

fkohantorabi commented 3 years ago

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.