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 16634ca9595 Adding Documentation about Azure Key Vault Automatic Camel 
context reload on secret refresh
16634ca9595 is described below

commit 16634ca9595e39a5b7905dcc09ac647090aba122
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Sep 26 08:00:47 2022 +0200

    Adding Documentation about Azure Key Vault Automatic Camel context reload 
on secret refresh
---
 .../src/main/docs/azure-key-vault-component.adoc   | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git 
a/components/camel-azure/camel-azure-key-vault/src/main/docs/azure-key-vault-component.adoc
 
b/components/camel-azure/camel-azure-key-vault/src/main/docs/azure-key-vault-component.adoc
index d4cdb75ce55..03ffacef5bc 100644
--- 
a/components/camel-azure/camel-azure-key-vault/src/main/docs/azure-key-vault-component.adoc
+++ 
b/components/camel-azure/camel-azure-key-vault/src/main/docs/azure-key-vault-component.adoc
@@ -184,6 +184,52 @@ For the moment we are not considering the rotation 
function, if any will be appl
 
 The only requirement is adding the camel-azure-key-vault jar to your Camel 
application.
 
+=== Automatic Camel context reloading on Secret Refresh
+
+Being able to reload Camel context on a Secret Refresh, could be done by 
specifying the usual credentials (the same used for Azure Key Vault Property 
Function).
+
+With Environment variables:
+
+[source,bash]
+----
+export $CAMEL_VAULT_AZURE_TENANT_ID=tenantId
+export $CAMEL_VAULT_AZURE_CLIENT_ID=clientId
+export $CAMEL_VAULT_AZURE_CLIENT_SECRET=clientSecret
+export $CAMEL_VAULT_AZURE_VAULT_NAME=vaultName
+----
+
+or as plain Camel main properties:
+
+[source,properties]
+----
+camel.vault.azure.tenantId = accessKey
+camel.vault.azure.clientId = clientId
+camel.vault.azure.clientSecret = clientSecret
+camel.vault.azure.vaultName = vaultName
+----
+
+To enable the automatic refresh you'll need additional properties to set:
+
+[source,properties]
+----
+camel.vault.azure.refreshEnabled=true
+camel.vault.azure.refreshPeriod=60000
+camel.vault.azure.secrets=Secret
+camel.vault.azure.eventhubConnectionString=eventhub_conn_string
+camel.vault.azure.blobAccountName=blob_account_name
+camel.vault.azure.blobContainerName=blob_container_name
+camel.vault.azure.blobAccessKey=blob_access_key
+camel.main.context-reload-enabled = true
+----
+
+where `camel.vault.azure.refreshEnabled` will enable the automatic context 
reload, `camel.vault.azure.refreshPeriod` is the interval of time between two 
different checks for update events and `camel.vault.azure.secrets` is a regex 
representing the secrets we want to track for updates.
+
+where `camel.vault.azure.eventhubConnectionString` is the eventhub connection 
string to get notification from, `camel.vault.azure.blobAccountName`, 
`camel.vault.azure.blobContainerName` and `camel.vault.azure.blobAccessKey` are 
the Azure Storage Blob parameters for the checkpoint store needed by Azure 
Eventhub.
+
+Note that `camel.vault.azure.secrets` is not mandatory: if not specified the 
task responsible for checking updates events will take into accounts or the 
properties with an `azure:` prefix.
+
+The only requirement is adding the camel-azure-key-vault jar to your Camel 
application.
+
 // component headers: START
 include::partial$component-endpoint-headers.adoc[]
 // component headers: END

Reply via email to