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 2025/11/05 17:29:50 UTC
(camel) branch main updated: CAMEL-22655 - Create a Camel-Cyberark Conjur Vault component (#19818)
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 a33778e15bd1 CAMEL-22655 - Create a Camel-Cyberark Conjur Vault component (#19818)
a33778e15bd1 is described below
commit a33778e15bd108faad6ea8b2e2cbf6343df9a11c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 5 18:29:43 2025 +0100
CAMEL-22655 - Create a Camel-Cyberark Conjur Vault component (#19818)
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
bom/camel-bom/pom.xml | 5 +
catalog/camel-allcomponents/pom.xml | 5 +
.../org/apache/camel/catalog/components.properties | 1 +
.../camel/catalog/components/cyberark-vault.json | 55 +++
.../main/camel-main-configuration-metadata.json | 10 +
.../apache/camel/catalog/main/sensitive-keys.json | 1 +
components/camel-cyberark-vault/pom.xml | 68 ++++
.../vault/CyberArkVaultComponentConfigurer.java | 115 ++++++
.../vault/CyberArkVaultEndpointConfigurer.java | 99 +++++
.../vault/CyberArkVaultEndpointUriFactory.java | 86 +++++
.../component/cyberark/vault/cyberark-vault.json | 55 +++
.../services/org/apache/camel/component.properties | 7 +
.../org/apache/camel/component/cyberark-vault | 2 +
.../camel/configurer/cyberark-vault-component | 2 +
.../camel/configurer/cyberark-vault-endpoint | 2 +
.../org/apache/camel/properties-function/cyberark | 2 +
.../camel/urifactory/cyberark-vault-endpoint | 2 +
.../src/main/docs/cyberark-vault-component.adoc | 419 +++++++++++++++++++++
.../cyberark/vault/CyberArkVaultComponent.java | 82 ++++
.../cyberark/vault/CyberArkVaultConfiguration.java | 200 ++++++++++
.../cyberark/vault/CyberArkVaultConstants.java | 28 ++
.../cyberark/vault/CyberArkVaultEndpoint.java | 117 ++++++
.../cyberark/vault/CyberArkVaultProducer.java | 77 ++++
.../vault/CyberArkVaultPropertiesFunction.java | 282 ++++++++++++++
.../cyberark/vault/client/ConjurClient.java | 53 +++
.../cyberark/vault/client/ConjurClientFactory.java | 66 ++++
.../vault/client/impl/ConjurClientImpl.java | 162 ++++++++
.../CyberArkVaultMultipleSecretsIT.java | 229 +++++++++++
.../vault/integration/CyberArkVaultProducerIT.java | 187 +++++++++
.../CyberArkVaultPropertiesSourceIT.java | 282 ++++++++++++++
.../component/cyberark/vault/integration/README.md | 410 ++++++++++++++++++++
components/pom.xml | 3 +-
.../camel/vault/CyberArkVaultConfiguration.java | 143 +++++++
.../org/apache/camel/vault/VaultConfiguration.java | 19 +
core/camel-main/pom.xml | 2 +
.../main/AwsVaultConfigurationConfigurer.java | 6 +
.../AwsVaultConfigurationPropertiesConfigurer.java | 7 +
.../main/AzureVaultConfigurationConfigurer.java | 6 +
...zureVaultConfigurationPropertiesConfigurer.java | 7 +
...a => CyberArkVaultConfigurationConfigurer.java} | 71 ++--
...ArkVaultConfigurationPropertiesConfigurer.java} | 85 +++--
.../main/GcpVaultConfigurationConfigurer.java | 6 +
.../GcpVaultConfigurationPropertiesConfigurer.java | 7 +
.../HashicorpVaultConfigurationConfigurer.java | 6 +
...corpVaultConfigurationPropertiesConfigurer.java | 7 +
...SecretsManagerVaultConfigurationConfigurer.java | 6 +
...agerVaultConfigurationPropertiesConfigurer.java | 7 +
...netesConfigMapVaultConfigurationConfigurer.java | 6 +
...mapsVaultConfigurationPropertiesConfigurer.java | 7 +
.../KubernetesVaultConfigurationConfigurer.java | 6 +
...etesVaultConfigurationPropertiesConfigurer.java | 7 +
.../SpringCloudConfigConfigurationConfigurer.java | 6 +
...oudConfigConfigurationPropertiesConfigurer.java | 7 +
.../camel-main-configuration-metadata.json | 10 +
...camel.main.CyberArkVaultConfigurationProperties | 2 +
...g.apache.camel.vault.CyberArkVaultConfiguration | 2 +
.../org/apache/camel/main/components.properties | 1 +
core/camel-main/src/main/docs/main.adoc | 18 +
.../org/apache/camel/main/BaseMainSupport.java | 3 +
.../main/CyberArkVaultConfigurationProperties.java | 116 ++++++
.../camel/main/VaultConfigurationProperties.java | 12 +
.../java/org/apache/camel/main/MainVaultTest.java | 41 ++
.../java/org/apache/camel/util/SensitiveUtils.java | 2 +
.../modules/ROOT/examples/json/cyberark-vault.json | 1 +
docs/components/modules/ROOT/nav.adoc | 1 +
.../ROOT/pages/cyberark-vault-component.adoc | 1 +
docs/user-manual/modules/ROOT/pages/security.adoc | 157 ++++++++
.../component/ComponentsBuilderFactory.java | 13 +
.../dsl/CyberarkVaultComponentBuilderFactory.java | 307 +++++++++++++++
.../builder/endpoint/EndpointBuilderFactory.java | 1 +
.../camel/builder/endpoint/EndpointBuilders.java | 1 +
.../builder/endpoint/StaticEndpointBuilders.java | 40 ++
.../dsl/CyberArkVaultEndpointBuilderFactory.java | 334 ++++++++++++++++
.../camel-component-known-dependencies.properties | 1 +
parent/pom.xml | 5 +
.../maven/packaging/PrepareCamelMainMojo.java | 16 +
76 files changed, 4560 insertions(+), 63 deletions(-)
diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index f7d060ac4d0c..d8e3e853f70e 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -617,6 +617,11 @@
<artifactId>camel-cxf-transport</artifactId>
<version>4.17.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cyberark-vault</artifactId>
+ <version>4.17.0-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-dapr</artifactId>
diff --git a/catalog/camel-allcomponents/pom.xml b/catalog/camel-allcomponents/pom.xml
index 8dd523076233..57be2d8bf8f0 100644
--- a/catalog/camel-allcomponents/pom.xml
+++ b/catalog/camel-allcomponents/pom.xml
@@ -506,6 +506,11 @@
<artifactId>camel-cxf-transport</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cyberark-vault</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-dapr</artifactId>
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
index c8a91da88184..782b767f1ba3 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
@@ -75,6 +75,7 @@ cron
crypto
cxf
cxfrs
+cyberark-vault
dapr
dataformat
dataset
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cyberark-vault.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cyberark-vault.json
new file mode 100644
index 000000000000..35d20a8facf5
--- /dev/null
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cyberark-vault.json
@@ -0,0 +1,55 @@
+{
+ "component": {
+ "kind": "component",
+ "name": "cyberark-vault",
+ "title": "CyberArk Vault",
+ "description": "Retrieve secrets from CyberArk Conjur Vault.",
+ "deprecated": false,
+ "firstVersion": "4.17.0",
+ "label": "cloud,security",
+ "javaType": "org.apache.camel.component.cyberark.vault.CyberArkVaultComponent",
+ "supportLevel": "Preview",
+ "groupId": "org.apache.camel",
+ "artifactId": "camel-cyberark-vault",
+ "version": "4.17.0-SNAPSHOT",
+ "scheme": "cyberark-vault",
+ "extendsScheme": "",
+ "syntax": "cyberark-vault:label",
+ "async": false,
+ "api": false,
+ "consumerOnly": false,
+ "producerOnly": true,
+ "lenientProperties": false,
+ "browsable": false,
+ "remote": true
+ },
+ "componentProperties": {
+ "account": { "index": 0, "kind": "property", "displayName": "Account", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The CyberArk Conjur account name" },
+ "certificatePath": { "index": 1, "kind": "property", "displayName": "Certificate Path", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Path to the SSL certificate for verification" },
+ "configuration": { "index": 2, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" },
+ "conjurClient": { "index": 3, "kind": "property", "displayName": "Conjur Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.cyberark.vault.client.ConjurClient", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Reference to a ConjurClient instance in the registry" },
+ "lazyStartProducer": { "index": 4, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
+ "secretId": { "index": 5, "kind": "property", "displayName": "Secret Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The secret ID to retrieve from CyberArk Conjur" },
+ "url": { "index": 6, "kind": "property", "displayName": "Url", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The CyberArk Conjur instance URL" },
+ "verifySsl": { "index": 7, "kind": "property", "displayName": "Verify Ssl", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Whether to verify SSL certificates when connecting to CyberArk Conjur" },
+ "autowiredEnabled": { "index": 8, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...]
+ "apiKey": { "index": 9, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The API key for authentication with CyberArk Conjur" },
+ "authToken": { "index": 10, "kind": "property", "displayName": "Auth Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Pre-authenticated token to use for CyberArk Conjur" },
+ "password": { "index": 11, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The password for authentication with CyberArk Conjur" },
+ "username": { "index": 12, "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The username for authentication with CyberArk Conjur" }
+ },
+ "properties": {
+ "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Logical name" },
+ "account": { "index": 1, "kind": "parameter", "displayName": "Account", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The CyberArk Conjur account name" },
+ "certificatePath": { "index": 2, "kind": "parameter", "displayName": "Certificate Path", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Path to the SSL certificate for verification" },
+ "conjurClient": { "index": 3, "kind": "parameter", "displayName": "Conjur Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.cyberark.vault.client.ConjurClient", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Reference to a ConjurClient instance in the registry" },
+ "secretId": { "index": 4, "kind": "parameter", "displayName": "Secret Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The secret ID to retrieve from CyberArk Conjur" },
+ "url": { "index": 5, "kind": "parameter", "displayName": "Url", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The CyberArk Conjur instance URL" },
+ "verifySsl": { "index": 6, "kind": "parameter", "displayName": "Verify Ssl", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Whether to verify SSL certificates when connecting to CyberArk Conjur" },
+ "lazyStartProducer": { "index": 7, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...]
+ "apiKey": { "index": 8, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The API key for authentication with CyberArk Conjur" },
+ "authToken": { "index": 9, "kind": "parameter", "displayName": "Auth Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Pre-authenticated token to use for CyberArk Conjur" },
+ "password": { "index": 10, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The password for authentication with CyberArk Conjur" },
+ "username": { "index": 11, "kind": "parameter", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The username for authentication with CyberArk Conjur" }
+ }
+}
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/camel-main-configuration-metadata.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/camel-main-configuration-metadata.json
index fae5155bcac8..9da54a95bd7f 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/camel-main-configuration-metadata.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/camel-main-configuration-metadata.json
@@ -18,6 +18,7 @@
{ "name": "camel.vault.kubernetescm", "description": "Camel Kubernetes Configmaps Vault configurations", "sourceType": "org.apache.camel.vault.KubernetesConfigMapVaultConfiguration" },
{ "name": "camel.vault.hashicorp", "description": "Camel Hashicorp Vault configurations", "sourceType": "org.apache.camel.vault.HashicorpVaultConfiguration" },
{ "name": "camel.vault.ibm", "description": "Camel IBM Secrets Manager Vault configurations", "sourceType": "org.apache.camel.vault.IBMSecretsManagerVaultConfiguration" },
+ { "name": "camel.vault.cyberark", "description": "Camel CyberArk Conjur Vault configurations", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration" },
{ "name": "camel.opentelemetry", "description": "Camel OpenTelemetry configurations", "sourceType": "org.apache.camel.main.OtelConfigurationProperties" },
{ "name": "camel.opentelemetry2", "description": "Camel OpenTelemetry 2 configurations", "sourceType": "org.apache.camel.main.Otel2ConfigurationProperties" },
{ "name": "camel.telemetryDev", "description": "Camel Telemetry Dev configurations", "sourceType": "org.apache.camel.main.TelemetryDevConfigurationProperties" },
@@ -404,6 +405,15 @@
{ "name": "camel.vault.azure.secrets", "required": false, "description": "Specify the secret names (or pattern) to check for updates. Multiple secrets can be separated by comma.", "sourceType": "org.apache.camel.vault.AzureVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
{ "name": "camel.vault.azure.tenantId", "required": false, "description": "The Tenant Id for accessing Azure Key Vault", "sourceType": "org.apache.camel.vault.AzureVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": true },
{ "name": "camel.vault.azure.vaultName", "required": false, "description": "The vault Name in Azure Key Vault", "sourceType": "org.apache.camel.vault.AzureVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.account", "required": false, "description": "The CyberArk Conjur account name", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.apiKey", "required": false, "description": "The API key for authentication", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": true },
+ { "name": "camel.vault.cyberark.authToken", "required": false, "description": "Pre-authenticated token to use", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.certificatePath", "required": false, "description": "Path to the SSL certificate for verification", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.password", "required": false, "description": "The password for authentication", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": true },
+ { "name": "camel.vault.cyberark.secrets", "required": false, "description": "Specify the secret names (or pattern) to check for updates. Multiple secrets can be separated by comma.", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.url", "required": false, "description": "The CyberArk Conjur instance URL", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.username", "required": false, "description": "The username for authentication", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": true },
+ { "name": "camel.vault.cyberark.verifySsl", "required": false, "description": "Whether to verify SSL certificates", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "boolean", "javaType": "boolean", "defaultValue": false, "secret": false },
{ "name": "camel.vault.gcp.projectId", "required": false, "description": "The GCP Project ID", "sourceType": "org.apache.camel.vault.GcpVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
{ "name": "camel.vault.gcp.refreshEnabled", "required": false, "description": "Whether to automatically reload Camel upon secrets being updated in AWS.", "sourceType": "org.apache.camel.vault.GcpVaultConfiguration", "type": "boolean", "javaType": "boolean", "defaultValue": false, "secret": false },
{ "name": "camel.vault.gcp.refreshPeriod", "required": false, "description": "The period (millis) between checking Google for updated secrets.", "sourceType": "org.apache.camel.vault.GcpVaultConfiguration", "type": "integer", "javaType": "long", "defaultValue": 30000, "secret": false },
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/sensitive-keys.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/sensitive-keys.json
index 2c6f35f457ba..08314a8dc5d1 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/sensitive-keys.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/sensitive-keys.json
@@ -14,6 +14,7 @@
"authenticationtoken",
"authkey",
"authorizationtoken",
+ "authtoken",
"blobaccesskey",
"blobstoragesharedkeycredential",
"certresourcepassword",
diff --git a/components/camel-cyberark-vault/pom.xml b/components/camel-cyberark-vault/pom.xml
new file mode 100644
index 000000000000..bbbadc581a20
--- /dev/null
+++ b/components/camel-cyberark-vault/pom.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>components</artifactId>
+ <version>4.17.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-cyberark-vault</artifactId>
+ <packaging>jar</packaging>
+ <name>Camel :: CyberArk Vault</name>
+ <description>Camel CyberArk Conjur Vault support</description>
+
+ <properties>
+ <firstVersion>4.17.0</firstVersion>
+ <label>cloud,security</label>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-support</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ </dependency>
+
+ <!-- testing -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-test-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-junit-jupiter</artifactId>
+ <scope>test</scope>
+ <version>${mockito-version}</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultComponentConfigurer.java b/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultComponentConfigurer.java
new file mode 100644
index 000000000000..2152522a502b
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultComponentConfigurer.java
@@ -0,0 +1,115 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.cyberark.vault;
+
+import javax.annotation.processing.Generated;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
+@SuppressWarnings("unchecked")
+public class CyberArkVaultComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+ private org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration getOrCreateConfiguration(CyberArkVaultComponent target) {
+ if (target.getConfiguration() == null) {
+ target.setConfiguration(new org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration());
+ }
+ return target.getConfiguration();
+ }
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ CyberArkVaultComponent target = (CyberArkVaultComponent) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": getOrCreateConfiguration(target).setAccount(property(camelContext, java.lang.String.class, value)); return true;
+ case "apikey":
+ case "apiKey": getOrCreateConfiguration(target).setApiKey(property(camelContext, java.lang.String.class, value)); return true;
+ case "authtoken":
+ case "authToken": getOrCreateConfiguration(target).setAuthToken(property(camelContext, java.lang.String.class, value)); return true;
+ case "autowiredenabled":
+ case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
+ case "certificatepath":
+ case "certificatePath": getOrCreateConfiguration(target).setCertificatePath(property(camelContext, java.lang.String.class, value)); return true;
+ case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration.class, value)); return true;
+ case "conjurclient":
+ case "conjurClient": getOrCreateConfiguration(target).setConjurClient(property(camelContext, org.apache.camel.component.cyberark.vault.client.ConjurClient.class, value)); return true;
+ case "lazystartproducer":
+ case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
+ case "password": getOrCreateConfiguration(target).setPassword(property(camelContext, java.lang.String.class, value)); return true;
+ case "secretid":
+ case "secretId": getOrCreateConfiguration(target).setSecretId(property(camelContext, java.lang.String.class, value)); return true;
+ case "url": getOrCreateConfiguration(target).setUrl(property(camelContext, java.lang.String.class, value)); return true;
+ case "username": getOrCreateConfiguration(target).setUsername(property(camelContext, java.lang.String.class, value)); return true;
+ case "verifyssl":
+ case "verifySsl": getOrCreateConfiguration(target).setVerifySsl(property(camelContext, boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": return java.lang.String.class;
+ case "apikey":
+ case "apiKey": return java.lang.String.class;
+ case "authtoken":
+ case "authToken": return java.lang.String.class;
+ case "autowiredenabled":
+ case "autowiredEnabled": return boolean.class;
+ case "certificatepath":
+ case "certificatePath": return java.lang.String.class;
+ case "configuration": return org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration.class;
+ case "conjurclient":
+ case "conjurClient": return org.apache.camel.component.cyberark.vault.client.ConjurClient.class;
+ case "lazystartproducer":
+ case "lazyStartProducer": return boolean.class;
+ case "password": return java.lang.String.class;
+ case "secretid":
+ case "secretId": return java.lang.String.class;
+ case "url": return java.lang.String.class;
+ case "username": return java.lang.String.class;
+ case "verifyssl":
+ case "verifySsl": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ CyberArkVaultComponent target = (CyberArkVaultComponent) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": return getOrCreateConfiguration(target).getAccount();
+ case "apikey":
+ case "apiKey": return getOrCreateConfiguration(target).getApiKey();
+ case "authtoken":
+ case "authToken": return getOrCreateConfiguration(target).getAuthToken();
+ case "autowiredenabled":
+ case "autowiredEnabled": return target.isAutowiredEnabled();
+ case "certificatepath":
+ case "certificatePath": return getOrCreateConfiguration(target).getCertificatePath();
+ case "configuration": return target.getConfiguration();
+ case "conjurclient":
+ case "conjurClient": return getOrCreateConfiguration(target).getConjurClient();
+ case "lazystartproducer":
+ case "lazyStartProducer": return target.isLazyStartProducer();
+ case "password": return getOrCreateConfiguration(target).getPassword();
+ case "secretid":
+ case "secretId": return getOrCreateConfiguration(target).getSecretId();
+ case "url": return getOrCreateConfiguration(target).getUrl();
+ case "username": return getOrCreateConfiguration(target).getUsername();
+ case "verifyssl":
+ case "verifySsl": return getOrCreateConfiguration(target).isVerifySsl();
+ default: return null;
+ }
+ }
+}
+
diff --git a/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpointConfigurer.java b/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpointConfigurer.java
new file mode 100644
index 000000000000..4ac03c22b058
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpointConfigurer.java
@@ -0,0 +1,99 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.cyberark.vault;
+
+import javax.annotation.processing.Generated;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
+@SuppressWarnings("unchecked")
+public class CyberArkVaultEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ CyberArkVaultEndpoint target = (CyberArkVaultEndpoint) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": target.getConfiguration().setAccount(property(camelContext, java.lang.String.class, value)); return true;
+ case "apikey":
+ case "apiKey": target.getConfiguration().setApiKey(property(camelContext, java.lang.String.class, value)); return true;
+ case "authtoken":
+ case "authToken": target.getConfiguration().setAuthToken(property(camelContext, java.lang.String.class, value)); return true;
+ case "certificatepath":
+ case "certificatePath": target.getConfiguration().setCertificatePath(property(camelContext, java.lang.String.class, value)); return true;
+ case "conjurclient":
+ case "conjurClient": target.getConfiguration().setConjurClient(property(camelContext, org.apache.camel.component.cyberark.vault.client.ConjurClient.class, value)); return true;
+ case "lazystartproducer":
+ case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
+ case "password": target.getConfiguration().setPassword(property(camelContext, java.lang.String.class, value)); return true;
+ case "secretid":
+ case "secretId": target.getConfiguration().setSecretId(property(camelContext, java.lang.String.class, value)); return true;
+ case "url": target.getConfiguration().setUrl(property(camelContext, java.lang.String.class, value)); return true;
+ case "username": target.getConfiguration().setUsername(property(camelContext, java.lang.String.class, value)); return true;
+ case "verifyssl":
+ case "verifySsl": target.getConfiguration().setVerifySsl(property(camelContext, boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": return java.lang.String.class;
+ case "apikey":
+ case "apiKey": return java.lang.String.class;
+ case "authtoken":
+ case "authToken": return java.lang.String.class;
+ case "certificatepath":
+ case "certificatePath": return java.lang.String.class;
+ case "conjurclient":
+ case "conjurClient": return org.apache.camel.component.cyberark.vault.client.ConjurClient.class;
+ case "lazystartproducer":
+ case "lazyStartProducer": return boolean.class;
+ case "password": return java.lang.String.class;
+ case "secretid":
+ case "secretId": return java.lang.String.class;
+ case "url": return java.lang.String.class;
+ case "username": return java.lang.String.class;
+ case "verifyssl":
+ case "verifySsl": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ CyberArkVaultEndpoint target = (CyberArkVaultEndpoint) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": return target.getConfiguration().getAccount();
+ case "apikey":
+ case "apiKey": return target.getConfiguration().getApiKey();
+ case "authtoken":
+ case "authToken": return target.getConfiguration().getAuthToken();
+ case "certificatepath":
+ case "certificatePath": return target.getConfiguration().getCertificatePath();
+ case "conjurclient":
+ case "conjurClient": return target.getConfiguration().getConjurClient();
+ case "lazystartproducer":
+ case "lazyStartProducer": return target.isLazyStartProducer();
+ case "password": return target.getConfiguration().getPassword();
+ case "secretid":
+ case "secretId": return target.getConfiguration().getSecretId();
+ case "url": return target.getConfiguration().getUrl();
+ case "username": return target.getConfiguration().getUsername();
+ case "verifyssl":
+ case "verifySsl": return target.getConfiguration().isVerifySsl();
+ default: return null;
+ }
+ }
+}
+
diff --git a/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpointUriFactory.java b/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpointUriFactory.java
new file mode 100644
index 000000000000..1f2ba8d12ff3
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpointUriFactory.java
@@ -0,0 +1,86 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.cyberark.vault;
+
+import javax.annotation.processing.Generated;
+import java.net.URISyntaxException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.camel.spi.EndpointUriFactory;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.GenerateEndpointUriFactoryMojo")
+public class CyberArkVaultEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
+
+ private static final String BASE = ":label";
+
+ private static final Set<String> PROPERTY_NAMES;
+ private static final Set<String> SECRET_PROPERTY_NAMES;
+ private static final Map<String, String> MULTI_VALUE_PREFIXES;
+ static {
+ Set<String> props = new HashSet<>(12);
+ props.add("account");
+ props.add("apiKey");
+ props.add("authToken");
+ props.add("certificatePath");
+ props.add("conjurClient");
+ props.add("label");
+ props.add("lazyStartProducer");
+ props.add("password");
+ props.add("secretId");
+ props.add("url");
+ props.add("username");
+ props.add("verifySsl");
+ PROPERTY_NAMES = Collections.unmodifiableSet(props);
+ Set<String> secretProps = new HashSet<>(4);
+ secretProps.add("apiKey");
+ secretProps.add("authToken");
+ secretProps.add("password");
+ secretProps.add("username");
+ SECRET_PROPERTY_NAMES = Collections.unmodifiableSet(secretProps);
+ MULTI_VALUE_PREFIXES = Collections.emptyMap();
+ }
+
+ @Override
+ public boolean isEnabled(String scheme) {
+ return "cyberark-vault".equals(scheme);
+ }
+
+ @Override
+ public String buildUri(String scheme, Map<String, Object> properties, boolean encode) throws URISyntaxException {
+ String syntax = scheme + BASE;
+ String uri = syntax;
+
+ Map<String, Object> copy = new HashMap<>(properties);
+
+ uri = buildPathParameter(syntax, uri, "label", null, true, copy);
+ uri = buildQueryParameters(uri, copy, encode);
+ return uri;
+ }
+
+ @Override
+ public Set<String> propertyNames() {
+ return PROPERTY_NAMES;
+ }
+
+ @Override
+ public Set<String> secretPropertyNames() {
+ return SECRET_PROPERTY_NAMES;
+ }
+
+ @Override
+ public Map<String, String> multiValuePrefixes() {
+ return MULTI_VALUE_PREFIXES;
+ }
+
+ @Override
+ public boolean isLenientProperties() {
+ return false;
+ }
+}
+
diff --git a/components/camel-cyberark-vault/src/generated/resources/META-INF/org/apache/camel/component/cyberark/vault/cyberark-vault.json b/components/camel-cyberark-vault/src/generated/resources/META-INF/org/apache/camel/component/cyberark/vault/cyberark-vault.json
new file mode 100644
index 000000000000..35d20a8facf5
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/resources/META-INF/org/apache/camel/component/cyberark/vault/cyberark-vault.json
@@ -0,0 +1,55 @@
+{
+ "component": {
+ "kind": "component",
+ "name": "cyberark-vault",
+ "title": "CyberArk Vault",
+ "description": "Retrieve secrets from CyberArk Conjur Vault.",
+ "deprecated": false,
+ "firstVersion": "4.17.0",
+ "label": "cloud,security",
+ "javaType": "org.apache.camel.component.cyberark.vault.CyberArkVaultComponent",
+ "supportLevel": "Preview",
+ "groupId": "org.apache.camel",
+ "artifactId": "camel-cyberark-vault",
+ "version": "4.17.0-SNAPSHOT",
+ "scheme": "cyberark-vault",
+ "extendsScheme": "",
+ "syntax": "cyberark-vault:label",
+ "async": false,
+ "api": false,
+ "consumerOnly": false,
+ "producerOnly": true,
+ "lenientProperties": false,
+ "browsable": false,
+ "remote": true
+ },
+ "componentProperties": {
+ "account": { "index": 0, "kind": "property", "displayName": "Account", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The CyberArk Conjur account name" },
+ "certificatePath": { "index": 1, "kind": "property", "displayName": "Certificate Path", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Path to the SSL certificate for verification" },
+ "configuration": { "index": 2, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" },
+ "conjurClient": { "index": 3, "kind": "property", "displayName": "Conjur Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.cyberark.vault.client.ConjurClient", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Reference to a ConjurClient instance in the registry" },
+ "lazyStartProducer": { "index": 4, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
+ "secretId": { "index": 5, "kind": "property", "displayName": "Secret Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The secret ID to retrieve from CyberArk Conjur" },
+ "url": { "index": 6, "kind": "property", "displayName": "Url", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The CyberArk Conjur instance URL" },
+ "verifySsl": { "index": 7, "kind": "property", "displayName": "Verify Ssl", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Whether to verify SSL certificates when connecting to CyberArk Conjur" },
+ "autowiredEnabled": { "index": 8, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...]
+ "apiKey": { "index": 9, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The API key for authentication with CyberArk Conjur" },
+ "authToken": { "index": 10, "kind": "property", "displayName": "Auth Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Pre-authenticated token to use for CyberArk Conjur" },
+ "password": { "index": 11, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The password for authentication with CyberArk Conjur" },
+ "username": { "index": 12, "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The username for authentication with CyberArk Conjur" }
+ },
+ "properties": {
+ "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Logical name" },
+ "account": { "index": 1, "kind": "parameter", "displayName": "Account", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The CyberArk Conjur account name" },
+ "certificatePath": { "index": 2, "kind": "parameter", "displayName": "Certificate Path", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Path to the SSL certificate for verification" },
+ "conjurClient": { "index": 3, "kind": "parameter", "displayName": "Conjur Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.cyberark.vault.client.ConjurClient", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Reference to a ConjurClient instance in the registry" },
+ "secretId": { "index": 4, "kind": "parameter", "displayName": "Secret Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The secret ID to retrieve from CyberArk Conjur" },
+ "url": { "index": 5, "kind": "parameter", "displayName": "Url", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The CyberArk Conjur instance URL" },
+ "verifySsl": { "index": 6, "kind": "parameter", "displayName": "Verify Ssl", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Whether to verify SSL certificates when connecting to CyberArk Conjur" },
+ "lazyStartProducer": { "index": 7, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...]
+ "apiKey": { "index": 8, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The API key for authentication with CyberArk Conjur" },
+ "authToken": { "index": 9, "kind": "parameter", "displayName": "Auth Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "Pre-authenticated token to use for CyberArk Conjur" },
+ "password": { "index": 10, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The password for authentication with CyberArk Conjur" },
+ "username": { "index": 11, "kind": "parameter", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration", "configurationField": "configuration", "description": "The username for authentication with CyberArk Conjur" }
+ }
+}
diff --git a/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/component.properties b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/component.properties
new file mode 100644
index 000000000000..ac3cfe7128a8
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/component.properties
@@ -0,0 +1,7 @@
+# Generated by camel build tools - do NOT edit this file!
+components=cyberark-vault
+groupId=org.apache.camel
+artifactId=camel-cyberark-vault
+version=4.17.0-SNAPSHOT
+projectName=Camel :: CyberArk Vault
+projectDescription=Camel CyberArk Conjur Vault support
diff --git a/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/component/cyberark-vault b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/component/cyberark-vault
new file mode 100644
index 000000000000..f8c6ac50a11a
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/component/cyberark-vault
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.cyberark.vault.CyberArkVaultComponent
diff --git a/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/configurer/cyberark-vault-component b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/configurer/cyberark-vault-component
new file mode 100644
index 000000000000..56ee26661c59
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/configurer/cyberark-vault-component
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.cyberark.vault.CyberArkVaultComponentConfigurer
diff --git a/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/configurer/cyberark-vault-endpoint b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/configurer/cyberark-vault-endpoint
new file mode 100644
index 000000000000..7dc77161441e
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/configurer/cyberark-vault-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.cyberark.vault.CyberArkVaultEndpointConfigurer
diff --git a/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/properties-function/cyberark b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/properties-function/cyberark
new file mode 100644
index 000000000000..65296cced31e
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/properties-function/cyberark
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.cyberark.vault.CyberArkVaultPropertiesFunction
diff --git a/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/urifactory/cyberark-vault-endpoint b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/urifactory/cyberark-vault-endpoint
new file mode 100644
index 000000000000..f43ac55a0355
--- /dev/null
+++ b/components/camel-cyberark-vault/src/generated/resources/META-INF/services/org/apache/camel/urifactory/cyberark-vault-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.cyberark.vault.CyberArkVaultEndpointUriFactory
diff --git a/components/camel-cyberark-vault/src/main/docs/cyberark-vault-component.adoc b/components/camel-cyberark-vault/src/main/docs/cyberark-vault-component.adoc
new file mode 100644
index 000000000000..09452ec8a1b5
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/docs/cyberark-vault-component.adoc
@@ -0,0 +1,419 @@
+= CyberArk Vault Component
+:doctitle: CyberArk Vault
+:shortname: cyberark-vault
+:artifactid: camel-cyberark-vault
+:description: Retrieve secrets from CyberArk Conjur Vault.
+:since: 4.17
+:supportlevel: Preview
+:tabs-sync-option:
+:component-header: Only producer is supported
+//Manually maintained attributes
+:group: Security
+:camel-spring-boot-name: cyberark-vault
+
+*Since Camel {since}*
+
+*{component-header}*
+
+The CyberArk Vault component supports https://www.cyberark.com/products/conjur/[CyberArk Conjur] Vault service.
+
+Prerequisites
+
+You must have access to a CyberArk Conjur instance and have the necessary credentials
+(username/password, API key, or auth token) to access it.
+
+== URI Format
+
+-------------------------
+cyberark-vault:label[?options]
+-------------------------
+
+Where `label` is a logical name for the endpoint.
+
+You can specify the secret ID either as a URI parameter or via message header:
+
+[source,java]
+----
+// Using URI parameter
+.to("cyberark-vault:secret?secretId=db/password&...")
+
+// Using message header
+.setHeader(CyberArkVaultConstants.SECRET_ID, constant("db/password"))
+.to("cyberark-vault:secret?...")
+----
+
+You can append query options to the URI in the following format:
+
+`?options=value&option2=value&...`
+
+
+// component-configure options: START
+
+// component-configure options: END
+
+// component options: START
+include::partial$component-configure-options.adoc[]
+include::partial$component-endpoint-options.adoc[]
+// component options: END
+
+// endpoint options: START
+
+// endpoint options: END
+
+=== Authentication Methods
+
+The component supports multiple authentication methods with CyberArk Conjur:
+
+1. **Username/Password Authentication**: Use username and password to authenticate
+2. **API Key Authentication**: Use username and API key (recommended for programmatic access)
+3. **Pre-authenticated Token**: Use a pre-obtained authentication token
+
+=== Using CyberArk Conjur Vault Property Function
+
+To use this function, you'll need to provide credentials to CyberArk Conjur Service as environment variables:
+
+[source,bash]
+----
+export CAMEL_VAULT_CYBERARK_URL=https://conjur.example.com
+export CAMEL_VAULT_CYBERARK_ACCOUNT=myaccount
+export CAMEL_VAULT_CYBERARK_USERNAME=admin
+export CAMEL_VAULT_CYBERARK_PASSWORD=secretpassword
+----
+
+You can also configure the credentials in the `application.properties` file such as:
+
+[source,properties]
+----
+camel.vault.cyberark.url=https://conjur.example.com
+camel.vault.cyberark.account=myaccount
+camel.vault.cyberark.username=admin
+camel.vault.cyberark.password=secretpassword
+----
+
+NOTE: If you're running the application on a Kubernetes based cloud platform, you can initialize the environment variables from a Secret or ConfigMap to enhance security.
+
+For API key authentication:
+
+[source,bash]
+----
+export CAMEL_VAULT_CYBERARK_URL=https://conjur.example.com
+export CAMEL_VAULT_CYBERARK_ACCOUNT=myaccount
+export CAMEL_VAULT_CYBERARK_USERNAME=host/myapp
+export CAMEL_VAULT_CYBERARK_API_KEY=3ahx8dy3...
+----
+
+Or in `application.properties`:
+
+[source,properties]
+----
+camel.vault.cyberark.url=https://conjur.example.com
+camel.vault.cyberark.account=myaccount
+camel.vault.cyberark.username=host/myapp
+camel.vault.cyberark.apiKey=3ahx8dy3...
+----
+
+=== Examples
+
+==== Property Placeholders
+
+At this point, you can access secrets using property placeholders in your routes:
+
+[source,java]
+----
+from("direct:start")
+ .setHeader("DatabasePassword", simple("{{cyberark:db/password}}"))
+ .to("...");
+----
+
+You can also specify a default value in case the secret doesn't exist:
+
+[source,java]
+----
+from("direct:start")
+ .setHeader("Password", simple("{{cyberark:db/password:defaultPassword}}"))
+ .to("...");
+----
+
+==== Retrieve JSON Field from Secret
+
+If your secret contains JSON data, you can extract specific fields:
+
+[source,java]
+----
+from("direct:start")
+ .setHeader("Username", simple("{{cyberark:database#username}}"))
+ .setHeader("Password", simple("{{cyberark:database#password}}"))
+ .to("...");
+----
+
+==== Using the Component Endpoint
+
+You can also use the component endpoint directly:
+
+Using URI parameter:
+[source,java]
+----
+from("direct:start")
+ .to("cyberark-vault:secret?secretId=db/password&url=https://conjur.example.com&account=myaccount&username=admin&password=secretpass")
+ .log("Retrieved secret: ${body}");
+----
+
+Using message header for dynamic secret retrieval:
+[source,java]
+----
+from("direct:start")
+ .setHeader(CyberArkVaultConstants.SECRET_ID, simple("${header.secretName}"))
+ .to("cyberark-vault:secret?url=https://conjur.example.com&account=myaccount&username=admin&password=secretpass")
+ .log("Retrieved secret: ${body}");
+----
+
+=== SSL Certificate Verification
+
+By default, SSL certificate verification is enabled. You can disable it for testing purposes (not recommended for production):
+
+[source,properties]
+----
+camel.vault.cyberark.verifySsl=false
+----
+
+Or provide a custom certificate path:
+
+[source,properties]
+----
+camel.vault.cyberark.certificatePath=/path/to/cert.pem
+----
+
+=== Setting Up CyberArk Conjur for Testing
+
+Before you can use the component or run integration tests, you need to set up a CyberArk Conjur instance and configure policies to define which secrets (variables) are available.
+
+==== Step 1: Start Conjur with Docker
+
+The easiest way to get started is using the official https://github.com/cyberark/conjur-quickstart[Conjur Quickstart]:
+
+[source,bash]
+----
+# Clone the quickstart repository
+git clone https://github.com/cyberark/conjur-quickstart.git
+cd conjur-quickstart
+
+# Start Conjur and database
+docker-compose up -d
+
+# Wait for services to be ready
+sleep 15
+
+# The admin API key will be displayed in the logs
+docker-compose logs conjur_server | grep "admin API key"
+----
+
+Default connection details:
+- **URL**: `http://localhost:8080`
+- **Account**: `myConjurAccount`
+- **Username**: `admin`
+- **API Key**: Check the container logs (see command above)
+
+==== Step 2: Load Conjur Policy
+
+CyberArk Conjur requires you to define variables in a **policy file** before you can set their values. Here's how to create and load a policy:
+
+**Automated Script:**
+
+You can also use this automated script to load the policy:
+
+[source,bash]
+----
+#!/bin/bash
+
+# Replace with your actual API key from the Conjur logs
+API_KEY="your-api-key-here"
+
+# Create policy file
+cat > test-secrets.yaml <<'EOF'
+- !variable database
+- !variable simple-secret
+- !variable app/config
+- !variable test/secret
+- !variable production/database
+- !variable api/credentials
+- !variable db/primary
+- !variable db/replica
+- !variable cache/redis
+EOF
+
+# Copy to client container
+echo "Copying policy to conjur_client..."
+docker cp test-secrets.yaml conjur_client:/tmp/test-secrets.yaml
+
+# Initialize Conjur CLI
+echo "Initializing Conjur CLI..."
+docker exec conjur_client conjur init -u http://conjur_server -a myConjurAccount --force
+
+# Login
+echo "Logging in..."
+echo "$API_KEY" | docker exec -i conjur_client conjur login -i admin
+
+# Load policy
+echo "Loading policy..."
+docker exec conjur_client conjur policy load -b root -f /tmp/test-secrets.yaml
+
+if [ $? -eq 0 ]; then
+ echo "✅ Policy loaded successfully!"
+else
+ echo "❌ Policy load failed"
+ exit 1
+fi
+
+# Clean up
+rm test-secrets.yaml
+----
+
+Save as `load-policy.sh`, make it executable (`chmod +x load-policy.sh`), update the API_KEY, and run it.
+
+=== Running Integration Tests
+
+The component includes integration tests that require a running CyberArk Conjur instance. The tests are **disabled by default** and only run when specific system properties are provided.
+
+==== Prerequisites
+
+1. A running CyberArk Conjur instance (see "Setting Up CyberArk Conjur for Testing" above)
+2. Conjur policies loaded with the required variables (see Step 2 above)
+3. Valid Conjur credentials (URL, account, username, API key)
+
+==== Required System Properties
+
+The integration tests require these system properties:
+
+- `camel.cyberark.url` - CyberArk Conjur URL (e.g., `http://localhost:8080`)
+- `camel.cyberark.account` - Conjur account name (e.g., `myConjurAccount`)
+- `camel.cyberark.username` - Admin username (e.g., `admin`)
+- `camel.cyberark.apiKey` - Admin API key
+
+==== Running All Integration Tests
+
+[source,bash]
+----
+cd components/camel-cyberark-vault
+
+mvn clean verify \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myConjurAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=YOUR_API_KEY_HERE
+----
+
+Replace `YOUR_API_KEY_HERE` with the actual API key from your Conjur instance.
+
+==== Running Specific Test Classes
+
+[source,bash]
+----
+# Run properties function tests
+mvn clean verify -Dit.test=CyberArkVaultPropertiesSourceIT \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myConjurAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=YOUR_API_KEY_HERE
+
+# Run producer endpoint tests
+mvn clean verify -Dit.test=CyberArkVaultProducerIT \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myConjurAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=YOUR_API_KEY_HERE
+----
+
+==== Skipping Integration Tests (Default)
+
+By default, integration tests are skipped when system properties are not provided:
+
+[source,bash]
+----
+# This will skip all integration tests
+mvn clean install
+----
+
+==== Test Scenarios Covered
+
+The integration tests cover:
+
+1. **Property Function Tests** (`CyberArkVaultPropertiesSourceIT`)
+ - Simple secret retrieval using `{{cyberark:secret}}`
+ - JSON field extraction using `{{cyberark:secret#field}}`
+ - Default values using `{{cyberark:secret:defaultValue}}`
+ - Complex secret paths with slashes
+
+2. **Component Endpoint Tests** (`CyberArkVaultProducerIT`)
+ - Secret retrieval via component endpoint
+ - Dynamic secret ID via message headers
+ - Header verification (SECRET_ID, SECRET_VALUE)
+
+3. **Multiple Secrets Tests** (`CyberArkVaultMultipleSecretsIT`)
+ - Multiple secrets in a single route
+ - Multiple database configurations
+ - Connection string construction
+
+==== CI/CD Integration Example
+
+For GitHub Actions:
+
+[source,yaml]
+----
+name: Integration Tests
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+
+ services:
+ postgres:
+ image: postgres:15
+ env:
+ POSTGRES_PASSWORD: SuperSecretPg
+ ports:
+ - 5432:5432
+
+ conjur:
+ image: cyberark/conjur
+ env:
+ DATABASE_URL: postgres://postgres:SuperSecretPg@postgres/postgres
+ CONJUR_DATA_KEY: W0BuL24xJMVfGNTKRxcC4xv76cKE7wNJh0AKXdvmnxk=
+ ports:
+ - 8080:80
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+
+ - name: Initialize Conjur and Load Policies
+ run: |
+ # Wait for Conjur to start
+ sleep 15
+
+ # Create account and extract API key
+ API_KEY=$(docker exec conjur conjurctl account create myConjurAccount | grep "API key" | awk '{print $NF}')
+ echo "CONJUR_API_KEY=$API_KEY" >> $GITHUB_ENV
+
+ # Load test policies here...
+
+ - name: Run Integration Tests
+ run: |
+ mvn clean verify \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myConjurAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=${{ env.CONJUR_API_KEY }}
+----
+
+=== Best Practices
+
+1. **Use API Keys**: For programmatic access, use API keys instead of passwords
+2. **Enable SSL Verification**: Always verify SSL certificates in production
+3. **Least Privilege**: Grant only necessary permissions to the Conjur identity
+4. **Secret Rotation**: Regularly rotate secrets and API keys
+5. **Environment Variables**: Use environment variables or secure configuration for credentials
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultComponent.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultComponent.java
new file mode 100644
index 000000000000..a725bc6a1b7d
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultComponent.java
@@ -0,0 +1,82 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault;
+
+import java.util.Map;
+
+import org.apache.camel.Endpoint;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.annotations.Component;
+import org.apache.camel.support.DefaultComponent;
+import org.apache.camel.util.ObjectHelper;
+
+/**
+ * Component for accessing secrets in CyberArk Conjur Vault.
+ */
+@Component("cyberark-vault")
+public class CyberArkVaultComponent extends DefaultComponent {
+
+ @Metadata
+ private CyberArkVaultConfiguration configuration = new CyberArkVaultConfiguration();
+
+ public CyberArkVaultComponent() {
+ }
+
+ @Override
+ protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
+ CyberArkVaultConfiguration configuration
+ = this.configuration != null ? this.configuration.copy() : new CyberArkVaultConfiguration();
+
+ CyberArkVaultEndpoint endpoint = new CyberArkVaultEndpoint(uri, this, configuration);
+ endpoint.getConfiguration().setSecretId(remaining);
+ setProperties(endpoint, parameters);
+
+ // Validate required parameters
+ if (configuration.getConjurClient() == null) {
+ if (ObjectHelper.isEmpty(configuration.getUrl())) {
+ throw new IllegalArgumentException("CyberArk Conjur URL must be specified");
+ }
+ if (ObjectHelper.isEmpty(configuration.getAccount())) {
+ throw new IllegalArgumentException("CyberArk Conjur account must be specified");
+ }
+
+ // Validate authentication
+ boolean hasAuthToken = ObjectHelper.isNotEmpty(configuration.getAuthToken());
+ boolean hasApiKey = ObjectHelper.isNotEmpty(configuration.getApiKey());
+ boolean hasCredentials = ObjectHelper.isNotEmpty(configuration.getUsername())
+ && ObjectHelper.isNotEmpty(configuration.getPassword());
+
+ if (!hasAuthToken && !hasApiKey && !hasCredentials) {
+ throw new IllegalArgumentException(
+ "Authentication required: provide either authToken, apiKey, or username/password");
+ }
+ }
+
+ return endpoint;
+ }
+
+ public CyberArkVaultConfiguration getConfiguration() {
+ return configuration;
+ }
+
+ /**
+ * Component configuration
+ */
+ public void setConfiguration(CyberArkVaultConfiguration configuration) {
+ this.configuration = configuration;
+ }
+}
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultConfiguration.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultConfiguration.java
new file mode 100644
index 000000000000..fc6583d455a4
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultConfiguration.java
@@ -0,0 +1,200 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault;
+
+import org.apache.camel.RuntimeCamelException;
+import org.apache.camel.component.cyberark.vault.client.ConjurClient;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriParams;
+import org.apache.camel.spi.UriPath;
+
+/**
+ * Configuration for CyberArk Conjur Vault component
+ */
+@UriParams
+public class CyberArkVaultConfiguration implements Cloneable {
+
+ @UriPath(description = "Logical name")
+ @Metadata(required = true)
+ private String label;
+
+ @UriParam(description = "The secret ID to retrieve from CyberArk Conjur")
+ private String secretId;
+
+ @UriParam
+ @Metadata(required = true)
+ private String url;
+
+ @UriParam
+ @Metadata(required = true)
+ private String account;
+
+ @UriParam(label = "security", secret = true)
+ private String username;
+
+ @UriParam(label = "security", secret = true)
+ private String password;
+
+ @UriParam(label = "security", secret = true)
+ private String apiKey;
+
+ @UriParam(label = "security", secret = true)
+ private String authToken;
+
+ @UriParam(defaultValue = "true")
+ private boolean verifySsl = true;
+
+ @UriParam
+ private String certificatePath;
+
+ @UriParam
+ private ConjurClient conjurClient;
+
+ public String getLabel() {
+ return label;
+ }
+
+ /**
+ * Logical name
+ */
+ public void setLabel(String label) {
+ this.label = label;
+ }
+
+ public String getSecretId() {
+ return secretId;
+ }
+
+ /**
+ * The secret ID to retrieve from CyberArk Conjur
+ */
+ public void setSecretId(String secretId) {
+ this.secretId = secretId;
+ }
+
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * The CyberArk Conjur instance URL
+ */
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ public String getAccount() {
+ return account;
+ }
+
+ /**
+ * The CyberArk Conjur account name
+ */
+ public void setAccount(String account) {
+ this.account = account;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ /**
+ * The username for authentication with CyberArk Conjur
+ */
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ /**
+ * The password for authentication with CyberArk Conjur
+ */
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getApiKey() {
+ return apiKey;
+ }
+
+ /**
+ * The API key for authentication with CyberArk Conjur
+ */
+ public void setApiKey(String apiKey) {
+ this.apiKey = apiKey;
+ }
+
+ public String getAuthToken() {
+ return authToken;
+ }
+
+ /**
+ * Pre-authenticated token to use for CyberArk Conjur
+ */
+ public void setAuthToken(String authToken) {
+ this.authToken = authToken;
+ }
+
+ public boolean isVerifySsl() {
+ return verifySsl;
+ }
+
+ /**
+ * Whether to verify SSL certificates when connecting to CyberArk Conjur
+ */
+ public void setVerifySsl(boolean verifySsl) {
+ this.verifySsl = verifySsl;
+ }
+
+ public String getCertificatePath() {
+ return certificatePath;
+ }
+
+ /**
+ * Path to the SSL certificate for verification
+ */
+ public void setCertificatePath(String certificatePath) {
+ this.certificatePath = certificatePath;
+ }
+
+ public ConjurClient getConjurClient() {
+ return conjurClient;
+ }
+
+ /**
+ * Reference to a ConjurClient instance in the registry
+ */
+ public void setConjurClient(ConjurClient conjurClient) {
+ this.conjurClient = conjurClient;
+ }
+
+ // *************************************************
+ //
+ // *************************************************
+
+ public CyberArkVaultConfiguration copy() {
+ try {
+ return (CyberArkVaultConfiguration) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new RuntimeCamelException(e);
+ }
+ }
+}
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultConstants.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultConstants.java
new file mode 100644
index 000000000000..4f5d1315f92b
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultConstants.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault;
+
+/**
+ * Constants used in Camel CyberArk Conjur Vault component
+ */
+public interface CyberArkVaultConstants {
+
+ String OPERATION = "CamelCyberArkVaultOperation";
+ String SECRET_ID = "CamelCyberArkVaultSecretId";
+ String SECRET_VERSION = "CamelCyberArkVaultSecretVersion";
+ String SECRET_VALUE = "CamelCyberArkVaultSecretValue";
+}
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpoint.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpoint.java
new file mode 100644
index 000000000000..a181d2b8959f
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultEndpoint.java
@@ -0,0 +1,117 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault;
+
+import org.apache.camel.Category;
+import org.apache.camel.Component;
+import org.apache.camel.Consumer;
+import org.apache.camel.Processor;
+import org.apache.camel.Producer;
+import org.apache.camel.component.cyberark.vault.client.ConjurClient;
+import org.apache.camel.component.cyberark.vault.client.ConjurClientFactory;
+import org.apache.camel.spi.EndpointServiceLocation;
+import org.apache.camel.spi.UriEndpoint;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.support.DefaultEndpoint;
+import org.apache.camel.util.ObjectHelper;
+
+/**
+ * Retrieve secrets from CyberArk Conjur Vault.
+ */
+@UriEndpoint(firstVersion = "4.17.0", scheme = "cyberark-vault", title = "CyberArk Vault",
+ syntax = "cyberark-vault:label", producerOnly = true, category = { Category.CLOUD, Category.SECURITY },
+ headersClass = CyberArkVaultConstants.class)
+public class CyberArkVaultEndpoint extends DefaultEndpoint implements EndpointServiceLocation {
+
+ @UriParam
+ private CyberArkVaultConfiguration configuration;
+
+ private ConjurClient conjurClient;
+
+ public CyberArkVaultEndpoint(String uri, Component component, CyberArkVaultConfiguration configuration) {
+ super(uri, component);
+ this.configuration = configuration;
+ }
+
+ @Override
+ public Producer createProducer() throws Exception {
+ return new CyberArkVaultProducer(this);
+ }
+
+ @Override
+ public Consumer createConsumer(Processor processor) throws Exception {
+ throw new UnsupportedOperationException("Cannot consume from CyberArk Vault endpoint: " + getEndpointUri());
+ }
+
+ @Override
+ public CyberArkVaultComponent getComponent() {
+ return (CyberArkVaultComponent) super.getComponent();
+ }
+
+ @Override
+ protected void doStart() throws Exception {
+ super.doStart();
+
+ conjurClient = configuration.getConjurClient();
+ if (conjurClient == null) {
+ String url = configuration.getUrl();
+ String account = configuration.getAccount();
+ String authToken = configuration.getAuthToken();
+ String apiKey = configuration.getApiKey();
+ String username = configuration.getUsername();
+ String password = configuration.getPassword();
+
+ if (ObjectHelper.isNotEmpty(authToken)) {
+ conjurClient = ConjurClientFactory.createWithToken(url, account, authToken);
+ } else if (ObjectHelper.isNotEmpty(apiKey)) {
+ conjurClient = ConjurClientFactory.createWithApiKey(url, account, username, apiKey);
+ } else if (ObjectHelper.isNotEmpty(username) && ObjectHelper.isNotEmpty(password)) {
+ conjurClient = ConjurClientFactory.createWithCredentials(url, account, username, password);
+ }
+ }
+ }
+
+ @Override
+ protected void doStop() throws Exception {
+ super.doStop();
+ if (conjurClient != null && configuration.getConjurClient() == null) {
+ // Only close if we created the client
+ conjurClient.close();
+ }
+ }
+
+ public CyberArkVaultConfiguration getConfiguration() {
+ return configuration;
+ }
+
+ public ConjurClient getConjurClient() {
+ return conjurClient;
+ }
+
+ @Override
+ public String getServiceUrl() {
+ if (ObjectHelper.isNotEmpty(configuration.getUrl())) {
+ return configuration.getUrl();
+ }
+ return null;
+ }
+
+ @Override
+ public String getServiceProtocol() {
+ return "https";
+ }
+}
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultProducer.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultProducer.java
new file mode 100644
index 000000000000..df090ab6fd42
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultProducer.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault;
+
+import org.apache.camel.Endpoint;
+import org.apache.camel.Exchange;
+import org.apache.camel.Message;
+import org.apache.camel.component.cyberark.vault.client.ConjurClient;
+import org.apache.camel.support.DefaultProducer;
+import org.apache.camel.util.ObjectHelper;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * The CyberArk Vault producer.
+ */
+public class CyberArkVaultProducer extends DefaultProducer {
+
+ private static final Logger LOG = LoggerFactory.getLogger(CyberArkVaultProducer.class);
+
+ public CyberArkVaultProducer(Endpoint endpoint) {
+ super(endpoint);
+ }
+
+ @Override
+ public void process(Exchange exchange) throws Exception {
+ String version = exchange.getMessage().getHeader(CyberArkVaultConstants.SECRET_VERSION, String.class);
+
+ // Priority: Header > URI parameter
+ String secretId = exchange.getMessage().getHeader(CyberArkVaultConstants.SECRET_ID, String.class);
+ if (ObjectHelper.isEmpty(secretId)) {
+ secretId = getConfiguration().getSecretId();
+ }
+
+ if (ObjectHelper.isEmpty(secretId)) {
+ throw new IllegalArgumentException(
+ "Secret ID must be specified either as a URI parameter (secretId=...) or as a message header ("
+ + CyberArkVaultConstants.SECRET_ID + ")");
+ }
+
+ LOG.trace("Retrieving secret from CyberArk Conjur with id: {}", secretId);
+
+ ConjurClient client = getEndpoint().getConjurClient();
+ String secretValue = client.retrieveSecret(secretId, version);
+
+ Message message = exchange.getMessage();
+ message.setBody(secretValue);
+ message.setHeader(CyberArkVaultConstants.SECRET_ID, secretId);
+ message.setHeader(CyberArkVaultConstants.SECRET_VALUE, secretValue);
+ if (version != null) {
+ message.setHeader(CyberArkVaultConstants.SECRET_VERSION, version);
+ }
+ }
+
+ @Override
+ public CyberArkVaultEndpoint getEndpoint() {
+ return (CyberArkVaultEndpoint) super.getEndpoint();
+ }
+
+ private CyberArkVaultConfiguration getConfiguration() {
+ return getEndpoint().getConfiguration();
+ }
+}
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultPropertiesFunction.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultPropertiesFunction.java
new file mode 100644
index 000000000000..d1bc3a40453b
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/CyberArkVaultPropertiesFunction.java
@@ -0,0 +1,282 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault;
+
+import java.util.HashSet;
+import java.util.Set;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.RuntimeCamelException;
+import org.apache.camel.component.cyberark.vault.client.ConjurClient;
+import org.apache.camel.component.cyberark.vault.client.ConjurClientFactory;
+import org.apache.camel.spi.PropertiesFunction;
+import org.apache.camel.support.service.ServiceSupport;
+import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.StringHelper;
+import org.apache.camel.vault.CyberArkVaultConfiguration;
+
+/**
+ * A {@link PropertiesFunction} that lookup the property value from CyberArk Conjur Vault service.
+ * <p/>
+ * The credentials to access CyberArk Conjur can be defined using environment variables:
+ * <ul>
+ * <li><tt>CAMEL_VAULT_CYBERARK_URL</tt></li>
+ * <li><tt>CAMEL_VAULT_CYBERARK_ACCOUNT</tt></li>
+ * <li><tt>CAMEL_VAULT_CYBERARK_USERNAME</tt></li>
+ * <li><tt>CAMEL_VAULT_CYBERARK_PASSWORD</tt></li>
+ * <li><tt>CAMEL_VAULT_CYBERARK_API_KEY</tt></li>
+ * <li><tt>CAMEL_VAULT_CYBERARK_AUTH_TOKEN</tt></li>
+ * </ul>
+ * <p/>
+ *
+ * Otherwise, it is possible to specify the credentials as properties:
+ *
+ * <ul>
+ * <li><tt>camel.vault.cyberark.url</tt></li>
+ * <li><tt>camel.vault.cyberark.account</tt></li>
+ * <li><tt>camel.vault.cyberark.username</tt></li>
+ * <li><tt>camel.vault.cyberark.password</tt></li>
+ * <li><tt>camel.vault.cyberark.apiKey</tt></li>
+ * <li><tt>camel.vault.cyberark.authToken</tt></li>
+ * </ul>
+ * <p/>
+ *
+ * This implementation is to return the secret value associated with a key. The properties related to this kind of
+ * Properties Function are all prefixed with <tt>cyberark:</tt>. For example asking for <tt>cyberark:db/password</tt>,
+ * will return the secret value associated with the secret named db/password on CyberArk Conjur.
+ *
+ * Another way of retrieving a secret value is using the following notation <tt>cyberark:database#username</tt>: in this
+ * case the field username of the secret database will be returned. As a fallback, the user could provide a default
+ * value, which will be returned in case the secret doesn't exist or if a particular field of the secret doesn't exist.
+ * For using this feature, the user could use the following notation <tt>cyberark:database#username:admin</tt>. The
+ * admin value will be returned as default value, if the conditions above were all met.
+ */
+@org.apache.camel.spi.annotations.PropertiesFunction("cyberark")
+public class CyberArkVaultPropertiesFunction extends ServiceSupport implements PropertiesFunction, CamelContextAware {
+
+ private static final String CAMEL_CYBERARK_VAULT_URL = "CAMEL_VAULT_CYBERARK_URL";
+ private static final String CAMEL_CYBERARK_VAULT_ACCOUNT = "CAMEL_VAULT_CYBERARK_ACCOUNT";
+ private static final String CAMEL_CYBERARK_VAULT_USERNAME = "CAMEL_VAULT_CYBERARK_USERNAME";
+ private static final String CAMEL_CYBERARK_VAULT_PASSWORD = "CAMEL_VAULT_CYBERARK_PASSWORD";
+ private static final String CAMEL_CYBERARK_VAULT_API_KEY = "CAMEL_VAULT_CYBERARK_API_KEY";
+ private static final String CAMEL_CYBERARK_VAULT_AUTH_TOKEN = "CAMEL_VAULT_CYBERARK_AUTH_TOKEN";
+
+ private CamelContext camelContext;
+ private ConjurClient client;
+
+ private final Set<String> secrets = new HashSet<>();
+
+ private String url;
+ private String account;
+
+ public CyberArkVaultPropertiesFunction() {
+ super();
+ }
+
+ public CyberArkVaultPropertiesFunction(ConjurClient client) {
+ super();
+ this.client = client;
+ }
+
+ @Override
+ protected void doStart() throws Exception {
+ super.doStart();
+
+ String url = System.getenv(CAMEL_CYBERARK_VAULT_URL);
+ String account = System.getenv(CAMEL_CYBERARK_VAULT_ACCOUNT);
+ String username = System.getenv(CAMEL_CYBERARK_VAULT_USERNAME);
+ String password = System.getenv(CAMEL_CYBERARK_VAULT_PASSWORD);
+ String apiKey = System.getenv(CAMEL_CYBERARK_VAULT_API_KEY);
+ String authToken = System.getenv(CAMEL_CYBERARK_VAULT_AUTH_TOKEN);
+
+ if (ObjectHelper.isEmpty(url) && ObjectHelper.isEmpty(account)) {
+ CyberArkVaultConfiguration cyberArkVaultConfiguration = getCamelContext().getVaultConfiguration().cyberark();
+ if (ObjectHelper.isNotEmpty(cyberArkVaultConfiguration)) {
+ url = cyberArkVaultConfiguration.getUrl();
+ account = cyberArkVaultConfiguration.getAccount();
+ username = cyberArkVaultConfiguration.getUsername();
+ password = cyberArkVaultConfiguration.getPassword();
+ apiKey = cyberArkVaultConfiguration.getApiKey();
+ authToken = cyberArkVaultConfiguration.getAuthToken();
+ }
+ }
+
+ this.url = url;
+ this.account = account;
+
+ if (ObjectHelper.isNotEmpty(url) && ObjectHelper.isNotEmpty(account)) {
+ // Create Conjur client based on authentication method
+ if (ObjectHelper.isNotEmpty(authToken)) {
+ // Use pre-authenticated token
+ client = ConjurClientFactory.createWithToken(url, account, authToken);
+ } else if (ObjectHelper.isNotEmpty(apiKey)) {
+ // Use API key authentication
+ client = ConjurClientFactory.createWithApiKey(url, account, username, apiKey);
+ } else if (ObjectHelper.isNotEmpty(username) && ObjectHelper.isNotEmpty(password)) {
+ // Use username/password authentication
+ client = ConjurClientFactory.createWithCredentials(url, account, username, password);
+ } else {
+ throw new RuntimeCamelException(
+ "Using the CyberArk Conjur Vault Properties Function requires authentication credentials (authToken, apiKey, or username/password)");
+ }
+ } else {
+ throw new RuntimeCamelException(
+ "Using the CyberArk Conjur Vault Properties Function requires setting URL and account as application properties or environment variables");
+ }
+ }
+
+ @Override
+ protected void doStop() throws Exception {
+ if (client != null) {
+ try {
+ client.close();
+ } catch (Exception e) {
+ // ignore
+ }
+ client = null;
+ }
+ secrets.clear();
+ super.doStop();
+ }
+
+ @Override
+ public String getName() {
+ return "cyberark";
+ }
+
+ @Override
+ public String apply(String remainder) {
+ String key = remainder;
+ String subkey = null;
+ String returnValue = null;
+ String defaultValue = null;
+ String version = null;
+
+ if (remainder.contains("#")) {
+ key = StringHelper.before(remainder, "#");
+ subkey = StringHelper.after(remainder, "#");
+ defaultValue = StringHelper.after(subkey, ":");
+ if (ObjectHelper.isNotEmpty(defaultValue)) {
+ if (defaultValue.contains("@")) {
+ version = StringHelper.after(defaultValue, "@");
+ defaultValue = StringHelper.before(defaultValue, "@");
+ }
+ }
+ if (subkey.contains(":")) {
+ subkey = StringHelper.before(subkey, ":");
+ }
+ if (subkey.contains("@")) {
+ version = StringHelper.after(subkey, "@");
+ subkey = StringHelper.before(subkey, "@");
+ }
+ } else if (remainder.contains(":")) {
+ key = StringHelper.before(remainder, ":");
+ defaultValue = StringHelper.after(remainder, ":");
+ if (remainder.contains("@")) {
+ version = StringHelper.after(remainder, "@");
+ defaultValue = StringHelper.before(defaultValue, "@");
+ }
+ } else {
+ if (remainder.contains("@")) {
+ key = StringHelper.before(remainder, "@");
+ version = StringHelper.after(remainder, "@");
+ }
+ }
+
+ if (key != null) {
+ try {
+ returnValue = getSecretFromSource(key, subkey, defaultValue, version);
+ } catch (Exception e) {
+ throw new RuntimeCamelException(
+ "Error getting secret from CyberArk Conjur vault using key: " + key + " due to: " + e.getMessage(),
+ e);
+ }
+ }
+
+ return returnValue;
+ }
+
+ private String getSecretFromSource(
+ String key, String subkey, String defaultValue, String version)
+ throws JsonProcessingException {
+
+ // capture name of secret
+ secrets.add(key);
+
+ String returnValue;
+ try {
+ // Retrieve secret from Conjur
+ returnValue = client.retrieveSecret(key, version);
+
+ if (ObjectHelper.isNotEmpty(subkey)) {
+ ObjectMapper mapper = new ObjectMapper();
+ JsonNode actualObj = mapper.readTree(returnValue);
+ JsonNode field = actualObj.get(subkey);
+ if (ObjectHelper.isNotEmpty(field)) {
+ returnValue = field.textValue();
+ } else {
+ returnValue = null;
+ }
+ }
+ if (ObjectHelper.isEmpty(returnValue)) {
+ returnValue = defaultValue;
+ }
+ } catch (Exception ex) {
+ if (ObjectHelper.isNotEmpty(defaultValue)) {
+ returnValue = defaultValue;
+ } else {
+ throw ex;
+ }
+ }
+ return returnValue;
+ }
+
+ @Override
+ public void setCamelContext(CamelContext camelContext) {
+ this.camelContext = camelContext;
+ }
+
+ @Override
+ public CamelContext getCamelContext() {
+ return camelContext;
+ }
+
+ /**
+ * Ids of the secrets in use
+ */
+ public Set<String> getSecrets() {
+ return secrets;
+ }
+
+ /**
+ * The Conjur URL in use
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * The Conjur account in use
+ */
+ public String getAccount() {
+ return account;
+ }
+}
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/ConjurClient.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/ConjurClient.java
new file mode 100644
index 000000000000..ccf2c36f1aac
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/ConjurClient.java
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault.client;
+
+/**
+ * Interface for CyberArk Conjur client operations
+ */
+public interface ConjurClient extends AutoCloseable {
+
+ /**
+ * Retrieve a secret from Conjur
+ *
+ * @param secretId the ID of the secret to retrieve
+ * @return the secret value
+ */
+ String retrieveSecret(String secretId);
+
+ /**
+ * Retrieve a specific version of a secret from Conjur
+ *
+ * @param secretId the ID of the secret to retrieve
+ * @param version the version of the secret (can be null for latest)
+ * @return the secret value
+ */
+ String retrieveSecret(String secretId, String version);
+
+ /**
+ * Authenticate with Conjur and obtain an access token
+ *
+ * @return the access token
+ */
+ String authenticate();
+
+ /**
+ * Close the client and release resources
+ */
+ @Override
+ void close() throws Exception;
+}
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/ConjurClientFactory.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/ConjurClientFactory.java
new file mode 100644
index 000000000000..4f46c054547a
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/ConjurClientFactory.java
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault.client;
+
+import org.apache.camel.component.cyberark.vault.client.impl.ConjurClientImpl;
+
+/**
+ * Factory for creating CyberArk Conjur clients
+ */
+public final class ConjurClientFactory {
+
+ private ConjurClientFactory() {
+ }
+
+ /**
+ * Create a Conjur client using username and password authentication
+ *
+ * @param url the Conjur server URL
+ * @param account the Conjur account name
+ * @param username the username for authentication
+ * @param password the password for authentication
+ * @return a configured ConjurClient instance
+ */
+ public static ConjurClient createWithCredentials(String url, String account, String username, String password) {
+ return new ConjurClientImpl(url, account, username, password, null, null);
+ }
+
+ /**
+ * Create a Conjur client using API key authentication
+ *
+ * @param url the Conjur server URL
+ * @param account the Conjur account name
+ * @param username the username (login) for the API key
+ * @param apiKey the API key for authentication
+ * @return a configured ConjurClient instance
+ */
+ public static ConjurClient createWithApiKey(String url, String account, String username, String apiKey) {
+ return new ConjurClientImpl(url, account, username, null, apiKey, null);
+ }
+
+ /**
+ * Create a Conjur client using a pre-authenticated token
+ *
+ * @param url the Conjur server URL
+ * @param account the Conjur account name
+ * @param authToken the pre-authenticated access token
+ * @return a configured ConjurClient instance
+ */
+ public static ConjurClient createWithToken(String url, String account, String authToken) {
+ return new ConjurClientImpl(url, account, null, null, null, authToken);
+ }
+}
diff --git a/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/impl/ConjurClientImpl.java b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/impl/ConjurClientImpl.java
new file mode 100644
index 000000000000..34d5b4b99b0d
--- /dev/null
+++ b/components/camel-cyberark-vault/src/main/java/org/apache/camel/component/cyberark/vault/client/impl/ConjurClientImpl.java
@@ -0,0 +1,162 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault.client.impl;
+
+import java.io.IOException;
+import java.net.URI;
+import java.net.URLEncoder;
+import java.net.http.HttpClient;
+import java.net.http.HttpRequest;
+import java.net.http.HttpResponse;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Base64;
+
+import org.apache.camel.component.cyberark.vault.client.ConjurClient;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Implementation of ConjurClient using Java HTTP Client to communicate with CyberArk Conjur REST API
+ */
+public class ConjurClientImpl implements ConjurClient {
+
+ private static final Logger LOG = LoggerFactory.getLogger(ConjurClientImpl.class);
+
+ private final String url;
+ private final String account;
+ private final String username;
+ private final String password;
+ private final String apiKey;
+ private String authToken;
+ private final HttpClient httpClient;
+
+ public ConjurClientImpl(
+ String url, String account, String username,
+ String password, String apiKey, String authToken) {
+ this.url = url.endsWith("/") ? url.substring(0, url.length() - 1) : url;
+ this.account = account;
+ this.username = username;
+ this.password = password;
+ this.apiKey = apiKey;
+ this.authToken = authToken;
+ this.httpClient = HttpClient.newBuilder()
+ .connectTimeout(Duration.ofSeconds(10))
+ .build();
+ }
+
+ @Override
+ public String retrieveSecret(String secretId) {
+ return retrieveSecret(secretId, null);
+ }
+
+ @Override
+ public String retrieveSecret(String secretId, String version) {
+ try {
+ // Ensure we have a valid token
+ if (authToken == null) {
+ authToken = authenticate();
+ }
+
+ // URL encode the secret ID (replace / with %2F)
+ String encodedSecretId = URLEncoder.encode(secretId, StandardCharsets.UTF_8);
+
+ // Build the secrets endpoint URL
+ String secretsUrl = String.format("%s/secrets/%s/variable/%s",
+ url, account, encodedSecretId);
+
+ if (version != null && !version.isEmpty()) {
+ secretsUrl += "?version=" + version;
+ }
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(secretsUrl))
+ .header("Authorization", "Token token=\"" + Base64.getEncoder()
+ .encodeToString(authToken.getBytes(StandardCharsets.UTF_8)) + "\"")
+ .GET()
+ .build();
+
+ HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+
+ if (response.statusCode() == 200) {
+ return response.body();
+ } else if (response.statusCode() == 401) {
+ // Token expired, re-authenticate and retry
+ LOG.debug("Token expired, re-authenticating");
+ authToken = authenticate();
+ return retrieveSecret(secretId, version);
+ } else {
+ throw new IOException(
+ "Failed to retrieve secret: HTTP " + response.statusCode() + " - " + response.body());
+ }
+ } catch (IOException | InterruptedException e) {
+ throw new RuntimeException("Error retrieving secret from Conjur: " + secretId, e);
+ }
+ }
+
+ @Override
+ public String authenticate() {
+ try {
+ String login;
+ String credential;
+
+ if (apiKey != null) {
+ // Authenticate with API key
+ login = username;
+ credential = apiKey;
+ } else if (password != null) {
+ // Authenticate with password
+ login = username;
+ credential = password;
+ } else if (authToken != null) {
+ // Already have a token
+ return authToken;
+ } else {
+ throw new IllegalStateException("No authentication credentials available");
+ }
+
+ // URL encode the login
+ String encodedLogin = URLEncoder.encode(login, StandardCharsets.UTF_8);
+
+ String authUrl = String.format("%s/authn/%s/%s/authenticate",
+ url, account, encodedLogin);
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(authUrl))
+ .header("Content-Type", "text/plain")
+ .POST(HttpRequest.BodyPublishers.ofString(credential))
+ .build();
+
+ HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+
+ if (response.statusCode() == 200) {
+ String token = response.body();
+ LOG.debug("Successfully authenticated with Conjur");
+ return token;
+ } else {
+ throw new IOException("Authentication failed: HTTP " + response.statusCode() + " - " + response.body());
+ }
+ } catch (IOException | InterruptedException e) {
+ throw new RuntimeException("Error authenticating with Conjur", e);
+ }
+ }
+
+ @Override
+ public void close() throws Exception {
+ authToken = null;
+ }
+}
diff --git a/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultMultipleSecretsIT.java b/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultMultipleSecretsIT.java
new file mode 100644
index 000000000000..49962e0b3992
--- /dev/null
+++ b/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultMultipleSecretsIT.java
@@ -0,0 +1,229 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault.integration;
+
+import java.net.URI;
+import java.net.http.HttpClient;
+import java.net.http.HttpRequest;
+import java.net.http.HttpResponse;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Base64;
+
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit5.CamelTestSupport;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperties;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Integration test demonstrating multiple secret retrieval in a single route
+ */
+// Must be manually tested. Provide CyberArk Conjur connection details using system properties:
+// -Dcamel.cyberark.url=http://localhost:8080
+// -Dcamel.cyberark.account=myAccount
+// -Dcamel.cyberark.username=admin
+// -Dcamel.cyberark.apiKey=your-api-key
+@EnabledIfSystemProperties({
+ @EnabledIfSystemProperty(named = "camel.cyberark.url", matches = ".*",
+ disabledReason = "CyberArk Conjur URL not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.account", matches = ".*",
+ disabledReason = "CyberArk Conjur account not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.username", matches = ".*",
+ disabledReason = "CyberArk Conjur username not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.apiKey", matches = ".*",
+ disabledReason = "CyberArk Conjur API key not provided")
+})
+public class CyberArkVaultMultipleSecretsIT extends CamelTestSupport {
+
+ private static final Logger LOG = LoggerFactory.getLogger(CyberArkVaultMultipleSecretsIT.class);
+
+ private static HttpClient httpClient;
+ private static String authToken;
+
+ @BeforeAll
+ public static void setupSecrets() throws Exception {
+ httpClient = HttpClient.newBuilder()
+ .connectTimeout(Duration.ofSeconds(10))
+ .build();
+
+ // Authenticate
+ authToken = authenticate();
+
+ // Create multiple secrets for testing
+ createSecret("app/config", "{\"port\":\"8080\",\"host\":\"localhost\",\"protocol\":\"https\"}");
+ createSecret("db/primary", "{\"host\":\"db1.example.com\",\"port\":\"5432\",\"username\":\"dbadmin\"}");
+ createSecret("db/replica", "{\"host\":\"db2.example.com\",\"port\":\"5432\",\"username\":\"readonly\"}");
+ createSecret("cache/redis", "{\"host\":\"redis.example.com\",\"port\":\"6379\"}");
+ }
+
+ private static String authenticate() throws Exception {
+ String url = String.format("%s/authn/%s/%s/authenticate",
+ System.getProperty("camel.cyberark.url"),
+ System.getProperty("camel.cyberark.account"),
+ System.getProperty("camel.cyberark.username"));
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(url))
+ .header("Content-Type", "text/plain")
+ .POST(HttpRequest.BodyPublishers.ofString(System.getProperty("camel.cyberark.apiKey")))
+ .build();
+
+ HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+ return response.body();
+ }
+
+ private static void createSecret(String secretId, String secretValue) {
+ try {
+ String url = String.format("%s/secrets/%s/variable/%s",
+ System.getProperty("camel.cyberark.url"),
+ System.getProperty("camel.cyberark.account"),
+ secretId);
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(url))
+ .header("Authorization", "Token token=\"" + Base64.getEncoder()
+ .encodeToString(authToken.getBytes(StandardCharsets.UTF_8)) + "\"")
+ .header("Content-Type", "application/octet-stream")
+ .POST(HttpRequest.BodyPublishers.ofString(secretValue))
+ .build();
+
+ HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+ LOG.info("Created secret '{}': HTTP {}", secretId, response.statusCode());
+ } catch (Exception e) {
+ LOG.warn("Could not create secret '{}': {}", secretId, e.getMessage());
+ }
+ }
+
+ @Test
+ public void testMultipleSecretsInSingleRoute() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:start")
+ .setHeader("appHost", simple("{{cyberark:app/config#host}}"))
+ .setHeader("appPort", simple("{{cyberark:app/config#port}}"))
+ .setHeader("dbHost", simple("{{cyberark:db/primary#host}}"))
+ .setHeader("dbPort", simple("{{cyberark:db/primary#port}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ MockEndpoint mock = getMockEndpoint("mock:result");
+ mock.expectedMessageCount(1);
+ mock.expectedHeaderReceived("appHost", "localhost");
+ mock.expectedHeaderReceived("appPort", "8080");
+ mock.expectedHeaderReceived("dbHost", "db1.example.com");
+ mock.expectedHeaderReceived("dbPort", "5432");
+
+ template.sendBody("direct:start", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Test
+ public void testMultipleDatabaseConfigs() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:primary")
+ .setBody(simple("{{cyberark:db/primary#username}}"))
+ .to("mock:result");
+
+ from("direct:replica")
+ .setBody(simple("{{cyberark:db/replica#username}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ MockEndpoint mock = getMockEndpoint("mock:result");
+ mock.expectedBodiesReceived("dbadmin", "readonly");
+
+ template.sendBody("direct:primary", "test");
+ template.sendBody("direct:replica", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Test
+ public void testMixedSecretTypes() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:start")
+ .setHeader("protocol", simple("{{cyberark:app/config#protocol}}"))
+ .setHeader("redisHost", simple("{{cyberark:cache/redis#host}}"))
+ .setHeader("redisPort", simple("{{cyberark:cache/redis#port}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ MockEndpoint mock = getMockEndpoint("mock:result");
+ mock.expectedMessageCount(1);
+ mock.expectedHeaderReceived("protocol", "https");
+ mock.expectedHeaderReceived("redisHost", "redis.example.com");
+ mock.expectedHeaderReceived("redisPort", "6379");
+
+ template.sendBody("direct:start", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Test
+ public void testConnectionStringConstruction() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:start")
+ // Build a connection string from multiple secret fields
+ .setBody(simple("${body}{{cyberark:db/primary#host}}:{{cyberark:db/primary#port}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ MockEndpoint mock = getMockEndpoint("mock:result");
+ mock.expectedBodiesReceived("testdb1.example.com:5432");
+
+ template.sendBody("direct:start", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+}
diff --git a/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultProducerIT.java b/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultProducerIT.java
new file mode 100644
index 000000000000..f39c71d8e8f1
--- /dev/null
+++ b/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultProducerIT.java
@@ -0,0 +1,187 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault.integration;
+
+import java.net.URI;
+import java.net.http.HttpClient;
+import java.net.http.HttpRequest;
+import java.net.http.HttpResponse;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Base64;
+
+import org.apache.camel.EndpointInject;
+import org.apache.camel.Exchange;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.cyberark.vault.CyberArkVaultConstants;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit5.CamelTestSupport;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperties;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+// Must be manually tested. Provide CyberArk Conjur connection details using system properties:
+// -Dcamel.cyberark.url=http://localhost:8080
+// -Dcamel.cyberark.account=myAccount
+// -Dcamel.cyberark.username=admin
+// -Dcamel.cyberark.apiKey=your-api-key
+@EnabledIfSystemProperties({
+ @EnabledIfSystemProperty(named = "camel.cyberark.url", matches = ".*",
+ disabledReason = "CyberArk Conjur URL not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.account", matches = ".*",
+ disabledReason = "CyberArk Conjur account not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.username", matches = ".*",
+ disabledReason = "CyberArk Conjur username not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.apiKey", matches = ".*",
+ disabledReason = "CyberArk Conjur API key not provided")
+})
+public class CyberArkVaultProducerIT extends CamelTestSupport {
+
+ private static final Logger LOG = LoggerFactory.getLogger(CyberArkVaultProducerIT.class);
+
+ @EndpointInject("mock:result")
+ private MockEndpoint mockResult;
+
+ private static HttpClient httpClient;
+ private static String authToken;
+
+ @BeforeAll
+ public static void setupSecrets() throws Exception {
+ httpClient = HttpClient.newBuilder()
+ .connectTimeout(Duration.ofSeconds(10))
+ .build();
+
+ // Authenticate
+ String url = String.format("%s/authn/%s/%s/authenticate",
+ System.getProperty("camel.cyberark.url"),
+ System.getProperty("camel.cyberark.account"),
+ System.getProperty("camel.cyberark.username"));
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(url))
+ .header("Content-Type", "text/plain")
+ .POST(HttpRequest.BodyPublishers.ofString(System.getProperty("camel.cyberark.apiKey")))
+ .build();
+
+ HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+ authToken = response.body();
+
+ // Create test secrets
+ createSecret("test/secret", "mySecretValue");
+ createSecret("production/database", "{\"username\":\"prod-user\",\"password\":\"prod-pass\"}");
+ }
+
+ private static void createSecret(String secretId, String secretValue) {
+ try {
+ String url = String.format("%s/secrets/%s/variable/%s",
+ System.getProperty("camel.cyberark.url"),
+ System.getProperty("camel.cyberark.account"),
+ secretId);
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(url))
+ .header("Authorization", "Token token=\"" + Base64.getEncoder()
+ .encodeToString(authToken.getBytes(StandardCharsets.UTF_8)) + "\"")
+ .header("Content-Type", "application/octet-stream")
+ .POST(HttpRequest.BodyPublishers.ofString(secretValue))
+ .build();
+
+ HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+ LOG.info("Created secret '{}': HTTP {}", secretId, response.statusCode());
+ } catch (Exception e) {
+ LOG.warn("Could not create secret '{}': {}", secretId, e.getMessage());
+ }
+ }
+
+ @Test
+ public void testRetrieveSecret() throws Exception {
+ mockResult.expectedMessageCount(1);
+
+ template.sendBody("direct:getSecret", "");
+
+ mockResult.assertIsSatisfied();
+ Exchange exchange = mockResult.getExchanges().get(0);
+ assertNotNull(exchange);
+ String secretValue = exchange.getMessage().getBody(String.class);
+ assertEquals("mySecretValue", secretValue);
+ }
+
+ @Test
+ public void testRetrieveSecretWithHeader() throws Exception {
+ mockResult.expectedMessageCount(1);
+ mockResult.reset();
+
+ template.send("direct:getSecretDynamic", exchange -> {
+ exchange.getMessage().setHeader(CyberArkVaultConstants.SECRET_ID, "production/database");
+ });
+
+ mockResult.assertIsSatisfied();
+ Exchange exchange = mockResult.getExchanges().get(0);
+ assertNotNull(exchange);
+ String secretValue = exchange.getMessage().getBody(String.class);
+ assertNotNull(secretValue);
+ // Should contain JSON with username and password
+ assert secretValue.contains("prod-user");
+ }
+
+ @Test
+ public void testRetrieveSecretVerifyHeaders() throws Exception {
+ mockResult.expectedMessageCount(1);
+ mockResult.reset();
+
+ template.sendBody("direct:getSecret", "");
+
+ mockResult.assertIsSatisfied();
+ Exchange exchange = mockResult.getExchanges().get(0);
+ assertNotNull(exchange);
+
+ String secretId = exchange.getMessage().getHeader(CyberArkVaultConstants.SECRET_ID, String.class);
+ assertEquals("test/secret", secretId);
+
+ String secretValue = exchange.getMessage().getHeader(CyberArkVaultConstants.SECRET_VALUE, String.class);
+ assertEquals("mySecretValue", secretValue);
+ }
+
+ @Override
+ protected RouteBuilder createRouteBuilder() {
+ return new RouteBuilder() {
+ @Override
+ public void configure() {
+ String url = System.getProperty("camel.cyberark.url");
+ String account = System.getProperty("camel.cyberark.account");
+ String username = System.getProperty("camel.cyberark.username");
+ String apiKey = System.getProperty("camel.cyberark.apiKey");
+
+ from("direct:getSecret")
+ .toF("cyberark-vault:secret?secretId=test/secret&url=%s&account=%s&username=%s&apiKey=%s",
+ url, account, username, apiKey)
+ .to("mock:result");
+
+ from("direct:getSecretDynamic")
+ .toF("cyberark-vault:secret?url=%s&account=%s&username=%s&apiKey=%s",
+ url, account, username, apiKey)
+ .to("mock:result");
+ }
+ };
+ }
+}
diff --git a/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultPropertiesSourceIT.java b/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultPropertiesSourceIT.java
new file mode 100644
index 000000000000..e66ba7129843
--- /dev/null
+++ b/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/CyberArkVaultPropertiesSourceIT.java
@@ -0,0 +1,282 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cyberark.vault.integration;
+
+import java.io.IOException;
+import java.net.URI;
+import java.net.http.HttpClient;
+import java.net.http.HttpRequest;
+import java.net.http.HttpResponse;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Base64;
+
+import org.apache.camel.FailedToCreateRouteException;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit5.CamelTestSupport;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperties;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.junit.jupiter.api.Assertions.assertThrows;
+
+// Must be manually tested. Provide CyberArk Conjur connection details using system properties:
+// -Dcamel.cyberark.url=http://localhost:8080
+// -Dcamel.cyberark.account=myAccount
+// -Dcamel.cyberark.username=admin
+// -Dcamel.cyberark.apiKey=your-api-key
+@EnabledIfSystemProperties({
+ @EnabledIfSystemProperty(named = "camel.cyberark.url", matches = ".*",
+ disabledReason = "CyberArk Conjur URL not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.account", matches = ".*",
+ disabledReason = "CyberArk Conjur account not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.username", matches = ".*",
+ disabledReason = "CyberArk Conjur username not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.apiKey", matches = ".*",
+ disabledReason = "CyberArk Conjur API key not provided")
+})
+public class CyberArkVaultPropertiesSourceIT extends CamelTestSupport {
+
+ private static final Logger LOG = LoggerFactory.getLogger(CyberArkVaultPropertiesSourceIT.class);
+
+ private static HttpClient httpClient;
+ private static String authToken;
+
+ @BeforeAll
+ public static void init() throws Exception {
+ httpClient = HttpClient.newBuilder()
+ .connectTimeout(Duration.ofSeconds(10))
+ .build();
+
+ // Authenticate and get token
+ authToken = authenticate();
+
+ // Create test secrets in Conjur
+ createSecret("database", "{\"username\":\"dbuser\",\"password\":\"dbpass\",\"host\":\"localhost\"}");
+ createSecret("api/credentials", "{\"token\":\"secret-token\",\"key\":\"api-key-123\"}");
+ createSecret("simple-secret", "my-simple-value");
+ }
+
+ private static String authenticate() throws IOException, InterruptedException {
+ String url = String.format("%s/authn/%s/%s/authenticate",
+ System.getProperty("camel.cyberark.url"),
+ System.getProperty("camel.cyberark.account"),
+ System.getProperty("camel.cyberark.username"));
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(url))
+ .header("Content-Type", "text/plain")
+ .POST(HttpRequest.BodyPublishers.ofString(System.getProperty("camel.cyberark.apiKey")))
+ .build();
+
+ HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+
+ if (response.statusCode() == 200) {
+ return response.body();
+ }
+ throw new IOException("Failed to authenticate: " + response.statusCode());
+ }
+
+ private static void createSecret(String secretId, String secretValue) {
+ try {
+ String url = String.format("%s/secrets/%s/variable/%s",
+ System.getProperty("camel.cyberark.url"),
+ System.getProperty("camel.cyberark.account"),
+ secretId);
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(url))
+ .header("Authorization", "Token token=\"" + Base64.getEncoder()
+ .encodeToString(authToken.getBytes(StandardCharsets.UTF_8)) + "\"")
+ .header("Content-Type", "application/octet-stream")
+ .POST(HttpRequest.BodyPublishers.ofString(secretValue))
+ .build();
+
+ HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+ LOG.info("Created secret '{}': HTTP {}", secretId, response.statusCode());
+ } catch (Exception e) {
+ LOG.warn("Could not create secret '{}': {}", secretId, e.getMessage());
+ // Continue anyway - some tests expect missing secrets
+ }
+ }
+
+ @Test
+ public void testSimpleSecretRetrieval() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:start")
+ .setBody(simple("{{cyberark:simple-secret}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ getMockEndpoint("mock:result").expectedBodiesReceived("my-simple-value");
+ template.sendBody("direct:start", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Test
+ public void testJsonFieldExtraction() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:username")
+ .setBody(simple("{{cyberark:database#username}}"))
+ .to("mock:result");
+ from("direct:password")
+ .setBody(simple("{{cyberark:database#password}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ getMockEndpoint("mock:result").expectedBodiesReceived("dbuser", "dbpass");
+ template.sendBody("direct:username", "test");
+ template.sendBody("direct:password", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Test
+ public void testDefaultValue() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:start")
+ .setBody(simple("{{cyberark:nonexistent:defaultValue}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ getMockEndpoint("mock:result").expectedBodiesReceived("defaultValue");
+ template.sendBody("direct:start", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Test
+ public void testFieldWithDefaultValue() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:start")
+ .setBody(simple("{{cyberark:database#nonexistent:defaultUser}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ getMockEndpoint("mock:result").expectedBodiesReceived("defaultUser");
+ template.sendBody("direct:start", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Test
+ public void testSecretNotFound() {
+ assertThrows(FailedToCreateRouteException.class, () -> {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:start")
+ .setBody(simple("{{cyberark:nonexistent}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ template.sendBody("direct:start", "test");
+ });
+ }
+
+ @Test
+ public void testMultipleSecretsWithFields() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:db")
+ .setBody(simple("{{cyberark:database#host}}"))
+ .to("mock:result");
+ from("direct:api")
+ .setBody(simple("{{cyberark:api/credentials#key}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ getMockEndpoint("mock:result").expectedBodiesReceived("localhost", "api-key-123");
+ template.sendBody("direct:db", "test");
+ template.sendBody("direct:api", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Test
+ public void testComplexSecretPath() throws Exception {
+ context.getVaultConfiguration().cyberark().setUrl(System.getProperty("camel.cyberark.url"));
+ context.getVaultConfiguration().cyberark().setAccount(System.getProperty("camel.cyberark.account"));
+ context.getVaultConfiguration().cyberark().setUsername(System.getProperty("camel.cyberark.username"));
+ context.getVaultConfiguration().cyberark().setApiKey(System.getProperty("camel.cyberark.apiKey"));
+
+ context.addRoutes(new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:start")
+ .setBody(simple("{{cyberark:api/credentials#token}}"))
+ .to("mock:result");
+ }
+ });
+ context.start();
+
+ getMockEndpoint("mock:result").expectedBodiesReceived("secret-token");
+ template.sendBody("direct:start", "test");
+ MockEndpoint.assertIsSatisfied(context);
+ }
+}
diff --git a/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/README.md b/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/README.md
new file mode 100644
index 000000000000..eb004ebc56dc
--- /dev/null
+++ b/components/camel-cyberark-vault/src/test/java/org/apache/camel/component/cyberark/vault/integration/README.md
@@ -0,0 +1,410 @@
+# CyberArk Vault Component Integration Tests
+
+This directory contains integration tests for the Camel CyberArk Vault component.
+
+## Overview
+
+The integration tests require a running CyberArk Conjur instance and use system properties for configuration. Tests are disabled by default and only run when the required system properties are provided via command line.
+
+## Test Classes
+
+### CyberArkVaultPropertiesSourceIT
+Tests for the properties function (`{{cyberark:...}}`):
+- Simple secret retrieval
+- JSON field extraction (`{{cyberark:secret#field}}`)
+- Default values (`{{cyberark:secret:defaultValue}}`)
+- Complex paths (`{{cyberark:path/to/secret#field}}`)
+- Error handling for missing secrets
+
+### CyberArkVaultProducerIT
+Tests for the component endpoint (`cyberark-vault://secretId`):
+- Basic secret retrieval via component endpoint
+- Dynamic secret ID via headers
+- Header verification (SECRET_ID, SECRET_VALUE constants)
+- Multiple secret retrieval
+
+### CyberArkVaultMultipleSecretsIT
+Tests for complex scenarios with multiple secrets:
+- Multiple secrets in single route
+- Multiple database configurations
+- Mixed secret types
+- Connection string construction
+
+## Running the Tests
+
+### Prerequisites
+
+- A running CyberArk Conjur instance (see Setup section below)
+- Maven 3.6+
+- Java 11+
+- CyberArk Conjur admin credentials
+
+### Required System Properties
+
+The tests require the following system properties:
+
+- `camel.cyberark.url` - CyberArk Conjur URL (e.g., `http://localhost:8080`)
+- `camel.cyberark.account` - Conjur account name (e.g., `myAccount`)
+- `camel.cyberark.username` - Admin username (e.g., `admin`)
+- `camel.cyberark.apiKey` - Admin API key
+
+### Run All Integration Tests
+
+```bash
+cd components/camel-cyberark-vault
+mvn clean verify \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=your-api-key
+```
+
+### Run Specific Test Class
+
+```bash
+mvn clean verify -Dit.test=CyberArkVaultPropertiesSourceIT \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=your-api-key
+```
+
+### Run Specific Test Method
+
+```bash
+mvn clean verify -Dit.test=CyberArkVaultPropertiesSourceIT#testSimpleSecretRetrieval \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=your-api-key
+```
+
+### Skip Integration Tests (Default)
+
+By default, integration tests are skipped if system properties are not provided:
+
+```bash
+mvn clean install
+```
+
+## Setting Up CyberArk Conjur for Testing
+
+### Option 1: Using Docker (Recommended)
+
+Use the official CyberArk Conjur quickstart setup:
+
+```bash
+# Clone the quickstart repository
+git clone https://github.com/cyberark/conjur-quickstart.git
+cd conjur-quickstart
+
+# Start Conjur and database
+docker-compose up -d
+
+# Wait for services to be ready
+sleep 10
+
+# The admin API key will be displayed in the logs
+docker-compose logs conjur | grep "admin API key"
+```
+
+Default connection details:
+- **URL**: `http://localhost:8080`
+- **Account**: `myConjurAccount`
+- **Username**: `admin`
+- **API Key**: Check container logs
+
+### Option 2: Using Existing Conjur Instance
+
+If you have an existing CyberArk Conjur instance:
+
+1. Ensure you have admin access
+2. Get your admin API key
+3. Use your instance URL and account name
+
+## Test Infrastructure
+
+### Authentication
+
+The tests authenticate using the provided credentials before running:
+
+```java
+@BeforeAll
+public static void init() throws Exception {
+ // Authenticate and get token
+ authToken = authenticate();
+
+ // Create test secrets
+ createSecret("simple-secret", "my-simple-value");
+ createSecret("database", "{\"username\":\"dbuser\",\"password\":\"dbpass\"}");
+}
+```
+
+### Creating Test Secrets
+
+The tests create secrets using the Conjur REST API:
+
+```java
+private static void createSecret(String secretId, String secretValue) {
+ String url = String.format("%s/secrets/%s/variable/%s",
+ System.getProperty("camel.cyberark.url"),
+ System.getProperty("camel.cyberark.account"),
+ secretId);
+
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(url))
+ .header("Authorization", "Token token=\"" + encodedToken + "\"")
+ .POST(HttpRequest.BodyPublishers.ofString(secretValue))
+ .build();
+
+ httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+}
+```
+
+## Test Scenarios Covered
+
+### Properties Function Tests
+
+1. **Simple Secret Retrieval**
+ ```java
+ {{cyberark:simple-secret}} → "my-simple-value"
+ ```
+
+2. **JSON Field Extraction**
+ ```java
+ {{cyberark:database#username}} → "dbuser"
+ {{cyberark:database#password}} → "dbpass"
+ ```
+
+3. **Default Values**
+ ```java
+ {{cyberark:nonexistent:defaultValue}} → "defaultValue"
+ {{cyberark:database#missing:defaultUser}} → "defaultUser"
+ ```
+
+4. **Complex Paths**
+ ```java
+ {{cyberark:api/credentials#token}} → "secret-token"
+ ```
+
+5. **Error Handling**
+ ```java
+ {{cyberark:nonexistent}} → FailedToCreateRouteException
+ ```
+
+### Component Endpoint Tests
+
+1. **Basic Retrieval**
+ ```java
+ from("direct:start")
+ .to("cyberark-vault:test/secret?url=...&account=...&apiKey=...")
+ .to("mock:result");
+ ```
+
+2. **Dynamic Secret ID**
+ ```java
+ exchange.getMessage().setHeader(CyberArkVaultConstants.SECRET_ID, "production/database");
+ ```
+
+3. **Header Verification**
+ - `CyberArkVaultConstants.SECRET_ID`
+ - `CyberArkVaultConstants.SECRET_VALUE`
+
+## Troubleshooting
+
+### Tests are Skipped
+
+If you see messages like `CyberArk Conjur URL not provided`, ensure you're passing all required system properties:
+
+```bash
+mvn verify \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=your-api-key
+```
+
+### Authentication Failures
+
+If authentication fails:
+- Verify the URL is accessible
+- Check that the account name is correct
+- Verify the username and API key are valid
+- Ensure Conjur is fully started and accepting connections
+
+### Connection Refused
+
+If you get connection refused errors:
+- Check that Conjur is running: `docker ps | grep conjur`
+- Verify the URL and port are correct
+- Check firewall settings if using remote instance
+
+### Secret Creation Failures
+
+The tests automatically create secrets they need. If secret creation fails:
+- Ensure the API key has permission to create secrets
+- Check Conjur logs for policy-related errors
+- Verify the account name is correct
+
+## CI/CD Integration
+
+### GitHub Actions Example
+
+```yaml
+name: Integration Tests
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+
+ services:
+ postgres:
+ image: postgres:15
+ env:
+ POSTGRES_PASSWORD: SuperSecretPg
+ ports:
+ - 5432:5432
+
+ conjur:
+ image: cyberark/conjur
+ env:
+ DATABASE_URL: postgres://postgres:SuperSecretPg@postgres/postgres
+ CONJUR_DATA_KEY: W0BuL24xJMVfGNTKRxcC4xv76cKE7wNJh0AKXdvmnxk=
+ ports:
+ - 8080:80
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+
+ - name: Initialize Conjur Account
+ run: |
+ # Wait for Conjur to start
+ sleep 10
+ # Create account and extract API key
+ API_KEY=$(docker exec conjur conjurctl account create myAccount | grep "API key" | awk '{print $NF}')
+ echo "CONJUR_API_KEY=$API_KEY" >> $GITHUB_ENV
+
+ - name: Run Integration Tests
+ run: |
+ mvn clean verify \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=${{ env.CONJUR_API_KEY }}
+```
+
+### Jenkins Example
+
+```groovy
+pipeline {
+ agent any
+
+ stages {
+ stage('Setup Conjur') {
+ steps {
+ sh '''
+ docker-compose -f test-resources/conjur-docker-compose.yml up -d
+ sleep 10
+ '''
+ }
+ }
+
+ stage('Run Integration Tests') {
+ steps {
+ sh '''
+ API_KEY=$(docker exec conjur conjurctl account create myAccount | grep "API key" | awk '{print $NF}')
+ mvn clean verify \
+ -Dcamel.cyberark.url=http://localhost:8080 \
+ -Dcamel.cyberark.account=myAccount \
+ -Dcamel.cyberark.username=admin \
+ -Dcamel.cyberark.apiKey=$API_KEY
+ '''
+ }
+ }
+ }
+
+ post {
+ always {
+ sh 'docker-compose -f test-resources/conjur-docker-compose.yml down'
+ }
+ }
+}
+```
+
+## Test Data
+
+### Created Secrets
+
+The integration tests create the following secrets:
+
+| Secret ID | Value | Purpose |
+|-----------|-------|---------|
+| `simple-secret` | `my-simple-value` | Basic retrieval test |
+| `database` | `{"username":"dbuser",...}` | JSON field extraction |
+| `api/credentials` | `{"token":"secret-token",...}` | Complex path test |
+| `test/secret` | `mySecretValue` | Component endpoint test |
+| `production/database` | `{"username":"prod-user",...}` | Dynamic retrieval test |
+| `app/config` | `{"port":"8080",...}` | Multiple secrets test |
+| `db/primary` | `{"host":"db1.example.com",...}` | Multiple configs test |
+| `db/replica` | `{"host":"db2.example.com",...}` | Multiple configs test |
+| `cache/redis` | `{"host":"redis.example.com",...}` | Mixed types test |
+
+## Adding New Tests
+
+To add new integration tests:
+
+1. **Create Test Class**:
+ ```java
+ @EnabledIfSystemProperties({
+ @EnabledIfSystemProperty(named = "camel.cyberark.url", matches = ".*",
+ disabledReason = "CyberArk Conjur URL not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.account", matches = ".*",
+ disabledReason = "CyberArk Conjur account not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.username", matches = ".*",
+ disabledReason = "CyberArk Conjur username not provided"),
+ @EnabledIfSystemProperty(named = "camel.cyberark.apiKey", matches = ".*",
+ disabledReason = "CyberArk Conjur API key not provided")
+ })
+ public class MyNewIT extends CamelTestSupport {
+ // Tests here
+ }
+ ```
+
+2. **Create Secrets in @BeforeAll**:
+ ```java
+ @BeforeAll
+ public static void setup() throws Exception {
+ authToken = authenticate();
+ createSecret("my/secret", "value");
+ }
+ ```
+
+3. **Use System Properties for Connection**:
+ ```java
+ String url = System.getProperty("camel.cyberark.url");
+ String account = System.getProperty("camel.cyberark.account");
+ String username = System.getProperty("camel.cyberark.username");
+ String apiKey = System.getProperty("camel.cyberark.apiKey");
+ ```
+
+## Best Practices
+
+1. **Cleanup**: Secrets can be cleaned up manually or will be reset when Conjur restarts
+2. **Isolation**: Use unique secret IDs for each test to avoid conflicts
+3. **Logging**: Use SLF4J logger to debug issues
+4. **Assertions**: Use MockEndpoint.assertIsSatisfied() for async verification
+5. **Error Testing**: Use assertThrows() for expected failures
+6. **System Properties**: Always use System.getProperty() to read configuration
+
+## References
+
+- [CyberArk Conjur Documentation](https://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-DAP/Latest/en/Content/Resources/_TopNav/cc_Home.htm)
+- [CyberArk Conjur Quickstart](https://github.com/cyberark/conjur-quickstart)
+- [Camel Testing Guide](https://camel.apache.org/manual/testing.html)
+- [JUnit 5 Conditional Test Execution](https://junit.org/junit5/docs/current/user-guide/#writing-tests-conditional-execution)
diff --git a/components/pom.xml b/components/pom.xml
index fed7f6441b46..e748d44d37c8 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -114,7 +114,8 @@
<module>camel-crypto</module>
<module>camel-crypto-pgp</module>
<module>camel-csimple-joor</module>
- <module>camel-csv</module>
+ <module>camel-csv</module>
+ <module>camel-cyberark-vault</module>
<module>camel-dapr</module>
<module>camel-datasonnet</module>
<module>camel-debug</module>
diff --git a/core/camel-api/src/main/java/org/apache/camel/vault/CyberArkVaultConfiguration.java b/core/camel-api/src/main/java/org/apache/camel/vault/CyberArkVaultConfiguration.java
new file mode 100644
index 000000000000..1c67e9b34630
--- /dev/null
+++ b/core/camel-api/src/main/java/org/apache/camel/vault/CyberArkVaultConfiguration.java
@@ -0,0 +1,143 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.vault;
+
+import org.apache.camel.spi.Metadata;
+
+/**
+ * Configuration for access to CyberArk Conjur Vault.
+ */
+public class CyberArkVaultConfiguration extends VaultConfiguration {
+
+ @Metadata
+ private String url;
+ @Metadata
+ private String account;
+ @Metadata(secret = true)
+ private String username;
+ @Metadata(secret = true)
+ private String password;
+ @Metadata(secret = true)
+ private String apiKey;
+ @Metadata
+ private String authToken;
+ @Metadata
+ private boolean verifySsl = true;
+ @Metadata
+ private String certificatePath;
+ @Metadata
+ private String secrets;
+
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * The CyberArk Conjur instance URL
+ */
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ public String getAccount() {
+ return account;
+ }
+
+ /**
+ * The CyberArk Conjur account name
+ */
+ public void setAccount(String account) {
+ this.account = account;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ /**
+ * The username for authentication
+ */
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ /**
+ * The password for authentication
+ */
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getApiKey() {
+ return apiKey;
+ }
+
+ /**
+ * The API key for authentication
+ */
+ public void setApiKey(String apiKey) {
+ this.apiKey = apiKey;
+ }
+
+ public String getAuthToken() {
+ return authToken;
+ }
+
+ /**
+ * Pre-authenticated token to use
+ */
+ public void setAuthToken(String authToken) {
+ this.authToken = authToken;
+ }
+
+ public boolean isVerifySsl() {
+ return verifySsl;
+ }
+
+ /**
+ * Whether to verify SSL certificates
+ */
+ public void setVerifySsl(boolean verifySsl) {
+ this.verifySsl = verifySsl;
+ }
+
+ public String getCertificatePath() {
+ return certificatePath;
+ }
+
+ /**
+ * Path to the SSL certificate for verification
+ */
+ public void setCertificatePath(String certificatePath) {
+ this.certificatePath = certificatePath;
+ }
+
+ public String getSecrets() {
+ return secrets;
+ }
+
+ /**
+ * Specify the secret names (or pattern) to check for updates. Multiple secrets can be separated by comma.
+ */
+ public void setSecrets(String secrets) {
+ this.secrets = secrets;
+ }
+}
diff --git a/core/camel-api/src/main/java/org/apache/camel/vault/VaultConfiguration.java b/core/camel-api/src/main/java/org/apache/camel/vault/VaultConfiguration.java
index a76b041fe1f4..24c0dc490964 100644
--- a/core/camel-api/src/main/java/org/apache/camel/vault/VaultConfiguration.java
+++ b/core/camel-api/src/main/java/org/apache/camel/vault/VaultConfiguration.java
@@ -29,6 +29,7 @@ public class VaultConfiguration {
private KubernetesConfigMapVaultConfiguration kubernetesConfigmaps;
private IBMSecretsManagerVaultConfiguration ibmSecretsManager;
private SpringCloudConfigConfiguration springConfig;
+ private CyberArkVaultConfiguration cyberark;
/**
* AWS Vault Configuration
@@ -107,6 +108,16 @@ public class VaultConfiguration {
return springConfig;
}
+ /**
+ * CyberArk Vault Configuration
+ */
+ public CyberArkVaultConfiguration cyberark() {
+ if (cyberark == null) {
+ cyberark = new CyberArkVaultConfiguration();
+ }
+ return cyberark;
+ }
+
public AwsVaultConfiguration getAwsVaultConfiguration() {
return aws;
}
@@ -170,4 +181,12 @@ public class VaultConfiguration {
public void setSpringCloudConfigConfiguration(SpringCloudConfigConfiguration springCloudConfigConfiguration) {
this.springConfig = springCloudConfigConfiguration;
}
+
+ public CyberArkVaultConfiguration getCyberArkVaultConfiguration() {
+ return cyberark;
+ }
+
+ public void setCyberArkVaultConfiguration(CyberArkVaultConfiguration cyberark) {
+ this.cyberark = cyberark;
+ }
}
diff --git a/core/camel-main/pom.xml b/core/camel-main/pom.xml
index dbe73894722a..a31eb900f201 100644
--- a/core/camel-main/pom.xml
+++ b/core/camel-main/pom.xml
@@ -173,6 +173,8 @@
<class>org.apache.camel.vault.IBMSecretsManagerVaultConfiguration=org.apache.camel.main.IBMSecretsManagerVaultConfiguration</class>
<!-- we want to have configurer for SpringCloudConfigConfiguration in the package main to prevent a split packages issue -->
<class>org.apache.camel.vault.SpringCloudConfigConfiguration=org.apache.camel.main.SpringCloudConfigConfiguration</class>
+ <!-- we want to have configurer for CyberarkVaultConfiguration in the package main to prevent a split packages issue -->
+ <class>org.apache.camel.vault.CyberArkVaultConfiguration=org.apache.camel.main.CyberArkVaultConfiguration</class>
</classes>
</configuration>
</execution>
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/AwsVaultConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/AwsVaultConfigurationConfigurer.java
index 8b85a576fd71..70f070b783f8 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/AwsVaultConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/AwsVaultConfigurationConfigurer.java
@@ -29,6 +29,8 @@ public class AwsVaultConfigurationConfigurer extends org.apache.camel.support.co
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "defaultcredentialsprovider":
case "defaultCredentialsProvider": target.setDefaultCredentialsProvider(property(camelContext, boolean.class, value)); return true;
case "gcpvaultconfiguration":
@@ -76,6 +78,8 @@ public class AwsVaultConfigurationConfigurer extends org.apache.camel.support.co
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "defaultcredentialsprovider":
case "defaultCredentialsProvider": return boolean.class;
case "gcpvaultconfiguration":
@@ -124,6 +128,8 @@ public class AwsVaultConfigurationConfigurer extends org.apache.camel.support.co
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "defaultcredentialsprovider":
case "defaultCredentialsProvider": return target.isDefaultCredentialsProvider();
case "gcpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/AwsVaultConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/AwsVaultConfigurationPropertiesConfigurer.java
index 80a7594e3843..ef263e9d39f8 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/AwsVaultConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/AwsVaultConfigurationPropertiesConfigurer.java
@@ -25,6 +25,7 @@ public class AwsVaultConfigurationPropertiesConfigurer extends org.apache.camel.
map.put("AccessKey", java.lang.String.class);
map.put("AwsVaultConfiguration", org.apache.camel.vault.AwsVaultConfiguration.class);
map.put("AzureVaultConfiguration", org.apache.camel.vault.AzureVaultConfiguration.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("DefaultCredentialsProvider", boolean.class);
map.put("GcpVaultConfiguration", org.apache.camel.vault.GcpVaultConfiguration.class);
map.put("HashicorpVaultConfiguration", org.apache.camel.vault.HashicorpVaultConfiguration.class);
@@ -56,6 +57,8 @@ public class AwsVaultConfigurationPropertiesConfigurer extends org.apache.camel.
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "defaultcredentialsprovider":
case "defaultCredentialsProvider": target.setDefaultCredentialsProvider(property(camelContext, boolean.class, value)); return true;
case "gcpvaultconfiguration":
@@ -108,6 +111,8 @@ public class AwsVaultConfigurationPropertiesConfigurer extends org.apache.camel.
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "defaultcredentialsprovider":
case "defaultCredentialsProvider": return boolean.class;
case "gcpvaultconfiguration":
@@ -156,6 +161,8 @@ public class AwsVaultConfigurationPropertiesConfigurer extends org.apache.camel.
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "defaultcredentialsprovider":
case "defaultCredentialsProvider": return target.isDefaultCredentialsProvider();
case "gcpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/AzureVaultConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/AzureVaultConfigurationConfigurer.java
index 3aa171ae2766..130c4cb35e36 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/AzureVaultConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/AzureVaultConfigurationConfigurer.java
@@ -39,6 +39,8 @@ public class AzureVaultConfigurationConfigurer extends org.apache.camel.support.
case "clientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
case "clientsecret":
case "clientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "eventhubconnectionstring":
case "eventhubConnectionString": target.setEventhubConnectionString(property(camelContext, java.lang.String.class, value)); return true;
case "gcpvaultconfiguration":
@@ -85,6 +87,8 @@ public class AzureVaultConfigurationConfigurer extends org.apache.camel.support.
case "clientId": return java.lang.String.class;
case "clientsecret":
case "clientSecret": return java.lang.String.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "eventhubconnectionstring":
case "eventhubConnectionString": return java.lang.String.class;
case "gcpvaultconfiguration":
@@ -132,6 +136,8 @@ public class AzureVaultConfigurationConfigurer extends org.apache.camel.support.
case "clientId": return target.getClientId();
case "clientsecret":
case "clientSecret": return target.getClientSecret();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "eventhubconnectionstring":
case "eventhubConnectionString": return target.getEventhubConnectionString();
case "gcpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/AzureVaultConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/AzureVaultConfigurationPropertiesConfigurer.java
index 143e964988c6..0626dd7b87ee 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/AzureVaultConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/AzureVaultConfigurationPropertiesConfigurer.java
@@ -30,6 +30,7 @@ public class AzureVaultConfigurationPropertiesConfigurer extends org.apache.came
map.put("BlobContainerName", java.lang.String.class);
map.put("ClientId", java.lang.String.class);
map.put("ClientSecret", java.lang.String.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("EventhubConnectionString", java.lang.String.class);
map.put("GcpVaultConfiguration", org.apache.camel.vault.GcpVaultConfiguration.class);
map.put("HashicorpVaultConfiguration", org.apache.camel.vault.HashicorpVaultConfiguration.class);
@@ -65,6 +66,8 @@ public class AzureVaultConfigurationPropertiesConfigurer extends org.apache.came
case "clientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
case "clientsecret":
case "clientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "eventhubconnectionstring":
case "eventhubConnectionString": target.setEventhubConnectionString(property(camelContext, java.lang.String.class, value)); return true;
case "gcpvaultconfiguration":
@@ -116,6 +119,8 @@ public class AzureVaultConfigurationPropertiesConfigurer extends org.apache.came
case "clientId": return java.lang.String.class;
case "clientsecret":
case "clientSecret": return java.lang.String.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "eventhubconnectionstring":
case "eventhubConnectionString": return java.lang.String.class;
case "gcpvaultconfiguration":
@@ -163,6 +168,8 @@ public class AzureVaultConfigurationPropertiesConfigurer extends org.apache.came
case "clientId": return target.getClientId();
case "clientsecret":
case "clientSecret": return target.getClientSecret();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "eventhubconnectionstring":
case "eventhubConnectionString": return target.getEventhubConnectionString();
case "gcpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/CyberArkVaultConfigurationConfigurer.java
similarity index 67%
copy from core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationConfigurer.java
copy to core/camel-main/src/generated/java/org/apache/camel/main/CyberArkVaultConfigurationConfigurer.java
index 1604734741d7..57808d145043 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/CyberArkVaultConfigurationConfigurer.java
@@ -10,23 +10,32 @@ import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.vault.SpringCloudConfigConfiguration;
+import org.apache.camel.vault.CyberArkVaultConfiguration;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
-public class SpringCloudConfigConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+public class CyberArkVaultConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- org.apache.camel.vault.SpringCloudConfigConfiguration target = (org.apache.camel.vault.SpringCloudConfigConfiguration) obj;
+ org.apache.camel.vault.CyberArkVaultConfiguration target = (org.apache.camel.vault.CyberArkVaultConfiguration) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": target.setAccount(property(camelContext, java.lang.String.class, value)); return true;
+ case "apikey":
+ case "apiKey": target.setApiKey(property(camelContext, java.lang.String.class, value)); return true;
+ case "authtoken":
+ case "authToken": target.setAuthToken(property(camelContext, java.lang.String.class, value)); return true;
case "awsvaultconfiguration":
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "certificatepath":
+ case "certificatePath": target.setCertificatePath(property(camelContext, java.lang.String.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -37,18 +46,14 @@ public class SpringCloudConfigConfigurationConfigurer extends org.apache.camel.s
case "kubernetesConfigMapVaultConfiguration": target.setKubernetesConfigMapVaultConfiguration(property(camelContext, org.apache.camel.vault.KubernetesConfigMapVaultConfiguration.class, value)); return true;
case "kubernetesvaultconfiguration":
case "kubernetesVaultConfiguration": target.setKubernetesVaultConfiguration(property(camelContext, org.apache.camel.vault.KubernetesVaultConfiguration.class, value)); return true;
- case "label": target.setLabel(property(camelContext, java.lang.String.class, value)); return true;
case "password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true;
- case "profile": target.setProfile(property(camelContext, java.lang.String.class, value)); return true;
- case "refreshenabled":
- case "refreshEnabled": target.setRefreshEnabled(property(camelContext, boolean.class, value)); return true;
- case "refreshperiod":
- case "refreshPeriod": target.setRefreshPeriod(property(camelContext, long.class, value)); return true;
+ case "secrets": target.setSecrets(property(camelContext, java.lang.String.class, value)); return true;
case "springcloudconfigconfiguration":
case "springCloudConfigConfiguration": target.setSpringCloudConfigConfiguration(property(camelContext, org.apache.camel.vault.SpringCloudConfigConfiguration.class, value)); return true;
- case "token": target.setToken(property(camelContext, java.lang.String.class, value)); return true;
- case "uris": target.setUris(property(camelContext, java.lang.String.class, value)); return true;
+ case "url": target.setUrl(property(camelContext, java.lang.String.class, value)); return true;
case "username": target.setUsername(property(camelContext, java.lang.String.class, value)); return true;
+ case "verifyssl":
+ case "verifySsl": target.setVerifySsl(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
@@ -56,10 +61,19 @@ public class SpringCloudConfigConfigurationConfigurer extends org.apache.camel.s
@Override
public Class<?> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": return java.lang.String.class;
+ case "apikey":
+ case "apiKey": return java.lang.String.class;
+ case "authtoken":
+ case "authToken": return java.lang.String.class;
case "awsvaultconfiguration":
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "certificatepath":
+ case "certificatePath": return java.lang.String.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -70,30 +84,35 @@ public class SpringCloudConfigConfigurationConfigurer extends org.apache.camel.s
case "kubernetesConfigMapVaultConfiguration": return org.apache.camel.vault.KubernetesConfigMapVaultConfiguration.class;
case "kubernetesvaultconfiguration":
case "kubernetesVaultConfiguration": return org.apache.camel.vault.KubernetesVaultConfiguration.class;
- case "label": return java.lang.String.class;
case "password": return java.lang.String.class;
- case "profile": return java.lang.String.class;
- case "refreshenabled":
- case "refreshEnabled": return boolean.class;
- case "refreshperiod":
- case "refreshPeriod": return long.class;
+ case "secrets": return java.lang.String.class;
case "springcloudconfigconfiguration":
case "springCloudConfigConfiguration": return org.apache.camel.vault.SpringCloudConfigConfiguration.class;
- case "token": return java.lang.String.class;
- case "uris": return java.lang.String.class;
+ case "url": return java.lang.String.class;
case "username": return java.lang.String.class;
+ case "verifyssl":
+ case "verifySsl": return boolean.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- org.apache.camel.vault.SpringCloudConfigConfiguration target = (org.apache.camel.vault.SpringCloudConfigConfiguration) obj;
+ org.apache.camel.vault.CyberArkVaultConfiguration target = (org.apache.camel.vault.CyberArkVaultConfiguration) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": return target.getAccount();
+ case "apikey":
+ case "apiKey": return target.getApiKey();
+ case "authtoken":
+ case "authToken": return target.getAuthToken();
case "awsvaultconfiguration":
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "certificatepath":
+ case "certificatePath": return target.getCertificatePath();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
@@ -104,18 +123,14 @@ public class SpringCloudConfigConfigurationConfigurer extends org.apache.camel.s
case "kubernetesConfigMapVaultConfiguration": return target.getKubernetesConfigMapVaultConfiguration();
case "kubernetesvaultconfiguration":
case "kubernetesVaultConfiguration": return target.getKubernetesVaultConfiguration();
- case "label": return target.getLabel();
case "password": return target.getPassword();
- case "profile": return target.getProfile();
- case "refreshenabled":
- case "refreshEnabled": return target.isRefreshEnabled();
- case "refreshperiod":
- case "refreshPeriod": return target.getRefreshPeriod();
+ case "secrets": return target.getSecrets();
case "springcloudconfigconfiguration":
case "springCloudConfigConfiguration": return target.getSpringCloudConfigConfiguration();
- case "token": return target.getToken();
- case "uris": return target.getUris();
+ case "url": return target.getUrl();
case "username": return target.getUsername();
+ case "verifyssl":
+ case "verifySsl": return target.isVerifySsl();
default: return null;
}
}
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/CyberArkVaultConfigurationPropertiesConfigurer.java
similarity index 68%
copy from core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationPropertiesConfigurer.java
copy to core/camel-main/src/generated/java/org/apache/camel/main/CyberArkVaultConfigurationPropertiesConfigurer.java
index 32db893ddd9e..625822878edc 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/CyberArkVaultConfigurationPropertiesConfigurer.java
@@ -10,45 +10,56 @@ import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.main.SpringCloudConfigConfigurationProperties;
+import org.apache.camel.main.CyberArkVaultConfigurationProperties;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
-public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+public class CyberArkVaultConfigurationPropertiesConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
private static final Map<String, Object> ALL_OPTIONS;
static {
Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("Account", java.lang.String.class);
+ map.put("ApiKey", java.lang.String.class);
+ map.put("AuthToken", java.lang.String.class);
map.put("AwsVaultConfiguration", org.apache.camel.vault.AwsVaultConfiguration.class);
map.put("AzureVaultConfiguration", org.apache.camel.vault.AzureVaultConfiguration.class);
+ map.put("CertificatePath", java.lang.String.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("GcpVaultConfiguration", org.apache.camel.vault.GcpVaultConfiguration.class);
map.put("HashicorpVaultConfiguration", org.apache.camel.vault.HashicorpVaultConfiguration.class);
map.put("IBMSecretsManagerVaultConfiguration", org.apache.camel.vault.IBMSecretsManagerVaultConfiguration.class);
map.put("KubernetesConfigMapVaultConfiguration", org.apache.camel.vault.KubernetesConfigMapVaultConfiguration.class);
map.put("KubernetesVaultConfiguration", org.apache.camel.vault.KubernetesVaultConfiguration.class);
- map.put("Label", java.lang.String.class);
map.put("Password", java.lang.String.class);
- map.put("Profile", java.lang.String.class);
- map.put("RefreshEnabled", boolean.class);
- map.put("RefreshPeriod", long.class);
+ map.put("Secrets", java.lang.String.class);
map.put("SpringCloudConfigConfiguration", org.apache.camel.vault.SpringCloudConfigConfiguration.class);
- map.put("Token", java.lang.String.class);
- map.put("Uris", java.lang.String.class);
+ map.put("Url", java.lang.String.class);
map.put("Username", java.lang.String.class);
+ map.put("VerifySsl", boolean.class);
ALL_OPTIONS = map;
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- org.apache.camel.main.SpringCloudConfigConfigurationProperties target = (org.apache.camel.main.SpringCloudConfigConfigurationProperties) obj;
+ org.apache.camel.main.CyberArkVaultConfigurationProperties target = (org.apache.camel.main.CyberArkVaultConfigurationProperties) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": target.setAccount(property(camelContext, java.lang.String.class, value)); return true;
+ case "apikey":
+ case "apiKey": target.setApiKey(property(camelContext, java.lang.String.class, value)); return true;
+ case "authtoken":
+ case "authToken": target.setAuthToken(property(camelContext, java.lang.String.class, value)); return true;
case "awsvaultconfiguration":
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "certificatepath":
+ case "certificatePath": target.setCertificatePath(property(camelContext, java.lang.String.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -59,18 +70,14 @@ public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apac
case "kubernetesConfigMapVaultConfiguration": target.setKubernetesConfigMapVaultConfiguration(property(camelContext, org.apache.camel.vault.KubernetesConfigMapVaultConfiguration.class, value)); return true;
case "kubernetesvaultconfiguration":
case "kubernetesVaultConfiguration": target.setKubernetesVaultConfiguration(property(camelContext, org.apache.camel.vault.KubernetesVaultConfiguration.class, value)); return true;
- case "label": target.setLabel(property(camelContext, java.lang.String.class, value)); return true;
case "password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true;
- case "profile": target.setProfile(property(camelContext, java.lang.String.class, value)); return true;
- case "refreshenabled":
- case "refreshEnabled": target.setRefreshEnabled(property(camelContext, boolean.class, value)); return true;
- case "refreshperiod":
- case "refreshPeriod": target.setRefreshPeriod(property(camelContext, long.class, value)); return true;
+ case "secrets": target.setSecrets(property(camelContext, java.lang.String.class, value)); return true;
case "springcloudconfigconfiguration":
case "springCloudConfigConfiguration": target.setSpringCloudConfigConfiguration(property(camelContext, org.apache.camel.vault.SpringCloudConfigConfiguration.class, value)); return true;
- case "token": target.setToken(property(camelContext, java.lang.String.class, value)); return true;
- case "uris": target.setUris(property(camelContext, java.lang.String.class, value)); return true;
+ case "url": target.setUrl(property(camelContext, java.lang.String.class, value)); return true;
case "username": target.setUsername(property(camelContext, java.lang.String.class, value)); return true;
+ case "verifyssl":
+ case "verifySsl": target.setVerifySsl(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
@@ -83,10 +90,19 @@ public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apac
@Override
public Class<?> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": return java.lang.String.class;
+ case "apikey":
+ case "apiKey": return java.lang.String.class;
+ case "authtoken":
+ case "authToken": return java.lang.String.class;
case "awsvaultconfiguration":
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "certificatepath":
+ case "certificatePath": return java.lang.String.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -97,30 +113,35 @@ public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apac
case "kubernetesConfigMapVaultConfiguration": return org.apache.camel.vault.KubernetesConfigMapVaultConfiguration.class;
case "kubernetesvaultconfiguration":
case "kubernetesVaultConfiguration": return org.apache.camel.vault.KubernetesVaultConfiguration.class;
- case "label": return java.lang.String.class;
case "password": return java.lang.String.class;
- case "profile": return java.lang.String.class;
- case "refreshenabled":
- case "refreshEnabled": return boolean.class;
- case "refreshperiod":
- case "refreshPeriod": return long.class;
+ case "secrets": return java.lang.String.class;
case "springcloudconfigconfiguration":
case "springCloudConfigConfiguration": return org.apache.camel.vault.SpringCloudConfigConfiguration.class;
- case "token": return java.lang.String.class;
- case "uris": return java.lang.String.class;
+ case "url": return java.lang.String.class;
case "username": return java.lang.String.class;
+ case "verifyssl":
+ case "verifySsl": return boolean.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- org.apache.camel.main.SpringCloudConfigConfigurationProperties target = (org.apache.camel.main.SpringCloudConfigConfigurationProperties) obj;
+ org.apache.camel.main.CyberArkVaultConfigurationProperties target = (org.apache.camel.main.CyberArkVaultConfigurationProperties) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "account": return target.getAccount();
+ case "apikey":
+ case "apiKey": return target.getApiKey();
+ case "authtoken":
+ case "authToken": return target.getAuthToken();
case "awsvaultconfiguration":
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "certificatepath":
+ case "certificatePath": return target.getCertificatePath();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
@@ -131,18 +152,14 @@ public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apac
case "kubernetesConfigMapVaultConfiguration": return target.getKubernetesConfigMapVaultConfiguration();
case "kubernetesvaultconfiguration":
case "kubernetesVaultConfiguration": return target.getKubernetesVaultConfiguration();
- case "label": return target.getLabel();
case "password": return target.getPassword();
- case "profile": return target.getProfile();
- case "refreshenabled":
- case "refreshEnabled": return target.isRefreshEnabled();
- case "refreshperiod":
- case "refreshPeriod": return target.getRefreshPeriod();
+ case "secrets": return target.getSecrets();
case "springcloudconfigconfiguration":
case "springCloudConfigConfiguration": return target.getSpringCloudConfigConfiguration();
- case "token": return target.getToken();
- case "uris": return target.getUris();
+ case "url": return target.getUrl();
case "username": return target.getUsername();
+ case "verifyssl":
+ case "verifySsl": return target.isVerifySsl();
default: return null;
}
}
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/GcpVaultConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/GcpVaultConfigurationConfigurer.java
index edcc9a89ccd7..7030bbffa188 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/GcpVaultConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/GcpVaultConfigurationConfigurer.java
@@ -27,6 +27,8 @@ public class GcpVaultConfigurationConfigurer extends org.apache.camel.support.co
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -63,6 +65,8 @@ public class GcpVaultConfigurationConfigurer extends org.apache.camel.support.co
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -100,6 +104,8 @@ public class GcpVaultConfigurationConfigurer extends org.apache.camel.support.co
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/GcpVaultConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/GcpVaultConfigurationPropertiesConfigurer.java
index 3ba413b8188b..e65c98abf6b1 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/GcpVaultConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/GcpVaultConfigurationPropertiesConfigurer.java
@@ -24,6 +24,7 @@ public class GcpVaultConfigurationPropertiesConfigurer extends org.apache.camel.
Map<String, Object> map = new CaseInsensitiveMap();
map.put("AwsVaultConfiguration", org.apache.camel.vault.AwsVaultConfiguration.class);
map.put("AzureVaultConfiguration", org.apache.camel.vault.AzureVaultConfiguration.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("GcpVaultConfiguration", org.apache.camel.vault.GcpVaultConfiguration.class);
map.put("HashicorpVaultConfiguration", org.apache.camel.vault.HashicorpVaultConfiguration.class);
map.put("IBMSecretsManagerVaultConfiguration", org.apache.camel.vault.IBMSecretsManagerVaultConfiguration.class);
@@ -48,6 +49,8 @@ public class GcpVaultConfigurationPropertiesConfigurer extends org.apache.camel.
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -89,6 +92,8 @@ public class GcpVaultConfigurationPropertiesConfigurer extends org.apache.camel.
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -126,6 +131,8 @@ public class GcpVaultConfigurationPropertiesConfigurer extends org.apache.camel.
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/HashicorpVaultConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/HashicorpVaultConfigurationConfigurer.java
index 5c50d335664c..1253d894fbd2 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/HashicorpVaultConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/HashicorpVaultConfigurationConfigurer.java
@@ -28,6 +28,8 @@ public class HashicorpVaultConfigurationConfigurer extends org.apache.camel.supp
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
case "cloud": target.setCloud(property(camelContext, boolean.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -57,6 +59,8 @@ public class HashicorpVaultConfigurationConfigurer extends org.apache.camel.supp
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
case "cloud": return boolean.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -87,6 +91,8 @@ public class HashicorpVaultConfigurationConfigurer extends org.apache.camel.supp
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
case "cloud": return target.isCloud();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/HashicorpVaultConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/HashicorpVaultConfigurationPropertiesConfigurer.java
index 36a3c51f79dc..300340992595 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/HashicorpVaultConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/HashicorpVaultConfigurationPropertiesConfigurer.java
@@ -25,6 +25,7 @@ public class HashicorpVaultConfigurationPropertiesConfigurer extends org.apache.
map.put("AwsVaultConfiguration", org.apache.camel.vault.AwsVaultConfiguration.class);
map.put("AzureVaultConfiguration", org.apache.camel.vault.AzureVaultConfiguration.class);
map.put("Cloud", boolean.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("GcpVaultConfiguration", org.apache.camel.vault.GcpVaultConfiguration.class);
map.put("HashicorpVaultConfiguration", org.apache.camel.vault.HashicorpVaultConfiguration.class);
map.put("Host", java.lang.String.class);
@@ -48,6 +49,8 @@ public class HashicorpVaultConfigurationPropertiesConfigurer extends org.apache.
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
case "cloud": target.setCloud(property(camelContext, boolean.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -82,6 +85,8 @@ public class HashicorpVaultConfigurationPropertiesConfigurer extends org.apache.
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
case "cloud": return boolean.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -112,6 +117,8 @@ public class HashicorpVaultConfigurationPropertiesConfigurer extends org.apache.
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
case "cloud": return target.isCloud();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/IBMSecretsManagerVaultConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/IBMSecretsManagerVaultConfigurationConfigurer.java
index fb582583f2f2..7eed4dcb66b4 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/IBMSecretsManagerVaultConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/IBMSecretsManagerVaultConfigurationConfigurer.java
@@ -27,6 +27,8 @@ public class IBMSecretsManagerVaultConfigurationConfigurer extends org.apache.ca
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "eventstreambootstrapservers":
case "eventStreamBootstrapServers": target.setEventStreamBootstrapServers(property(camelContext, java.lang.String.class, value)); return true;
case "eventstreamconsumerpolltimeout":
@@ -68,6 +70,8 @@ public class IBMSecretsManagerVaultConfigurationConfigurer extends org.apache.ca
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "eventstreambootstrapservers":
case "eventStreamBootstrapServers": return java.lang.String.class;
case "eventstreamconsumerpolltimeout":
@@ -110,6 +114,8 @@ public class IBMSecretsManagerVaultConfigurationConfigurer extends org.apache.ca
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "eventstreambootstrapservers":
case "eventStreamBootstrapServers": return target.getEventStreamBootstrapServers();
case "eventstreamconsumerpolltimeout":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/IBMSecretsManagerVaultConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/IBMSecretsManagerVaultConfigurationPropertiesConfigurer.java
index 0b549029015f..786f6e1f3275 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/IBMSecretsManagerVaultConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/IBMSecretsManagerVaultConfigurationPropertiesConfigurer.java
@@ -24,6 +24,7 @@ public class IBMSecretsManagerVaultConfigurationPropertiesConfigurer extends org
Map<String, Object> map = new CaseInsensitiveMap();
map.put("AwsVaultConfiguration", org.apache.camel.vault.AwsVaultConfiguration.class);
map.put("AzureVaultConfiguration", org.apache.camel.vault.AzureVaultConfiguration.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("EventStreamBootstrapServers", java.lang.String.class);
map.put("EventStreamConsumerPollTimeout", long.class);
map.put("EventStreamGroupId", java.lang.String.class);
@@ -51,6 +52,8 @@ public class IBMSecretsManagerVaultConfigurationPropertiesConfigurer extends org
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "eventstreambootstrapservers":
case "eventStreamBootstrapServers": target.setEventStreamBootstrapServers(property(camelContext, java.lang.String.class, value)); return true;
case "eventstreamconsumerpolltimeout":
@@ -97,6 +100,8 @@ public class IBMSecretsManagerVaultConfigurationPropertiesConfigurer extends org
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "eventstreambootstrapservers":
case "eventStreamBootstrapServers": return java.lang.String.class;
case "eventstreamconsumerpolltimeout":
@@ -139,6 +144,8 @@ public class IBMSecretsManagerVaultConfigurationPropertiesConfigurer extends org
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "eventstreambootstrapservers":
case "eventStreamBootstrapServers": return target.getEventStreamBootstrapServers();
case "eventstreamconsumerpolltimeout":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesConfigMapVaultConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesConfigMapVaultConfigurationConfigurer.java
index d0076d8b568c..26b93a1ed095 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesConfigMapVaultConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesConfigMapVaultConfigurationConfigurer.java
@@ -28,6 +28,8 @@ public class KubernetesConfigMapVaultConfigurationConfigurer extends org.apache.
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
case "configmaps": target.setConfigmaps(property(camelContext, java.lang.String.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -54,6 +56,8 @@ public class KubernetesConfigMapVaultConfigurationConfigurer extends org.apache.
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
case "configmaps": return java.lang.String.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -81,6 +85,8 @@ public class KubernetesConfigMapVaultConfigurationConfigurer extends org.apache.
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
case "configmaps": return target.getConfigmaps();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesConfigmapsVaultConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesConfigmapsVaultConfigurationPropertiesConfigurer.java
index 4fed952a1a5a..2a581821a940 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesConfigmapsVaultConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesConfigmapsVaultConfigurationPropertiesConfigurer.java
@@ -25,6 +25,7 @@ public class KubernetesConfigmapsVaultConfigurationPropertiesConfigurer extends
map.put("AwsVaultConfiguration", org.apache.camel.vault.AwsVaultConfiguration.class);
map.put("AzureVaultConfiguration", org.apache.camel.vault.AzureVaultConfiguration.class);
map.put("Configmaps", java.lang.String.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("GcpVaultConfiguration", org.apache.camel.vault.GcpVaultConfiguration.class);
map.put("HashicorpVaultConfiguration", org.apache.camel.vault.HashicorpVaultConfiguration.class);
map.put("IBMSecretsManagerVaultConfiguration", org.apache.camel.vault.IBMSecretsManagerVaultConfiguration.class);
@@ -44,6 +45,8 @@ public class KubernetesConfigmapsVaultConfigurationPropertiesConfigurer extends
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
case "configmaps": target.setConfigmaps(property(camelContext, java.lang.String.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -75,6 +78,8 @@ public class KubernetesConfigmapsVaultConfigurationPropertiesConfigurer extends
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
case "configmaps": return java.lang.String.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -102,6 +107,8 @@ public class KubernetesConfigmapsVaultConfigurationPropertiesConfigurer extends
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
case "configmaps": return target.getConfigmaps();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesVaultConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesVaultConfigurationConfigurer.java
index d3abb96af9e1..28baa8ba4398 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesVaultConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesVaultConfigurationConfigurer.java
@@ -27,6 +27,8 @@ public class KubernetesVaultConfigurationConfigurer extends org.apache.camel.sup
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -53,6 +55,8 @@ public class KubernetesVaultConfigurationConfigurer extends org.apache.camel.sup
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -80,6 +84,8 @@ public class KubernetesVaultConfigurationConfigurer extends org.apache.camel.sup
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesVaultConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesVaultConfigurationPropertiesConfigurer.java
index 04c0b1c5d89c..9f62ef4b96d3 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesVaultConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/KubernetesVaultConfigurationPropertiesConfigurer.java
@@ -24,6 +24,7 @@ public class KubernetesVaultConfigurationPropertiesConfigurer extends org.apache
Map<String, Object> map = new CaseInsensitiveMap();
map.put("AwsVaultConfiguration", org.apache.camel.vault.AwsVaultConfiguration.class);
map.put("AzureVaultConfiguration", org.apache.camel.vault.AzureVaultConfiguration.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("GcpVaultConfiguration", org.apache.camel.vault.GcpVaultConfiguration.class);
map.put("HashicorpVaultConfiguration", org.apache.camel.vault.HashicorpVaultConfiguration.class);
map.put("IBMSecretsManagerVaultConfiguration", org.apache.camel.vault.IBMSecretsManagerVaultConfiguration.class);
@@ -43,6 +44,8 @@ public class KubernetesVaultConfigurationPropertiesConfigurer extends org.apache
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -74,6 +77,8 @@ public class KubernetesVaultConfigurationPropertiesConfigurer extends org.apache
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -101,6 +106,8 @@ public class KubernetesVaultConfigurationPropertiesConfigurer extends org.apache
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationConfigurer.java
index 1604734741d7..39ea98b4d80e 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationConfigurer.java
@@ -27,6 +27,8 @@ public class SpringCloudConfigConfigurationConfigurer extends org.apache.camel.s
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -60,6 +62,8 @@ public class SpringCloudConfigConfigurationConfigurer extends org.apache.camel.s
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -94,6 +98,8 @@ public class SpringCloudConfigConfigurationConfigurer extends org.apache.camel.s
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationPropertiesConfigurer.java b/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationPropertiesConfigurer.java
index 32db893ddd9e..420b15aca1b8 100644
--- a/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationPropertiesConfigurer.java
+++ b/core/camel-main/src/generated/java/org/apache/camel/main/SpringCloudConfigConfigurationPropertiesConfigurer.java
@@ -24,6 +24,7 @@ public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apac
Map<String, Object> map = new CaseInsensitiveMap();
map.put("AwsVaultConfiguration", org.apache.camel.vault.AwsVaultConfiguration.class);
map.put("AzureVaultConfiguration", org.apache.camel.vault.AzureVaultConfiguration.class);
+ map.put("CyberArkVaultConfiguration", org.apache.camel.vault.CyberArkVaultConfiguration.class);
map.put("GcpVaultConfiguration", org.apache.camel.vault.GcpVaultConfiguration.class);
map.put("HashicorpVaultConfiguration", org.apache.camel.vault.HashicorpVaultConfiguration.class);
map.put("IBMSecretsManagerVaultConfiguration", org.apache.camel.vault.IBMSecretsManagerVaultConfiguration.class);
@@ -49,6 +50,8 @@ public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apac
case "awsVaultConfiguration": target.setAwsVaultConfiguration(property(camelContext, org.apache.camel.vault.AwsVaultConfiguration.class, value)); return true;
case "azurevaultconfiguration":
case "azureVaultConfiguration": target.setAzureVaultConfiguration(property(camelContext, org.apache.camel.vault.AzureVaultConfiguration.class, value)); return true;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": target.setCyberArkVaultConfiguration(property(camelContext, org.apache.camel.vault.CyberArkVaultConfiguration.class, value)); return true;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": target.setGcpVaultConfiguration(property(camelContext, org.apache.camel.vault.GcpVaultConfiguration.class, value)); return true;
case "hashicorpvaultconfiguration":
@@ -87,6 +90,8 @@ public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apac
case "awsVaultConfiguration": return org.apache.camel.vault.AwsVaultConfiguration.class;
case "azurevaultconfiguration":
case "azureVaultConfiguration": return org.apache.camel.vault.AzureVaultConfiguration.class;
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return org.apache.camel.vault.CyberArkVaultConfiguration.class;
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return org.apache.camel.vault.GcpVaultConfiguration.class;
case "hashicorpvaultconfiguration":
@@ -121,6 +126,8 @@ public class SpringCloudConfigConfigurationPropertiesConfigurer extends org.apac
case "awsVaultConfiguration": return target.getAwsVaultConfiguration();
case "azurevaultconfiguration":
case "azureVaultConfiguration": return target.getAzureVaultConfiguration();
+ case "cyberarkvaultconfiguration":
+ case "cyberArkVaultConfiguration": return target.getCyberArkVaultConfiguration();
case "gcpvaultconfiguration":
case "gcpVaultConfiguration": return target.getGcpVaultConfiguration();
case "hashicorpvaultconfiguration":
diff --git a/core/camel-main/src/generated/resources/META-INF/camel-main-configuration-metadata.json b/core/camel-main/src/generated/resources/META-INF/camel-main-configuration-metadata.json
index fae5155bcac8..9da54a95bd7f 100644
--- a/core/camel-main/src/generated/resources/META-INF/camel-main-configuration-metadata.json
+++ b/core/camel-main/src/generated/resources/META-INF/camel-main-configuration-metadata.json
@@ -18,6 +18,7 @@
{ "name": "camel.vault.kubernetescm", "description": "Camel Kubernetes Configmaps Vault configurations", "sourceType": "org.apache.camel.vault.KubernetesConfigMapVaultConfiguration" },
{ "name": "camel.vault.hashicorp", "description": "Camel Hashicorp Vault configurations", "sourceType": "org.apache.camel.vault.HashicorpVaultConfiguration" },
{ "name": "camel.vault.ibm", "description": "Camel IBM Secrets Manager Vault configurations", "sourceType": "org.apache.camel.vault.IBMSecretsManagerVaultConfiguration" },
+ { "name": "camel.vault.cyberark", "description": "Camel CyberArk Conjur Vault configurations", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration" },
{ "name": "camel.opentelemetry", "description": "Camel OpenTelemetry configurations", "sourceType": "org.apache.camel.main.OtelConfigurationProperties" },
{ "name": "camel.opentelemetry2", "description": "Camel OpenTelemetry 2 configurations", "sourceType": "org.apache.camel.main.Otel2ConfigurationProperties" },
{ "name": "camel.telemetryDev", "description": "Camel Telemetry Dev configurations", "sourceType": "org.apache.camel.main.TelemetryDevConfigurationProperties" },
@@ -404,6 +405,15 @@
{ "name": "camel.vault.azure.secrets", "required": false, "description": "Specify the secret names (or pattern) to check for updates. Multiple secrets can be separated by comma.", "sourceType": "org.apache.camel.vault.AzureVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
{ "name": "camel.vault.azure.tenantId", "required": false, "description": "The Tenant Id for accessing Azure Key Vault", "sourceType": "org.apache.camel.vault.AzureVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": true },
{ "name": "camel.vault.azure.vaultName", "required": false, "description": "The vault Name in Azure Key Vault", "sourceType": "org.apache.camel.vault.AzureVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.account", "required": false, "description": "The CyberArk Conjur account name", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.apiKey", "required": false, "description": "The API key for authentication", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": true },
+ { "name": "camel.vault.cyberark.authToken", "required": false, "description": "Pre-authenticated token to use", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.certificatePath", "required": false, "description": "Path to the SSL certificate for verification", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.password", "required": false, "description": "The password for authentication", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": true },
+ { "name": "camel.vault.cyberark.secrets", "required": false, "description": "Specify the secret names (or pattern) to check for updates. Multiple secrets can be separated by comma.", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.url", "required": false, "description": "The CyberArk Conjur instance URL", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
+ { "name": "camel.vault.cyberark.username", "required": false, "description": "The username for authentication", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": true },
+ { "name": "camel.vault.cyberark.verifySsl", "required": false, "description": "Whether to verify SSL certificates", "sourceType": "org.apache.camel.vault.CyberArkVaultConfiguration", "type": "boolean", "javaType": "boolean", "defaultValue": false, "secret": false },
{ "name": "camel.vault.gcp.projectId", "required": false, "description": "The GCP Project ID", "sourceType": "org.apache.camel.vault.GcpVaultConfiguration", "type": "string", "javaType": "java.lang.String", "secret": false },
{ "name": "camel.vault.gcp.refreshEnabled", "required": false, "description": "Whether to automatically reload Camel upon secrets being updated in AWS.", "sourceType": "org.apache.camel.vault.GcpVaultConfiguration", "type": "boolean", "javaType": "boolean", "defaultValue": false, "secret": false },
{ "name": "camel.vault.gcp.refreshPeriod", "required": false, "description": "The period (millis) between checking Google for updated secrets.", "sourceType": "org.apache.camel.vault.GcpVaultConfiguration", "type": "integer", "javaType": "long", "defaultValue": 30000, "secret": false },
diff --git a/core/camel-main/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.main.CyberArkVaultConfigurationProperties b/core/camel-main/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.main.CyberArkVaultConfigurationProperties
new file mode 100644
index 000000000000..a4e323b5a5c9
--- /dev/null
+++ b/core/camel-main/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.main.CyberArkVaultConfigurationProperties
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.main.CyberArkVaultConfigurationPropertiesConfigurer
diff --git a/core/camel-main/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.vault.CyberArkVaultConfiguration b/core/camel-main/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.vault.CyberArkVaultConfiguration
new file mode 100644
index 000000000000..ba97fffde468
--- /dev/null
+++ b/core/camel-main/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.vault.CyberArkVaultConfiguration
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.main.CyberArkVaultConfigurationConfigurer
diff --git a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
index c8a91da88184..782b767f1ba3 100644
--- a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
+++ b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
@@ -75,6 +75,7 @@ cron
crypto
cxf
cxfrs
+cyberark-vault
dapr
dataformat
dataset
diff --git a/core/camel-main/src/main/docs/main.adoc b/core/camel-main/src/main/docs/main.adoc
index c922a5d7d954..3baca5cebc5e 100644
--- a/core/camel-main/src/main/docs/main.adoc
+++ b/core/camel-main/src/main/docs/main.adoc
@@ -516,6 +516,24 @@ The camel.vault.ibm supports 10 options, which are listed below.
|===
+=== Camel CyberArk Conjur Vault configurations
+The camel.vault.cyberark supports 9 options, which are listed below.
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *camel.vault.cyberark.account* | The CyberArk Conjur account name | | String
+| *camel.vault.cyberark.apiKey* | The API key for authentication | | String
+| *camel.vault.cyberark.authToken* | Pre-authenticated token to use | | String
+| *camel.vault.cyberark.certificate{zwsp}Path* | Path to the SSL certificate for verification | | String
+| *camel.vault.cyberark.password* | The password for authentication | | String
+| *camel.vault.cyberark.secrets* | Specify the secret names (or pattern) to check for updates. Multiple secrets can be separated by comma. | | String
+| *camel.vault.cyberark.url* | The CyberArk Conjur instance URL | | String
+| *camel.vault.cyberark.username* | The username for authentication | | String
+| *camel.vault.cyberark.verifySsl* | Whether to verify SSL certificates | false | boolean
+|===
+
+
=== Camel OpenTelemetry configurations
The camel.opentelemetry supports 10 options, which are listed below.
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 5a8f17293ad1..11a88fd8d015 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
@@ -2056,6 +2056,9 @@ public abstract class BaseMainSupport extends BaseService {
if ("ibm".equalsIgnoreCase(name)) {
target = target.ibmSecretsManager();
}
+ if ("cyberark".equalsIgnoreCase(name)) {
+ target = target.cyberark();
+ }
// configure all the properties on the vault at once (to ensure they are configured in right order)
OrderedLocationProperties config = MainHelper.extractProperties(properties, name + ".");
setPropertiesOnTarget(camelContext, target, config, "camel.vault." + name + ".", failIfNotSet, true,
diff --git a/core/camel-main/src/main/java/org/apache/camel/main/CyberArkVaultConfigurationProperties.java b/core/camel-main/src/main/java/org/apache/camel/main/CyberArkVaultConfigurationProperties.java
new file mode 100644
index 000000000000..56e6c6d61d5e
--- /dev/null
+++ b/core/camel-main/src/main/java/org/apache/camel/main/CyberArkVaultConfigurationProperties.java
@@ -0,0 +1,116 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.main;
+
+import org.apache.camel.spi.BootstrapCloseable;
+import org.apache.camel.spi.Configurer;
+import org.apache.camel.vault.CyberArkVaultConfiguration;
+
+/**
+ * Configuration for access to Hashicorp Vault Secret.
+ */
+@Configurer(extended = true)
+public class CyberArkVaultConfigurationProperties extends CyberArkVaultConfiguration implements BootstrapCloseable {
+
+ private MainConfigurationProperties parent;
+
+ public CyberArkVaultConfigurationProperties(MainConfigurationProperties parent) {
+ this.parent = parent;
+ }
+
+ public MainConfigurationProperties end() {
+ return parent;
+ }
+
+ @Override
+ public void close() {
+ parent = null;
+ }
+
+ // getter and setters
+ // --------------------------------------------------------------
+
+ // these are inherited from the parent class
+
+ // fluent builders
+ // --------------------------------------------------------------
+
+ /**
+ * The Cyberark Conjur Vault Auth token
+ */
+ public CyberArkVaultConfigurationProperties withAuthToken(String authToken) {
+ setAuthToken(authToken);
+ return this;
+ }
+
+ /**
+ * The Cyberark Conjur Vault instance url
+ */
+ public CyberArkVaultConfigurationProperties withUrl(String url) {
+ setUrl(url);
+ return this;
+ }
+
+ /**
+ * The Cyberark Conjur Vault account
+ */
+ public CyberArkVaultConfigurationProperties withAccount(String account) {
+ setAccount(account);
+ return this;
+ }
+
+ /**
+ * The Cyberark Conjur Vault username
+ */
+ public CyberArkVaultConfigurationProperties withUsername(String username) {
+ setUsername(username);
+ return this;
+ }
+
+ /**
+ * The Cyberark Conjur Vault password
+ */
+ public CyberArkVaultConfigurationProperties withPassword(String password) {
+ setPassword(password);
+ return this;
+ }
+
+ /**
+ * The Cyberark Conjur Vault Api Key
+ */
+ public CyberArkVaultConfigurationProperties withApiKey(String apiKey) {
+ withApiKey(apiKey);
+ return this;
+ }
+
+ /**
+ * The Cyberark Conjur Vault Verify SSL setting
+ */
+ public CyberArkVaultConfigurationProperties withVerifySSL(boolean verifySSL) {
+ withVerifySSL(verifySSL);
+ return this;
+ }
+
+ /**
+ * The Cyberark Conjur Vault Certificate Path
+ */
+ public CyberArkVaultConfigurationProperties withCertificatePath(String certificatePath) {
+ withCertificatePath(certificatePath);
+ return this;
+ }
+
+}
diff --git a/core/camel-main/src/main/java/org/apache/camel/main/VaultConfigurationProperties.java b/core/camel-main/src/main/java/org/apache/camel/main/VaultConfigurationProperties.java
index 78586acafbde..b6cbe5219072 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/VaultConfigurationProperties.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/VaultConfigurationProperties.java
@@ -30,6 +30,7 @@ public class VaultConfigurationProperties extends VaultConfiguration implements
private KubernetesConfigmapsVaultConfigurationProperties kubernetesConfigmaps;
private IBMSecretsManagerVaultConfigurationProperties ibmSecretsManager;
private SpringCloudConfigConfigurationProperties springConfig;
+ private CyberArkVaultConfigurationProperties cyberark;
public VaultConfigurationProperties(MainConfigurationProperties parent) {
this.parent = parent;
@@ -66,6 +67,9 @@ public class VaultConfigurationProperties extends VaultConfiguration implements
if (springConfig != null) {
springConfig.close();
}
+ if (cyberark != null) {
+ cyberark.close();
+ }
}
// getter and setters
@@ -139,4 +143,12 @@ public class VaultConfigurationProperties extends VaultConfiguration implements
}
return springConfig;
}
+
+ @Override
+ public CyberArkVaultConfigurationProperties cyberark() {
+ if (cyberark == null) {
+ cyberark = new CyberArkVaultConfigurationProperties(parent);
+ }
+ return cyberark;
+ }
}
diff --git a/core/camel-main/src/test/java/org/apache/camel/main/MainVaultTest.java b/core/camel-main/src/test/java/org/apache/camel/main/MainVaultTest.java
index 4ecc71345776..e75df3a6eb07 100644
--- a/core/camel-main/src/test/java/org/apache/camel/main/MainVaultTest.java
+++ b/core/camel-main/src/test/java/org/apache/camel/main/MainVaultTest.java
@@ -488,4 +488,45 @@ public class MainVaultTest {
Assertions.assertEquals("http://ibm.cloud.com", cfg.getServiceUrl());
main.stop();
}
+
+ @Test
+ public void testMainCyberarkConjur() {
+ Main main = new Main();
+
+ main.addInitialProperty("camel.vault.cyberark.url", "http://conjur.com");
+ main.addInitialProperty("camel.vault.cyberark.authToken", "token");
+
+ main.start();
+
+ CamelContext context = main.getCamelContext();
+ assertNotNull(context);
+
+ CyberArkVaultConfiguration cfg = context.getVaultConfiguration().cyberark();
+ assertNotNull(cfg);
+
+ Assertions.assertEquals("token", cfg.getAuthToken());
+ Assertions.assertEquals("http://conjur.com", cfg.getUrl());
+ main.stop();
+ }
+
+ @Test
+ public void testMainCyberarkConjurFluent() {
+ Main main = new Main();
+ main.configure().vault().cyberark()
+ .withAuthToken("token")
+ .withUrl("http://conjur.com")
+ .end();
+
+ main.start();
+
+ CamelContext context = main.getCamelContext();
+ assertNotNull(context);
+
+ CyberArkVaultConfiguration cfg = context.getVaultConfiguration().cyberark();
+ assertNotNull(cfg);
+
+ Assertions.assertEquals("token", cfg.getAuthToken());
+ Assertions.assertEquals("http://conjur.com", cfg.getUrl());
+ main.stop();
+ }
}
diff --git a/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java b/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java
index 9e8a851c23f2..590ce27fbcde 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java
@@ -43,6 +43,7 @@ public final class SensitiveUtils {
"authenticationtoken",
"authkey",
"authorizationtoken",
+ "authtoken",
"blobaccesskey",
"blobstoragesharedkeycredential",
"certresourcepassword",
@@ -129,6 +130,7 @@ public final class SensitiveUtils {
+ "|\\Qauthenticationtoken\\E"
+ "|\\Qauthkey\\E"
+ "|\\Qauthorizationtoken\\E"
+ + "|\\Qauthtoken\\E"
+ "|\\Qblobaccesskey\\E"
+ "|\\Qblobstoragesharedkeycredential\\E"
+ "|\\Qcertresourcepassword\\E"
diff --git a/docs/components/modules/ROOT/examples/json/cyberark-vault.json b/docs/components/modules/ROOT/examples/json/cyberark-vault.json
new file mode 120000
index 000000000000..e60d1d232264
--- /dev/null
+++ b/docs/components/modules/ROOT/examples/json/cyberark-vault.json
@@ -0,0 +1 @@
+../../../../../../components/camel-cyberark-vault/src/generated/resources/META-INF/org/apache/camel/component/cyberark/vault/cyberark-vault.json
\ No newline at end of file
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index f6bb8a5f7281..c70152c7e090 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -310,6 +310,7 @@
** xref:scheduler-component.adoc[Scheduler]
** xref:schematron-component.adoc[Schematron]
** xref:scp-component.adoc[SCP]
+*** xref:cyberark-vault-component.adoc[CyberArk Vault]
** xref:seda-component.adoc[SEDA]
** xref:service-component.adoc[Service]
** xref:servicenow-component.adoc[ServiceNow]
diff --git a/docs/components/modules/ROOT/pages/cyberark-vault-component.adoc b/docs/components/modules/ROOT/pages/cyberark-vault-component.adoc
new file mode 120000
index 000000000000..c17ac12b45ef
--- /dev/null
+++ b/docs/components/modules/ROOT/pages/cyberark-vault-component.adoc
@@ -0,0 +1 @@
+../../../../../components/camel-cyberark-vault/src/main/docs/cyberark-vault-component.adoc
\ No newline at end of file
diff --git a/docs/user-manual/modules/ROOT/pages/security.adoc b/docs/user-manual/modules/ROOT/pages/security.adoc
index b946dd8c2af0..ea5bded5a8be 100644
--- a/docs/user-manual/modules/ROOT/pages/security.adoc
+++ b/docs/user-manual/modules/ROOT/pages/security.adoc
@@ -74,6 +74,7 @@ The following _Vaults_ are supported by Camel:
* xref:components::google-secret-manager-component.adoc[Google Secret Manager]
* xref:components::azure-key-vault-component.adoc[Azure Key Vault]
* xref:components::hashicorp-vault-component.adoc[Hashicorp Vault]
+* xref:components::cyberark-vault-component.adoc[CyberArk Conjur]
==== Using AWS Vault
@@ -714,6 +715,162 @@ This approach will return the username field of the database secret with version
The only requirement is adding the camel-ibm-secrets-manager jar to your Camel application.
+==== Using CyberArk Conjur Vault
+
+To use this function, you'll need to provide credentials for CyberArk Conjur as environment variables:
+
+[source,bash]
+----
+export CAMEL_VAULT_CYBERARK_URL=https://conjur.example.com
+export CAMEL_VAULT_CYBERARK_ACCOUNT=myaccount
+export CAMEL_VAULT_CYBERARK_USERNAME=admin
+export CAMEL_VAULT_CYBERARK_API_KEY=3ahx8dy3...
+----
+
+You can also configure the credentials in the `application.properties` file such as:
+
+[source,properties]
+----
+camel.vault.cyberark.url = https://conjur.example.com
+camel.vault.cyberark.account = myaccount
+camel.vault.cyberark.username = admin
+camel.vault.cyberark.apiKey = 3ahx8dy3...
+----
+
+Alternatively, you can use username and password authentication:
+
+[source,bash]
+----
+export CAMEL_VAULT_CYBERARK_URL=https://conjur.example.com
+export CAMEL_VAULT_CYBERARK_ACCOUNT=myaccount
+export CAMEL_VAULT_CYBERARK_USERNAME=admin
+export CAMEL_VAULT_CYBERARK_PASSWORD=secretpassword
+----
+
+Or in `application.properties`:
+
+[source,properties]
+----
+camel.vault.cyberark.url = https://conjur.example.com
+camel.vault.cyberark.account = myaccount
+camel.vault.cyberark.username = admin
+camel.vault.cyberark.password = secretpassword
+----
+
+NOTE: If you're running the application on a Kubernetes based cloud platform, you can initialize the environment variables from a Secret or ConfigMap to enhance security.
+
+At this point, you'll be able to reference a property in the following way:
+
+[source,xml]
+----
+<camelContext>
+ <route>
+ <from uri="direct:start"/>
+ <to uri="{{cyberark:route}}"/>
+ </route>
+</camelContext>
+----
+
+Where `route` will be the name of the secret (variable) stored in the CyberArk Conjur Vault instance.
+
+You could specify a default value in case the secret is not present on CyberArk Conjur:
+
+[source,xml]
+----
+<camelContext>
+ <route>
+ <from uri="direct:start"/>
+ <to uri="{{cyberark:route:default}}"/>
+ </route>
+</camelContext>
+----
+
+In this case, if the secret doesn't exist, the property will fall back to "default" as value.
+
+Also, you are able to get a particular field of the secret, if you have, for example, a secret named database of this form:
+
+[source,json]
+----
+{
+ "username": "admin",
+ "password": "password123",
+ "engine": "postgres",
+ "host": "127.0.0.1",
+ "port": "3128",
+ "dbname": "db"
+}
+----
+
+You're able to get single secret value in your route, like for example:
+
+[source,xml]
+----
+<camelContext>
+ <route>
+ <from uri="direct:start"/>
+ <log message="Username is {{cyberark:database#username}}"/>
+ </route>
+</camelContext>
+----
+
+Or re-use the property as part of an endpoint.
+
+You could specify a default value in case the particular field of secret is not present on CyberArk Conjur:
+
+[source,xml]
+----
+<camelContext>
+ <route>
+ <from uri="direct:start"/>
+ <log message="Username is {{cyberark:database#username:admin}}"/>
+ </route>
+</camelContext>
+----
+
+In this case, if the secret doesn't exist or the secret exists but the username field is not part of the secret, the property will fall back to "admin" as value.
+
+There is also the syntax to get a particular version of the secret for both the approaches, with field/default value specified or only with secret:
+
+[source,xml]
+----
+<camelContext>
+ <route>
+ <from uri="direct:start"/>
+ <to uri="{{cyberark:route@2}}"/>
+ </route>
+</camelContext>
+----
+
+This approach will return the RAW route secret with version '2'.
+
+[source,xml]
+----
+<camelContext>
+ <route>
+ <from uri="direct:start"/>
+ <to uri="{{cyberark:route:default@2}}"/>
+ </route>
+</camelContext>
+----
+
+This approach will return the route secret value with version '2' or default value in case the secret doesn't exist or the version doesn't exist.
+
+[source,xml]
+----
+<camelContext>
+ <route>
+ <from uri="direct:start"/>
+ <log message="Username is {{cyberark:database#username:admin@2}}"/>
+ </route>
+</camelContext>
+----
+
+This approach will return the username field of the database secret with version '2' or admin in case the secret doesn't exist or the version doesn't exist.
+
+NOTE: CyberArk Conjur requires secrets (variables) to be defined in a policy file before they can be set. See the xref:components::cyberark-vault-component.adoc[CyberArk Vault component documentation] for details on setting up policies.
+
+The only requirement is adding the camel-cyberark-vault jar to your Camel application.
+
==== Automatic Camel context reloading on Secret Refresh while using AWS Secrets Manager
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).
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 951f8d7129e7..83b2eee07f49 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -1067,6 +1067,19 @@ public interface ComponentsBuilderFactory {
static CxfrsComponentBuilderFactory.CxfrsComponentBuilder cxfrs() {
return CxfrsComponentBuilderFactory.cxfrs();
}
+ /**
+ * CyberArk Vault (camel-cyberark-vault)
+ * Retrieve secrets from CyberArk Conjur Vault.
+ *
+ * Category: cloud,security
+ * Since: 4.17
+ * Maven coordinates: org.apache.camel:camel-cyberark-vault
+ *
+ * @return the dsl builder
+ */
+ static CyberarkVaultComponentBuilderFactory.CyberarkVaultComponentBuilder cyberarkVault() {
+ return CyberarkVaultComponentBuilderFactory.cyberarkVault();
+ }
/**
* Dapr (camel-dapr)
* Dapr component which interfaces with Dapr Building Blocks.
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CyberarkVaultComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CyberarkVaultComponentBuilderFactory.java
new file mode 100644
index 000000000000..2fd7298616db
--- /dev/null
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CyberarkVaultComponentBuilderFactory.java
@@ -0,0 +1,307 @@
+/* Generated by camel build tools - do NOT edit this file! */
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.builder.component.dsl;
+
+import javax.annotation.processing.Generated;
+import org.apache.camel.Component;
+import org.apache.camel.builder.component.AbstractComponentBuilder;
+import org.apache.camel.builder.component.ComponentBuilder;
+import org.apache.camel.component.cyberark.vault.CyberArkVaultComponent;
+
+/**
+ * Retrieve secrets from CyberArk Conjur Vault.
+ *
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
+public interface CyberarkVaultComponentBuilderFactory {
+
+ /**
+ * CyberArk Vault (camel-cyberark-vault)
+ * Retrieve secrets from CyberArk Conjur Vault.
+ *
+ * Category: cloud,security
+ * Since: 4.17
+ * Maven coordinates: org.apache.camel:camel-cyberark-vault
+ *
+ * @return the dsl builder
+ */
+ static CyberarkVaultComponentBuilder cyberarkVault() {
+ return new CyberarkVaultComponentBuilderImpl();
+ }
+
+ /**
+ * Builder for the CyberArk Vault component.
+ */
+ interface CyberarkVaultComponentBuilder extends ComponentBuilder<CyberArkVaultComponent> {
+
+ /**
+ * The CyberArk Conjur account name.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer
+ *
+ * @param account the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder account(java.lang.String account) {
+ doSetProperty("account", account);
+ return this;
+ }
+
+ /**
+ * Path to the SSL certificate for verification.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer
+ *
+ * @param certificatePath the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder certificatePath(java.lang.String certificatePath) {
+ doSetProperty("certificatePath", certificatePath);
+ return this;
+ }
+
+ /**
+ * Component configuration.
+ *
+ * The option is a:
+ * <code>org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration</code> type.
+ *
+ * Group: producer
+ *
+ * @param configuration the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder configuration(org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration configuration) {
+ doSetProperty("configuration", configuration);
+ return this;
+ }
+
+ /**
+ * Reference to a ConjurClient instance in the registry.
+ *
+ * The option is a:
+ * <code>org.apache.camel.component.cyberark.vault.client.ConjurClient</code> type.
+ *
+ * Group: producer
+ *
+ * @param conjurClient the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder conjurClient(org.apache.camel.component.cyberark.vault.client.ConjurClient conjurClient) {
+ doSetProperty("conjurClient", conjurClient);
+ return this;
+ }
+
+
+ /**
+ * Whether the producer should be started lazy (on the first message).
+ * By starting lazy you can use this to allow CamelContext and routes to
+ * startup in situations where a producer may otherwise fail during
+ * starting and cause the route to fail being started. By deferring this
+ * startup to be lazy then the startup failure can be handled during
+ * routing messages via Camel's routing error handlers. Beware that when
+ * the first message is processed then creating and starting the
+ * producer may take a little time and prolong the total processing time
+ * of the processing.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: producer
+ *
+ * @param lazyStartProducer the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder lazyStartProducer(boolean lazyStartProducer) {
+ doSetProperty("lazyStartProducer", lazyStartProducer);
+ return this;
+ }
+
+ /**
+ * The secret ID to retrieve from CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer
+ *
+ * @param secretId the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder secretId(java.lang.String secretId) {
+ doSetProperty("secretId", secretId);
+ return this;
+ }
+
+ /**
+ * The CyberArk Conjur instance URL.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer
+ *
+ * @param url the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder url(java.lang.String url) {
+ doSetProperty("url", url);
+ return this;
+ }
+
+
+ /**
+ * Whether to verify SSL certificates when connecting to CyberArk
+ * Conjur.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: producer
+ *
+ * @param verifySsl the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder verifySsl(boolean verifySsl) {
+ doSetProperty("verifySsl", verifySsl);
+ return this;
+ }
+
+
+ /**
+ * Whether autowiring is enabled. This is used for automatic autowiring
+ * options (the option must be marked as autowired) by looking up in the
+ * registry to find if there is a single instance of matching type,
+ * which then gets configured on the component. This can be used for
+ * automatic configuring JDBC data sources, JMS connection factories,
+ * AWS Clients, etc.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: advanced
+ *
+ * @param autowiredEnabled the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder autowiredEnabled(boolean autowiredEnabled) {
+ doSetProperty("autowiredEnabled", autowiredEnabled);
+ return this;
+ }
+
+ /**
+ * The API key for authentication with CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: security
+ *
+ * @param apiKey the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder apiKey(java.lang.String apiKey) {
+ doSetProperty("apiKey", apiKey);
+ return this;
+ }
+
+ /**
+ * Pre-authenticated token to use for CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: security
+ *
+ * @param authToken the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder authToken(java.lang.String authToken) {
+ doSetProperty("authToken", authToken);
+ return this;
+ }
+
+ /**
+ * The password for authentication with CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: security
+ *
+ * @param password the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder password(java.lang.String password) {
+ doSetProperty("password", password);
+ return this;
+ }
+
+ /**
+ * The username for authentication with CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: security
+ *
+ * @param username the value to set
+ * @return the dsl builder
+ */
+ default CyberarkVaultComponentBuilder username(java.lang.String username) {
+ doSetProperty("username", username);
+ return this;
+ }
+ }
+
+ class CyberarkVaultComponentBuilderImpl
+ extends AbstractComponentBuilder<CyberArkVaultComponent>
+ implements CyberarkVaultComponentBuilder {
+ @Override
+ protected CyberArkVaultComponent buildConcreteComponent() {
+ return new CyberArkVaultComponent();
+ }
+ private org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration getOrCreateConfiguration(CyberArkVaultComponent component) {
+ if (component.getConfiguration() == null) {
+ component.setConfiguration(new org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration());
+ }
+ return component.getConfiguration();
+ }
+ @Override
+ protected boolean setPropertyOnComponent(
+ Component component,
+ String name,
+ Object value) {
+ switch (name) {
+ case "account": getOrCreateConfiguration((CyberArkVaultComponent) component).setAccount((java.lang.String) value); return true;
+ case "certificatePath": getOrCreateConfiguration((CyberArkVaultComponent) component).setCertificatePath((java.lang.String) value); return true;
+ case "configuration": ((CyberArkVaultComponent) component).setConfiguration((org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration) value); return true;
+ case "conjurClient": getOrCreateConfiguration((CyberArkVaultComponent) component).setConjurClient((org.apache.camel.component.cyberark.vault.client.ConjurClient) value); return true;
+ case "lazyStartProducer": ((CyberArkVaultComponent) component).setLazyStartProducer((boolean) value); return true;
+ case "secretId": getOrCreateConfiguration((CyberArkVaultComponent) component).setSecretId((java.lang.String) value); return true;
+ case "url": getOrCreateConfiguration((CyberArkVaultComponent) component).setUrl((java.lang.String) value); return true;
+ case "verifySsl": getOrCreateConfiguration((CyberArkVaultComponent) component).setVerifySsl((boolean) value); return true;
+ case "autowiredEnabled": ((CyberArkVaultComponent) component).setAutowiredEnabled((boolean) value); return true;
+ case "apiKey": getOrCreateConfiguration((CyberArkVaultComponent) component).setApiKey((java.lang.String) value); return true;
+ case "authToken": getOrCreateConfiguration((CyberArkVaultComponent) component).setAuthToken((java.lang.String) value); return true;
+ case "password": getOrCreateConfiguration((CyberArkVaultComponent) component).setPassword((java.lang.String) value); return true;
+ case "username": getOrCreateConfiguration((CyberArkVaultComponent) component).setUsername((java.lang.String) value); return true;
+ default: return false;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index 338a8e80c765..e850b3d933a4 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -73,6 +73,7 @@ public interface EndpointBuilderFactory
org.apache.camel.builder.endpoint.dsl.Cw2EndpointBuilderFactory.Cw2Builders,
org.apache.camel.builder.endpoint.dsl.CxfEndpointBuilderFactory.CxfBuilders,
org.apache.camel.builder.endpoint.dsl.CxfRsEndpointBuilderFactory.CxfRsBuilders,
+ org.apache.camel.builder.endpoint.dsl.CyberArkVaultEndpointBuilderFactory.CyberArkVaultBuilders,
org.apache.camel.builder.endpoint.dsl.DJLEndpointBuilderFactory.DJLBuilders,
org.apache.camel.builder.endpoint.dsl.DMSEndpointBuilderFactory.DMSBuilders,
org.apache.camel.builder.endpoint.dsl.DaprEndpointBuilderFactory.DaprBuilders,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index 79182ec6e32e..f4c73d249d9f 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -70,6 +70,7 @@ public interface EndpointBuilders
org.apache.camel.builder.endpoint.dsl.Cw2EndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.CxfEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.CxfRsEndpointBuilderFactory,
+ org.apache.camel.builder.endpoint.dsl.CyberArkVaultEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.DJLEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.DMSEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.DaprEndpointBuilderFactory,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 7aef5ef86bc9..280854998f30 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -3385,6 +3385,46 @@ public class StaticEndpointBuilders {
public static CxfRsEndpointBuilderFactory.CxfRsEndpointBuilder cxfrs(String componentName, String path) {
return CxfRsEndpointBuilderFactory.endpointBuilder(componentName, path);
}
+ /**
+ * CyberArk Vault (camel-cyberark-vault)
+ * Retrieve secrets from CyberArk Conjur Vault.
+ *
+ * Category: cloud,security
+ * Since: 4.17
+ * Maven coordinates: org.apache.camel:camel-cyberark-vault
+ *
+ * Syntax: <code>cyberark-vault:label</code>
+ *
+ * Path parameter: label (required)
+ * Logical name
+ *
+ * @param path label
+ * @return the dsl builder
+ */
+ public static CyberArkVaultEndpointBuilderFactory.CyberArkVaultEndpointBuilder cyberarkVault(String path) {
+ return cyberarkVault("cyberark-vault", path);
+ }
+ /**
+ * CyberArk Vault (camel-cyberark-vault)
+ * Retrieve secrets from CyberArk Conjur Vault.
+ *
+ * Category: cloud,security
+ * Since: 4.17
+ * Maven coordinates: org.apache.camel:camel-cyberark-vault
+ *
+ * Syntax: <code>cyberark-vault:label</code>
+ *
+ * Path parameter: label (required)
+ * Logical name
+ *
+ * @param componentName to use a custom component name for the endpoint
+ * instead of the default name
+ * @param path label
+ * @return the dsl builder
+ */
+ public static CyberArkVaultEndpointBuilderFactory.CyberArkVaultEndpointBuilder cyberarkVault(String componentName, String path) {
+ return CyberArkVaultEndpointBuilderFactory.endpointBuilder(componentName, path);
+ }
/**
* Dapr (camel-dapr)
* Dapr component which interfaces with Dapr Building Blocks.
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CyberArkVaultEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CyberArkVaultEndpointBuilderFactory.java
new file mode 100644
index 000000000000..01866351a578
--- /dev/null
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CyberArkVaultEndpointBuilderFactory.java
@@ -0,0 +1,334 @@
+/* Generated by camel build tools - do NOT edit this file! */
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.builder.endpoint.dsl;
+
+import java.util.*;
+import java.util.concurrent.*;
+import java.util.function.*;
+import java.util.stream.*;
+import javax.annotation.processing.Generated;
+import org.apache.camel.builder.EndpointConsumerBuilder;
+import org.apache.camel.builder.EndpointProducerBuilder;
+import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
+
+/**
+ * Retrieve secrets from CyberArk Conjur Vault.
+ *
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
+public interface CyberArkVaultEndpointBuilderFactory {
+
+ /**
+ * Builder for endpoint for the CyberArk Vault component.
+ */
+ public interface CyberArkVaultEndpointBuilder
+ extends
+ EndpointProducerBuilder {
+ default AdvancedCyberArkVaultEndpointBuilder advanced() {
+ return (AdvancedCyberArkVaultEndpointBuilder) this;
+ }
+
+ /**
+ * The CyberArk Conjur account name.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Required: true
+ * Group: producer
+ *
+ * @param account the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder account(String account) {
+ doSetProperty("account", account);
+ return this;
+ }
+ /**
+ * Path to the SSL certificate for verification.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer
+ *
+ * @param certificatePath the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder certificatePath(String certificatePath) {
+ doSetProperty("certificatePath", certificatePath);
+ return this;
+ }
+ /**
+ * Reference to a ConjurClient instance in the registry.
+ *
+ * The option is a:
+ * <code>org.apache.camel.component.cyberark.vault.client.ConjurClient</code> type.
+ *
+ * Group: producer
+ *
+ * @param conjurClient the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder conjurClient(org.apache.camel.component.cyberark.vault.client.ConjurClient conjurClient) {
+ doSetProperty("conjurClient", conjurClient);
+ return this;
+ }
+ /**
+ * Reference to a ConjurClient instance in the registry.
+ *
+ * The option will be converted to a
+ * <code>org.apache.camel.component.cyberark.vault.client.ConjurClient</code> type.
+ *
+ * Group: producer
+ *
+ * @param conjurClient the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder conjurClient(String conjurClient) {
+ doSetProperty("conjurClient", conjurClient);
+ return this;
+ }
+ /**
+ * The secret ID to retrieve from CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer
+ *
+ * @param secretId the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder secretId(String secretId) {
+ doSetProperty("secretId", secretId);
+ return this;
+ }
+ /**
+ * The CyberArk Conjur instance URL.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Required: true
+ * Group: producer
+ *
+ * @param url the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder url(String url) {
+ doSetProperty("url", url);
+ return this;
+ }
+ /**
+ * Whether to verify SSL certificates when connecting to CyberArk
+ * Conjur.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: producer
+ *
+ * @param verifySsl the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder verifySsl(boolean verifySsl) {
+ doSetProperty("verifySsl", verifySsl);
+ return this;
+ }
+ /**
+ * Whether to verify SSL certificates when connecting to CyberArk
+ * Conjur.
+ *
+ * The option will be converted to a <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: producer
+ *
+ * @param verifySsl the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder verifySsl(String verifySsl) {
+ doSetProperty("verifySsl", verifySsl);
+ return this;
+ }
+ /**
+ * The API key for authentication with CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: security
+ *
+ * @param apiKey the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder apiKey(String apiKey) {
+ doSetProperty("apiKey", apiKey);
+ return this;
+ }
+ /**
+ * Pre-authenticated token to use for CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: security
+ *
+ * @param authToken the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder authToken(String authToken) {
+ doSetProperty("authToken", authToken);
+ return this;
+ }
+ /**
+ * The password for authentication with CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: security
+ *
+ * @param password the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder password(String password) {
+ doSetProperty("password", password);
+ return this;
+ }
+ /**
+ * The username for authentication with CyberArk Conjur.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: security
+ *
+ * @param username the value to set
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder username(String username) {
+ doSetProperty("username", username);
+ return this;
+ }
+ }
+
+ /**
+ * Advanced builder for endpoint for the CyberArk Vault component.
+ */
+ public interface AdvancedCyberArkVaultEndpointBuilder
+ extends
+ EndpointProducerBuilder {
+ default CyberArkVaultEndpointBuilder basic() {
+ return (CyberArkVaultEndpointBuilder) this;
+ }
+
+ /**
+ * Whether the producer should be started lazy (on the first message).
+ * By starting lazy you can use this to allow CamelContext and routes to
+ * startup in situations where a producer may otherwise fail during
+ * starting and cause the route to fail being started. By deferring this
+ * startup to be lazy then the startup failure can be handled during
+ * routing messages via Camel's routing error handlers. Beware that when
+ * the first message is processed then creating and starting the
+ * producer may take a little time and prolong the total processing time
+ * of the processing.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: producer (advanced)
+ *
+ * @param lazyStartProducer the value to set
+ * @return the dsl builder
+ */
+ default AdvancedCyberArkVaultEndpointBuilder lazyStartProducer(boolean lazyStartProducer) {
+ doSetProperty("lazyStartProducer", lazyStartProducer);
+ return this;
+ }
+ /**
+ * Whether the producer should be started lazy (on the first message).
+ * By starting lazy you can use this to allow CamelContext and routes to
+ * startup in situations where a producer may otherwise fail during
+ * starting and cause the route to fail being started. By deferring this
+ * startup to be lazy then the startup failure can be handled during
+ * routing messages via Camel's routing error handlers. Beware that when
+ * the first message is processed then creating and starting the
+ * producer may take a little time and prolong the total processing time
+ * of the processing.
+ *
+ * The option will be converted to a <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: producer (advanced)
+ *
+ * @param lazyStartProducer the value to set
+ * @return the dsl builder
+ */
+ default AdvancedCyberArkVaultEndpointBuilder lazyStartProducer(String lazyStartProducer) {
+ doSetProperty("lazyStartProducer", lazyStartProducer);
+ return this;
+ }
+ }
+
+ public interface CyberArkVaultBuilders {
+ /**
+ * CyberArk Vault (camel-cyberark-vault)
+ * Retrieve secrets from CyberArk Conjur Vault.
+ *
+ * Category: cloud,security
+ * Since: 4.17
+ * Maven coordinates: org.apache.camel:camel-cyberark-vault
+ *
+ * Syntax: <code>cyberark-vault:label</code>
+ *
+ * Path parameter: label (required)
+ * Logical name
+ *
+ * @param path label
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder cyberarkVault(String path) {
+ return CyberArkVaultEndpointBuilderFactory.endpointBuilder("cyberark-vault", path);
+ }
+ /**
+ * CyberArk Vault (camel-cyberark-vault)
+ * Retrieve secrets from CyberArk Conjur Vault.
+ *
+ * Category: cloud,security
+ * Since: 4.17
+ * Maven coordinates: org.apache.camel:camel-cyberark-vault
+ *
+ * Syntax: <code>cyberark-vault:label</code>
+ *
+ * Path parameter: label (required)
+ * Logical name
+ *
+ * @param componentName to use a custom component name for the endpoint
+ * instead of the default name
+ * @param path label
+ * @return the dsl builder
+ */
+ default CyberArkVaultEndpointBuilder cyberarkVault(String componentName, String path) {
+ return CyberArkVaultEndpointBuilderFactory.endpointBuilder(componentName, path);
+ }
+
+ }
+ static CyberArkVaultEndpointBuilder endpointBuilder(String componentName, String path) {
+ class CyberArkVaultEndpointBuilderImpl extends AbstractEndpointBuilder implements CyberArkVaultEndpointBuilder, AdvancedCyberArkVaultEndpointBuilder {
+ public CyberArkVaultEndpointBuilderImpl(String path) {
+ super(componentName, path);
+ }
+ }
+ return new CyberArkVaultEndpointBuilderImpl(path);
+ }
+}
\ No newline at end of file
diff --git a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
index 0a4ec605b1ce..68eafc5c6409 100644
--- a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
+++ b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
@@ -88,6 +88,7 @@ org.apache.camel.component.cron.CronComponent=camel:cron
org.apache.camel.component.crypto.DigitalSignatureComponent=camel:crypto
org.apache.camel.component.cxf.jaxrs.CxfRsComponent=camel:cxf-rest
org.apache.camel.component.cxf.jaxws.CxfComponent=camel:cxf-soap
+org.apache.camel.component.cyberark.vault.CyberArkVaultComponent=camel:cyberark-vault
org.apache.camel.component.dapr.DaprComponent=camel:dapr
org.apache.camel.component.dataformat.DataFormatComponent=camel:dataformat
org.apache.camel.component.dataset.DataSetComponent=camel:dataset
diff --git a/parent/pom.xml b/parent/pom.xml
index 5be71ff7f3f9..6ff1bcc38b98 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -1171,6 +1171,11 @@
<artifactId>camel-cxf-transport</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cyberark-vault</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-dapr</artifactId>
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCamelMainMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCamelMainMojo.java
index 39bff690a962..146730415070 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCamelMainMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCamelMainMojo.java
@@ -221,6 +221,8 @@ public class PrepareCamelMainMojo extends AbstractGeneratorMojo {
prefix = "camel.vault.ibm.";
} else if (file.getName().contains("SpringCloudConfig")) {
prefix = "camel.vault.springConfig.";
+ } else if (file.getName().contains("CyberArkVault")) {
+ prefix = "camel.vault.cyberark.";
} else if (file.getName().contains("Health")) {
prefix = "camel.health.";
} else if (file.getName().contains("StartupCondition")) {
@@ -355,6 +357,16 @@ public class PrepareCamelMainMojo extends AbstractGeneratorMojo {
throw new MojoFailureException("Error parsing file " + ibmVaultConfig + " due " + e.getMessage(), e);
}
+ File cyberarkVaultConfig
+ = new File(camelApiDir, "src/main/java/org/apache/camel/vault/CyberArkVaultConfiguration.java");
+ try {
+ List<MainModel.MainOptionModel> model = parseConfigurationSource(cyberarkVaultConfig);
+ model.forEach(m -> m.setName("camel.vault.cyberark." + m.getName()));
+ data.addAll(model);
+ } catch (Exception e) {
+ throw new MojoFailureException("Error parsing file " + cyberarkVaultConfig + " due " + e.getMessage(), e);
+ }
+
// lets sort so they are always ordered (but camel.main in top)
data.sort((o1, o2) -> {
if (o1.getName().startsWith("camel.main.") && !o2.getName().startsWith("camel.main.")) {
@@ -436,6 +448,10 @@ public class PrepareCamelMainMojo extends AbstractGeneratorMojo {
new MainGroupModel(
"camel.vault.ibm", "Camel IBM Secrets Manager Vault configurations",
"org.apache.camel.vault.IBMSecretsManagerVaultConfiguration"));
+ model.getGroups().add(
+ new MainGroupModel(
+ "camel.vault.cyberark", "Camel CyberArk Conjur Vault configurations",
+ "org.apache.camel.vault.CyberArkVaultConfiguration"));
model.getGroups().add(new MainGroupModel(
"camel.opentelemetry", "Camel OpenTelemetry configurations",
"org.apache.camel.main.OtelConfigurationProperties"));