You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/03/01 14:10:48 UTC
[camel] 05/14: CAMEL-17684 - Support ability to load properties from Vault/Secrets cloud services - GCP Secrets Manager
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
commit 91edb90903ad27211e70651c4642615e4658b342
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 1 13:33:58 2022 +0100
CAMEL-17684 - Support ability to load properties from Vault/Secrets cloud services - GCP Secrets Manager
---
.../src/main/java/org/apache/camel/main/BaseMainSupport.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
index e43c66d..959a3fa 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
@@ -1130,6 +1130,10 @@ public abstract class BaseMainSupport extends BaseService {
// TODO: add more vault providers here
target = target.aws();
}
+ if ("gcp".equalsIgnoreCase(name)) {
+ // TODO: add more vault providers here
+ target = target.gcp();
+ }
// configure all the properties on the vault at once (to ensure they are configured in right order)
Map<String, Object> config = PropertiesHelper.extractProperties(properties, name + ".");
setPropertiesOnTarget(camelContext, target, config, "camel.vault." + name + ".", failIfNotSet, true,