This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch CAMEL-21360-hcp in repository https://gitbox.apache.org/repos/asf/camel.git
commit 52cad9813a675b9c14d70cdbeb2751e524a9c343 Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Oct 17 13:14:20 2024 +0200 CAMEL-21360 - Camel Spring Boot: Vault early resolving properties documentation - Hashicorp Vault Signed-off-by: Andrea Cosentino <[email protected]> --- .../src/main/docs/hashicorp-vault-component.adoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/camel-hashicorp-vault/src/main/docs/hashicorp-vault-component.adoc b/components/camel-hashicorp-vault/src/main/docs/hashicorp-vault-component.adoc index 4a26193777f..7f7b182d041 100644 --- a/components/camel-hashicorp-vault/src/main/docs/hashicorp-vault-component.adoc +++ b/components/camel-hashicorp-vault/src/main/docs/hashicorp-vault-component.adoc @@ -185,3 +185,21 @@ This approach will return the username field of the database secret with version The only requirement is adding the camel-hashicorp-vault jar to your Camel application. include::spring-boot:partial$starter.adoc[] + +=== Using Hashicorp Vault Property Function in Spring Boot for Early resolving properties + +Hashicorp Vault Spring Boot component starter offers the ability to early resolve properties, so the end user could resolve properties directly in the application.properties before both Spring Boot runtime and Camel context will start. + +This could be accomplished in the following way. You should specified this property in your application.properties file: + +[source,bash] +---- +camel.component.hashicorp-vault.early-resolve-properties=true +---- + +This will enable the feature so you'll be able to resolved properties, in your application.properties file, like: + +[source,bash] +---- +foo = hashicorp:secret:database/password#string +----
