This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 63fa287441c CAMEL-21360 - Camel Spring Boot: Vault early resolving
properties documentation - Hashicorp Vault (#15992)
63fa287441c is described below
commit 63fa287441c6637d3b7e104c4504c80d6e5ccd5c
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Oct 17 14:12:50 2024 +0200
CAMEL-21360 - Camel Spring Boot: Vault early resolving properties
documentation - Hashicorp Vault (#15992)
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
+----