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 dce8d6b76f7 CAMEL-17686 - Support ability to load properties from 
Vault/Secrets cloud services - Azure Key Vault
dce8d6b76f7 is described below

commit dce8d6b76f76efaa6d8c05118cab2c36bf9acab8
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Apr 4 13:06:42 2022 +0200

    CAMEL-17686 - Support ability to load properties from Vault/Secrets cloud 
services - Azure Key Vault
---
 .../java/org/apache/camel/main/DefaultConfigurationConfigurer.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
 
b/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
index 6760214ec3d..5f4bb9e4a92 100644
--- 
a/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
+++ 
b/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
@@ -84,6 +84,7 @@ import 
org.apache.camel.support.jsse.GlobalSSLContextParametersSupplier;
 import org.apache.camel.support.startup.LoggingStartupStepRecorder;
 import org.apache.camel.util.ObjectHelper;
 import org.apache.camel.vault.AwsVaultConfiguration;
+import org.apache.camel.vault.AzureVaultConfiguration;
 import org.apache.camel.vault.GcpVaultConfiguration;
 import org.apache.camel.vault.VaultConfiguration;
 import org.slf4j.Logger;
@@ -556,6 +557,12 @@ public final class DefaultConfigurationConfigurer {
             vault.setGcpVaultConfiguration(gcp);
         }
 
+        AzureVaultConfiguration azure = getSingleBeanOfType(registry, 
AzureVaultConfiguration.class);
+        if (gcp != null) {
+            VaultConfiguration vault = camelContext.getVaultConfiguration();
+            vault.setAzureVaultConfiguration(azure);
+        }
+
         // set the default thread pool profile if defined
         initThreadPoolProfiles(registry, camelContext);
     }

Reply via email to