spring-cloud / spring-cloud-vault

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

Confusing documentation on how to configure databases #637

Open msvticket opened 2 years ago

msvticket commented 2 years ago

Describe the bug When upgrading to version 3.1.0 I noticed that the bootstrap.yaml file wasn't read anymore. I then moved the content to application.yaml and noted that the integration with vault started to work, but not the database config. Looking at the documentation didn't give me any insight in how this was supposed to be solved.

In the end I resorted to add a dependency to spring-cloud-starter-bootstrap and move back the config to bootstrap.yaml. This working.

mp911de commented 2 years ago

Have you seen the documentation about the Config Data API at https://docs.spring.io/spring-cloud-vault/docs/current/reference/html/#vault.configdata?

Through spring.config.import: vault:// you can mount Spring Cloud Vault configuration into Spring Boot like it was done previously with the Bootstrap context. The only difference is that all Vault config needs to reside in your application.yaml.

msvticket commented 2 years ago

Yes, I saw that and it is not at all helpful.