Closed douglasmsouza closed 2 years ago
That feature is available through org.springframework.cloud.vault.config.VaultConfigurer
as workaround. We might consider extending the way how to declare mounts, also in combination with #459.
See #488 which introduced a prefix for individual Vault locations that is prepended to property names when using the Config Data API. We do not plan on extending bootstrap support as the Bootstrap Context is deprecated.
Is your feature request related to a problem? Please describe.
I often have to load multiple secrets from vault which can contain repeated property names (e.g. host property). To distinguish one property from another, I usually create a configuration bean with @VaultPropertySource and propertyNamePrefix.
It would be great if i could make this configuration on bootstrap.properties, inside spring.cloud.vault section, like I can do on Quarkus.
Describe the solution you'd like
Here is an example of my current solution:
Here is an example of desired solution, based on Quarkus configuration:
where the propertyNamePrefix is any property inside secret-config-kv-path