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 d67778e6b88 Camel AWS Secrets Manager Automatic Context reloading: Docs
d67778e6b88 is described below
commit d67778e6b88d973628503edff35806943db4c942
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Sep 14 14:20:00 2022 +0200
Camel AWS Secrets Manager Automatic Context reloading: Docs
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../main/docs/aws-secrets-manager-component.adoc | 37 ++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git
a/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager-component.adoc
b/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager-component.adoc
index f2edb9ac825..e7e2bb99b5e 100644
---
a/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager-component.adoc
+++
b/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager-component.adoc
@@ -195,6 +195,43 @@ For the moment we are not considering the rotation
function, if any will be appl
The only requirement is adding the camel-aws-secrets-manager 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 AWS Secret Manager Property
Function).
+
+With Environment variables:
+
+[source,bash]
+----
+export $CAMEL_VAULT_AWS_USE_DEFAULT_CREDENTIALS_PROVIDER=accessKey
+export $CAMEL_VAULT_AWS_REGION=region
+----
+
+or as plain Camel main properties:
+
+[source,properties]
+----
+camel.vault.aws.useDefaultCredentialProvider = true
+camel.vault.aws.region = region
+----
+
+Or by specifying accessKey/SecretKey and region, instead of using the default
credentials provider chain.
+
+To enable the automatic refresh you'll need additional properties to set:
+
+[source,properties]
+----
+camel.vault.aws.refreshEnabled=true
+camel.vault.aws.refreshPeriod=60000
+camel.vault.aws.secrets=Secret
+camel.main.context-reload-enabled = true
+----
+
+where `camel.vault.aws.refreshEnabled` will enable the automatic context
reload, `camel.vault.aws.refreshPeriod` is the interval of time between two
different checks for update events and `camel.vault.aws.secrets` is a regex
representing the secrets we want to track for updates.
+
+Note that `camel.vault.aws.secrets` is not mandatory: if not specified the
task responsible for checking updates events will take into accounts or the
properties with an `aws:` prefix.
+
+
// component headers: START
include::partial$component-endpoint-headers.adoc[]
// component headers: END