This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 8f9e456c7d5f948a5ba6bcc15ac50e67bde5ba31 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 19:52:53 2026 +0100 CAMEL-23832: camel-azure-key-vault - improve the component and option descriptions This commit rewrites the component description and the texts of 7 endpoint options and 3 headers of azure-key-vault. The old component description named keys, but the component only handles secrets. The new texts say which options each credential type uses, that secretClient replaces them, which operations need which header, and what createSecret, getSecret and updateSecretProperties do in Azure Key Vault. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-azure-key-vault is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../camel/catalog/components/azure-key-vault.json | 22 +++--- .../catalog/docs/azure-key-vault-component.adoc | 2 +- .../component/azure/key/vault/azure-key-vault.json | 22 +++--- .../src/main/docs/azure-key-vault-component.adoc | 2 +- .../azure/key/vault/KeyVaultConfiguration.java | 54 +++++++-------- .../azure/key/vault/KeyVaultConstants.java | 13 +++- .../azure/key/vault/KeyVaultEndpoint.java | 2 +- .../component/ComponentsBuilderFactory.java | 2 +- .../dsl/AzureKeyVaultComponentBuilderFactory.java | 4 +- .../builder/endpoint/EndpointHeaderBuilders.java | 2 +- .../builder/endpoint/StaticEndpointBuilders.java | 12 ++-- .../dsl/KeyVaultEndpointBuilderFactory.java | 79 +++++++++++++++++----- tasks/component-descriptions.md | 2 +- 13 files changed, 135 insertions(+), 83 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-key-vault.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-key-vault.json index be8c3c354f99..3682deb138a5 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-key-vault.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-key-vault.json @@ -3,7 +3,7 @@ "kind": "component", "name": "azure-key-vault", "title": "Azure Key Vault", - "description": "Manage secrets and keys in Azure Key Vault Service", + "description": "Create, get, update, delete and purge secrets in Azure Key Vault.", "deprecated": false, "firstVersion": "3.17.0", "label": "cloud,cloud", @@ -29,22 +29,22 @@ "autowiredEnabled": { "index": 1, "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 [...] }, "headers": { - "CamelAzureKeyVaultProducerOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.azure.key.vault.KeyVaultOperation", "enum": [ "createSecret", "getSecret", "updateSecretProperties", "deleteSecret", "purgeDeletedSecret" ], "deprecated": false, "autowired": false, "secret": false, "description": "Overrides the desired operation to be used in the producer.", "constantName": "org [...] - "CamelAzureKeyVaultSecretName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The secret name to be used in Key Vault", "constantName": "org.apache.camel.component.azure.key.vault.KeyVaultConstants#SECRET_NAME" }, - "CamelAzureKeyVaultSecretProperties": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "com.azure.security.keyvault.secrets.models.SecretProperties", "deprecated": false, "autowired": false, "secret": false, "description": "The secret properties to be used in Key Vault for updating a secret", "constantName": "org.apache.camel.component.azure.key.vault.KeyVaultConstants#SECRET_PROPERTIES" } + "CamelAzureKeyVaultProducerOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.azure.key.vault.KeyVaultOperation", "enum": [ "createSecret", "getSecret", "updateSecretProperties", "deleteSecret", "purgeDeletedSecret" ], "deprecated": false, "autowired": false, "secret": false, "description": "The operation that the producer performs. It replaces the operation option.", "con [...] + "CamelAzureKeyVaultSecretName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the secret, required by every operation except updateSecretProperties. createSecret adds a new version when the secret already exists, and getSecret returns the value of the latest version.", "constantName": "org.apache.camel.component. [...] + "CamelAzureKeyVaultSecretProperties": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "com.azure.security.keyvault.secrets.models.SecretProperties", "deprecated": false, "autowired": false, "secret": false, "description": "The SecretProperties for updateSecretProperties, which requires this header. Its name and its version select the secret. Only the attributes that are set in it, such as enabled, expiresOn, [...] }, "bodyTypes": { "producerIn": { "carriers": [ "text", "bytes", "stream", "file", "map", "list", "pojo" ], "byOption": [ { "option": "operation", "value": "getSecret", "carriers": [ "any" ] }, { "option": "operation", "value": "updateSecretProperties", "carriers": [ "any" ] }, { "option": "operation", "value": "deleteSecret", "carriers": [ "any" ] }, { "option": "operation", "value": "purgeDeletedSecret", "carriers": [ "any" ] } ], "description": "The value of the secret for createSecret, the default [...] "producerOut": { "carriers": [ "pojo" ], "javaType": "com.azure.security.keyvault.secrets.models.KeyVaultSecret", "byOption": [ { "option": "operation", "value": "getSecret", "carriers": [ "text" ], "javaType": "java.lang.String" }, { "option": "operation", "value": "updateSecretProperties", "carriers": [ "pojo" ], "javaType": "com.azure.security.keyvault.secrets.models.SecretProperties" }, { "option": "operation", "value": "deleteSecret", "carriers": [ "pojo" ], "javaType": "com.azu [...] }, "properties": { - "vaultName": { "index": 0, "kind": "path", "displayName": "Vault Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Vault Name to be used" }, - "credentialType": { "index": 1, "kind": "parameter", "displayName": "Credential Type", "group": "common", "label": "common", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.common.CredentialType", "enum": [ "CLIENT_SECRET", "AZURE_IDENTITY" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CLIENT_SECRET", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configu [...] - "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.key.vault.KeyVaultOperation", "enum": [ "createSecret", "getSecret", "updateSecretProperties", "deleteSecret", "purgeDeletedSecret" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "confi [...] - "secretClient": { "index": 3, "kind": "parameter", "displayName": "Secret Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.azure.security.keyvault.secrets.SecretClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Instance of Secret client" }, + "vaultName": { "index": 0, "kind": "path", "displayName": "Vault Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "The name of the key vault. The endpoint builds the vault URL from it with the vault.azure.net domain of the Az [...] + "credentialType": { "index": 1, "kind": "parameter", "displayName": "Credential Type", "group": "common", "label": "common", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.common.CredentialType", "enum": [ "CLIENT_SECRET", "AZURE_IDENTITY" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CLIENT_SECRET", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configu [...] + "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.key.vault.KeyVaultOperation", "enum": [ "createSecret", "getSecret", "updateSecretProperties", "deleteSecret", "purgeDeletedSecret" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "confi [...] + "secretClient": { "index": 3, "kind": "parameter", "displayName": "Secret Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.azure.security.keyvault.secrets.SecretClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "To use a custom com.azure.security.keyvault.secrets.SecretClient. Wh [...] "lazyStartProducer": { "index": 4, "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 [...] - "clientId": { "index": 5, "kind": "parameter", "displayName": "Client Id", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Client Id to be used" }, - "clientSecret": { "index": 6, "kind": "parameter", "displayName": "Client Secret", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Client Secret to be used" }, - "tenantId": { "index": 7, "kind": "parameter", "displayName": "Tenant Id", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Tenant Id to be used" } + "clientId": { "index": 5, "kind": "parameter", "displayName": "Client Id", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "The client ID (application ID) of the Microsoft Entra application for the CLIE [...] + "clientSecret": { "index": 6, "kind": "parameter", "displayName": "Client Secret", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "The client secret of the Microsoft Entra application for the CLIENT_SE [...] + "tenantId": { "index": 7, "kind": "parameter", "displayName": "Tenant Id", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "The ID of the Microsoft Entra tenant (directory) of the application for the CL [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-key-vault-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-key-vault-component.adoc index 83691c1c5bd3..26ca602c1327 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-key-vault-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-key-vault-component.adoc @@ -2,7 +2,7 @@ :doctitle: Azure Key Vault :shortname: azure-key-vault :artifactid: camel-azure-key-vault -:description: Manage secrets and keys in Azure Key Vault Service +:description: Create, get, update, delete and purge secrets in Azure Key Vault. :since: 3.17 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-azure/camel-azure-key-vault/src/generated/resources/META-INF/org/apache/camel/component/azure/key/vault/azure-key-vault.json b/components/camel-azure/camel-azure-key-vault/src/generated/resources/META-INF/org/apache/camel/component/azure/key/vault/azure-key-vault.json index be8c3c354f99..3682deb138a5 100644 --- a/components/camel-azure/camel-azure-key-vault/src/generated/resources/META-INF/org/apache/camel/component/azure/key/vault/azure-key-vault.json +++ b/components/camel-azure/camel-azure-key-vault/src/generated/resources/META-INF/org/apache/camel/component/azure/key/vault/azure-key-vault.json @@ -3,7 +3,7 @@ "kind": "component", "name": "azure-key-vault", "title": "Azure Key Vault", - "description": "Manage secrets and keys in Azure Key Vault Service", + "description": "Create, get, update, delete and purge secrets in Azure Key Vault.", "deprecated": false, "firstVersion": "3.17.0", "label": "cloud,cloud", @@ -29,22 +29,22 @@ "autowiredEnabled": { "index": 1, "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 [...] }, "headers": { - "CamelAzureKeyVaultProducerOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.azure.key.vault.KeyVaultOperation", "enum": [ "createSecret", "getSecret", "updateSecretProperties", "deleteSecret", "purgeDeletedSecret" ], "deprecated": false, "autowired": false, "secret": false, "description": "Overrides the desired operation to be used in the producer.", "constantName": "org [...] - "CamelAzureKeyVaultSecretName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The secret name to be used in Key Vault", "constantName": "org.apache.camel.component.azure.key.vault.KeyVaultConstants#SECRET_NAME" }, - "CamelAzureKeyVaultSecretProperties": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "com.azure.security.keyvault.secrets.models.SecretProperties", "deprecated": false, "autowired": false, "secret": false, "description": "The secret properties to be used in Key Vault for updating a secret", "constantName": "org.apache.camel.component.azure.key.vault.KeyVaultConstants#SECRET_PROPERTIES" } + "CamelAzureKeyVaultProducerOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.azure.key.vault.KeyVaultOperation", "enum": [ "createSecret", "getSecret", "updateSecretProperties", "deleteSecret", "purgeDeletedSecret" ], "deprecated": false, "autowired": false, "secret": false, "description": "The operation that the producer performs. It replaces the operation option.", "con [...] + "CamelAzureKeyVaultSecretName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the secret, required by every operation except updateSecretProperties. createSecret adds a new version when the secret already exists, and getSecret returns the value of the latest version.", "constantName": "org.apache.camel.component. [...] + "CamelAzureKeyVaultSecretProperties": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "com.azure.security.keyvault.secrets.models.SecretProperties", "deprecated": false, "autowired": false, "secret": false, "description": "The SecretProperties for updateSecretProperties, which requires this header. Its name and its version select the secret. Only the attributes that are set in it, such as enabled, expiresOn, [...] }, "bodyTypes": { "producerIn": { "carriers": [ "text", "bytes", "stream", "file", "map", "list", "pojo" ], "byOption": [ { "option": "operation", "value": "getSecret", "carriers": [ "any" ] }, { "option": "operation", "value": "updateSecretProperties", "carriers": [ "any" ] }, { "option": "operation", "value": "deleteSecret", "carriers": [ "any" ] }, { "option": "operation", "value": "purgeDeletedSecret", "carriers": [ "any" ] } ], "description": "The value of the secret for createSecret, the default [...] "producerOut": { "carriers": [ "pojo" ], "javaType": "com.azure.security.keyvault.secrets.models.KeyVaultSecret", "byOption": [ { "option": "operation", "value": "getSecret", "carriers": [ "text" ], "javaType": "java.lang.String" }, { "option": "operation", "value": "updateSecretProperties", "carriers": [ "pojo" ], "javaType": "com.azure.security.keyvault.secrets.models.SecretProperties" }, { "option": "operation", "value": "deleteSecret", "carriers": [ "pojo" ], "javaType": "com.azu [...] }, "properties": { - "vaultName": { "index": 0, "kind": "path", "displayName": "Vault Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Vault Name to be used" }, - "credentialType": { "index": 1, "kind": "parameter", "displayName": "Credential Type", "group": "common", "label": "common", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.common.CredentialType", "enum": [ "CLIENT_SECRET", "AZURE_IDENTITY" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CLIENT_SECRET", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configu [...] - "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.key.vault.KeyVaultOperation", "enum": [ "createSecret", "getSecret", "updateSecretProperties", "deleteSecret", "purgeDeletedSecret" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "confi [...] - "secretClient": { "index": 3, "kind": "parameter", "displayName": "Secret Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.azure.security.keyvault.secrets.SecretClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Instance of Secret client" }, + "vaultName": { "index": 0, "kind": "path", "displayName": "Vault Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "The name of the key vault. The endpoint builds the vault URL from it with the vault.azure.net domain of the Az [...] + "credentialType": { "index": 1, "kind": "parameter", "displayName": "Credential Type", "group": "common", "label": "common", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.common.CredentialType", "enum": [ "CLIENT_SECRET", "AZURE_IDENTITY" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CLIENT_SECRET", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configu [...] + "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.key.vault.KeyVaultOperation", "enum": [ "createSecret", "getSecret", "updateSecretProperties", "deleteSecret", "purgeDeletedSecret" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "confi [...] + "secretClient": { "index": 3, "kind": "parameter", "displayName": "Secret Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.azure.security.keyvault.secrets.SecretClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "To use a custom com.azure.security.keyvault.secrets.SecretClient. Wh [...] "lazyStartProducer": { "index": 4, "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 [...] - "clientId": { "index": 5, "kind": "parameter", "displayName": "Client Id", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Client Id to be used" }, - "clientSecret": { "index": 6, "kind": "parameter", "displayName": "Client Secret", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Client Secret to be used" }, - "tenantId": { "index": 7, "kind": "parameter", "displayName": "Tenant Id", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "Tenant Id to be used" } + "clientId": { "index": 5, "kind": "parameter", "displayName": "Client Id", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "The client ID (application ID) of the Microsoft Entra application for the CLIE [...] + "clientSecret": { "index": 6, "kind": "parameter", "displayName": "Client Secret", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "The client secret of the Microsoft Entra application for the CLIENT_SE [...] + "tenantId": { "index": 7, "kind": "parameter", "displayName": "Tenant Id", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.azure.key.vault.KeyVaultConfiguration", "configurationField": "configuration", "description": "The ID of the Microsoft Entra tenant (directory) of the application for the CL [...] } } diff --git a/components/camel-azure/camel-azure-key-vault/src/main/docs/azure-key-vault-component.adoc b/components/camel-azure/camel-azure-key-vault/src/main/docs/azure-key-vault-component.adoc index 83691c1c5bd3..26ca602c1327 100644 --- a/components/camel-azure/camel-azure-key-vault/src/main/docs/azure-key-vault-component.adoc +++ b/components/camel-azure/camel-azure-key-vault/src/main/docs/azure-key-vault-component.adoc @@ -2,7 +2,7 @@ :doctitle: Azure Key Vault :shortname: azure-key-vault :artifactid: camel-azure-key-vault -:description: Manage secrets and keys in Azure Key Vault Service +:description: Create, get, update, delete and purge secrets in Azure Key Vault. :since: 3.17 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultConfiguration.java b/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultConfiguration.java index 4f7a1fe222d0..6585a18cd7fb 100644 --- a/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultConfiguration.java +++ b/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultConfiguration.java @@ -29,26 +29,42 @@ import static org.apache.camel.component.azure.common.CredentialType.CLIENT_SECR @UriParams public class KeyVaultConfiguration implements Cloneable { - @UriPath + @UriPath(description = "The name of the key vault. The endpoint builds the vault URL from it with the vault.azure.net" + + " domain of the Azure public cloud. Not used to connect when the secretClient option is set.") private String vaultName; - @UriParam + @UriParam(description = "To use a custom com.azure.security.keyvault.secrets.SecretClient. When this option is set, the" + + " client decides the vault and the credentials, and the vaultName, credentialType, clientId," + + " clientSecret and tenantId options are not used to connect.") @Metadata(autowired = true) private SecretClient secretClient; - @UriParam(label = "security", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The client ID (application ID) of the Microsoft Entra application for the CLIENT_SECRET credential" + + " type. Required for CLIENT_SECRET, the default, unless the secretClient option is set. Not used" + + " for AZURE_IDENTITY.") private String clientId; - @UriParam(label = "security", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The client secret of the Microsoft Entra application for the CLIENT_SECRET credential type." + + " Required for CLIENT_SECRET, the default, unless the secretClient option is set. Not used for" + + " AZURE_IDENTITY.") private String clientSecret; - @UriParam(label = "security", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The ID of the Microsoft Entra tenant (directory) of the application for the CLIENT_SECRET" + + " credential type. Required for CLIENT_SECRET, the default, unless the secretClient option is" + + " set. Not used for AZURE_IDENTITY.") private String tenantId; - @UriParam(label = "producer") + @UriParam(label = "producer", + description = "The operation that the producer performs. The CamelAzureKeyVaultProducerOperation header" + + " replaces this option. Every operation except updateSecretProperties takes the name of the" + + " secret from the CamelAzureKeyVaultSecretName header.") private KeyVaultOperation operation = KeyVaultOperation.createSecret; @UriParam(label = "common", enums = "CLIENT_SECRET,AZURE_IDENTITY", - defaultValue = "CLIENT_SECRET") + defaultValue = "CLIENT_SECRET", + description = "How the endpoint authenticates when it creates the SecretClient. CLIENT_SECRET uses the clientId," + + " clientSecret and tenantId options. AZURE_IDENTITY uses the DefaultAzureCredential of the Azure" + + " Identity library, which tries environment variables, workload identity, managed identity and" + + " developer tools such as the Azure CLI. Not used when the secretClient option is set.") private CredentialType credentialType = CLIENT_SECRET; - /** - * Instance of Secret client - */ public SecretClient getSecretClient() { return secretClient; } @@ -57,9 +73,6 @@ public class KeyVaultConfiguration implements Cloneable { this.secretClient = secretClient; } - /** - * Vault Name to be used - */ public String getVaultName() { return vaultName; } @@ -68,9 +81,6 @@ public class KeyVaultConfiguration implements Cloneable { this.vaultName = vaultName; } - /** - * Client Id to be used - */ public String getClientId() { return clientId; } @@ -79,9 +89,6 @@ public class KeyVaultConfiguration implements Cloneable { this.clientId = clientId; } - /** - * Client Secret to be used - */ public String getClientSecret() { return clientSecret; } @@ -90,9 +97,6 @@ public class KeyVaultConfiguration implements Cloneable { this.clientSecret = clientSecret; } - /** - * Tenant Id to be used - */ public String getTenantId() { return tenantId; } @@ -101,9 +105,6 @@ public class KeyVaultConfiguration implements Cloneable { this.tenantId = tenantId; } - /** - * Operation to be performed - */ public KeyVaultOperation getOperation() { return operation; } @@ -116,9 +117,6 @@ public class KeyVaultConfiguration implements Cloneable { return credentialType; } - /** - * Determines the credential strategy to adopt - */ public void setCredentialType(CredentialType credentialType) { this.credentialType = credentialType; } diff --git a/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultConstants.java b/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultConstants.java index d27d5c5a3dc5..540bfaae52f6 100644 --- a/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultConstants.java +++ b/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultConstants.java @@ -22,14 +22,21 @@ public final class KeyVaultConstants { private static final String HEADER_PREFIX = "CamelAzureKeyVault"; // headers set by the producer only - @Metadata(label = "producer", description = "Overrides the desired operation to be used in the producer.", + @Metadata(label = "producer", description = "The operation that the producer performs. It replaces the operation option.", javaType = "org.apache.camel.component.azure.key.vault.KeyVaultOperation") public static final String OPERATION = HEADER_PREFIX + "ProducerOperation"; // headers set by the producer only - @Metadata(label = "producer", description = "The secret name to be used in Key Vault", + @Metadata(label = "producer", + description = "The name of the secret, required by every operation except updateSecretProperties." + + " createSecret adds a new version when the secret already exists, and" + + " getSecret returns the value of the latest version.", javaType = "String") public static final String SECRET_NAME = HEADER_PREFIX + "SecretName"; - @Metadata(label = "producer", description = "The secret properties to be used in Key Vault for updating a secret", + @Metadata(label = "producer", + description = "The SecretProperties for updateSecretProperties, which requires this header. Its name" + + " and its version select the secret. Only the attributes that are set in it, such as" + + " enabled, expiresOn, notBefore, contentType and tags, are changed, and the" + + " value of the secret is not.", javaType = "com.azure.security.keyvault.secrets.models.SecretProperties") public static final String SECRET_PROPERTIES = HEADER_PREFIX + "SecretProperties"; diff --git a/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultEndpoint.java b/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultEndpoint.java index 17f6d59ad238..74e35d7b9206 100644 --- a/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultEndpoint.java +++ b/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultEndpoint.java @@ -40,7 +40,7 @@ import org.apache.camel.support.DefaultEndpoint; import org.apache.camel.util.ObjectHelper; /** - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. */ @UriEndpoint(firstVersion = "3.17.0", scheme = "azure-key-vault", title = "Azure Key Vault", syntax = "azure-key-vault:vaultName", category = { 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 8241a4c8d1f9..40915568791a 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 @@ -934,7 +934,7 @@ public interface ComponentsBuilderFactory { } /** * Azure Key Vault (camel-azure-key-vault) - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Category: cloud,cloud * Since: 3.17 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureKeyVaultComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureKeyVaultComponentBuilderFactory.java index c4f10cac6e53..4ed9a03de88e 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureKeyVaultComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureKeyVaultComponentBuilderFactory.java @@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.azure.key.vault.KeyVaultComponent; /** - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +33,7 @@ public interface AzureKeyVaultComponentBuilderFactory { /** * Azure Key Vault (camel-azure-key-vault) - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Category: cloud,cloud * Since: 3.17 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index 9e22135e3cee..5861e9c9ba74 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -900,7 +900,7 @@ public class EndpointHeaderBuilders { } /** * Azure Key Vault (camel-azure-key-vault) - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Category: cloud,cloud * Since: 3.17 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 596eec3709b2..1aed6343898c 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 @@ -3016,7 +3016,7 @@ public class StaticEndpointBuilders { } /** * Azure Key Vault (camel-azure-key-vault) - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Category: cloud,cloud * Since: 3.17 @@ -3025,7 +3025,9 @@ public class StaticEndpointBuilders { * Syntax: <code>azure-key-vault:vaultName</code> * * Path parameter: vaultName - * Vault Name to be used + * The name of the key vault. The endpoint builds the vault URL from it with + * the vault.azure.net domain of the Azure public cloud. Not used to connect + * when the secretClient option is set. * * @param path vaultName * @return the dsl builder @@ -3035,7 +3037,7 @@ public class StaticEndpointBuilders { } /** * Azure Key Vault (camel-azure-key-vault) - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Category: cloud,cloud * Since: 3.17 @@ -3044,7 +3046,9 @@ public class StaticEndpointBuilders { * Syntax: <code>azure-key-vault:vaultName</code> * * Path parameter: vaultName - * Vault Name to be used + * The name of the key vault. The endpoint builds the vault URL from it with + * the vault.azure.net domain of the Azure public cloud. Not used to connect + * when the secretClient option is set. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KeyVaultEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KeyVaultEndpointBuilderFactory.java index 7c9aec8b806c..c766eedf184b 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KeyVaultEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KeyVaultEndpointBuilderFactory.java @@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Generated by camel build tools - do NOT edit this file! */ @@ -45,7 +45,12 @@ public interface KeyVaultEndpointBuilderFactory { } /** - * Determines the credential strategy to adopt. + * How the endpoint authenticates when it creates the SecretClient. + * CLIENT_SECRET uses the clientId, clientSecret and tenantId options. + * AZURE_IDENTITY uses the DefaultAzureCredential of the Azure Identity + * library, which tries environment variables, workload identity, + * managed identity and developer tools such as the Azure CLI. Not used + * when the secretClient option is set. * * The option is a: * <code>org.apache.camel.component.azure.common.CredentialType</code> @@ -62,7 +67,12 @@ public interface KeyVaultEndpointBuilderFactory { return this; } /** - * Determines the credential strategy to adopt. + * How the endpoint authenticates when it creates the SecretClient. + * CLIENT_SECRET uses the clientId, clientSecret and tenantId options. + * AZURE_IDENTITY uses the DefaultAzureCredential of the Azure Identity + * library, which tries environment variables, workload identity, + * managed identity and developer tools such as the Azure CLI. Not used + * when the secretClient option is set. * * The option will be converted to a * <code>org.apache.camel.component.azure.common.CredentialType</code> @@ -79,7 +89,10 @@ public interface KeyVaultEndpointBuilderFactory { return this; } /** - * Operation to be performed. + * The operation that the producer performs. The + * CamelAzureKeyVaultProducerOperation header replaces this option. + * Every operation except updateSecretProperties takes the name of the + * secret from the CamelAzureKeyVaultSecretName header. * * The option is a: * <code>org.apache.camel.component.azure.key.vault.KeyVaultOperation</code> type. @@ -94,7 +107,10 @@ public interface KeyVaultEndpointBuilderFactory { return this; } /** - * Operation to be performed. + * The operation that the producer performs. The + * CamelAzureKeyVaultProducerOperation header replaces this option. + * Every operation except updateSecretProperties takes the name of the + * secret from the CamelAzureKeyVaultSecretName header. * * The option will be converted to a * <code>org.apache.camel.component.azure.key.vault.KeyVaultOperation</code> type. @@ -109,7 +125,10 @@ public interface KeyVaultEndpointBuilderFactory { return this; } /** - * Instance of Secret client. + * To use a custom com.azure.security.keyvault.secrets.SecretClient. + * When this option is set, the client decides the vault and the + * credentials, and the vaultName, credentialType, clientId, + * clientSecret and tenantId options are not used to connect. * * The option is a: * <code>com.azure.security.keyvault.secrets.SecretClient</code> type. @@ -124,7 +143,10 @@ public interface KeyVaultEndpointBuilderFactory { return this; } /** - * Instance of Secret client. + * To use a custom com.azure.security.keyvault.secrets.SecretClient. + * When this option is set, the client decides the vault and the + * credentials, and the vaultName, credentialType, clientId, + * clientSecret and tenantId options are not used to connect. * * The option will be converted to a * <code>com.azure.security.keyvault.secrets.SecretClient</code> type. @@ -139,7 +161,10 @@ public interface KeyVaultEndpointBuilderFactory { return this; } /** - * Client Id to be used. + * The client ID (application ID) of the Microsoft Entra application for + * the CLIENT_SECRET credential type. Required for CLIENT_SECRET, the + * default, unless the secretClient option is set. Not used for + * AZURE_IDENTITY. * * The option is a: <code>java.lang.String</code> type. * @@ -153,7 +178,10 @@ public interface KeyVaultEndpointBuilderFactory { return this; } /** - * Client Secret to be used. + * The client secret of the Microsoft Entra application for the + * CLIENT_SECRET credential type. Required for CLIENT_SECRET, the + * default, unless the secretClient option is set. Not used for + * AZURE_IDENTITY. * * The option is a: <code>java.lang.String</code> type. * @@ -167,7 +195,10 @@ public interface KeyVaultEndpointBuilderFactory { return this; } /** - * Tenant Id to be used. + * The ID of the Microsoft Entra tenant (directory) of the application + * for the CLIENT_SECRET credential type. Required for CLIENT_SECRET, + * the default, unless the secretClient option is set. Not used for + * AZURE_IDENTITY. * * The option is a: <code>java.lang.String</code> type. * @@ -243,7 +274,7 @@ public interface KeyVaultEndpointBuilderFactory { public interface KeyVaultBuilders { /** * Azure Key Vault (camel-azure-key-vault) - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Category: cloud,cloud * Since: 3.17 @@ -256,7 +287,7 @@ public interface KeyVaultEndpointBuilderFactory { } /** * Azure Key Vault (camel-azure-key-vault) - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Category: cloud,cloud * Since: 3.17 @@ -265,7 +296,9 @@ public interface KeyVaultEndpointBuilderFactory { * Syntax: <code>azure-key-vault:vaultName</code> * * Path parameter: vaultName - * Vault Name to be used + * The name of the key vault. The endpoint builds the vault URL from it + * with the vault.azure.net domain of the Azure public cloud. Not used + * to connect when the secretClient option is set. * * @param path vaultName * @return the dsl builder @@ -275,7 +308,7 @@ public interface KeyVaultEndpointBuilderFactory { } /** * Azure Key Vault (camel-azure-key-vault) - * Manage secrets and keys in Azure Key Vault Service + * Create, get, update, delete and purge secrets in Azure Key Vault. * * Category: cloud,cloud * Since: 3.17 @@ -284,7 +317,9 @@ public interface KeyVaultEndpointBuilderFactory { * Syntax: <code>azure-key-vault:vaultName</code> * * Path parameter: vaultName - * Vault Name to be used + * The name of the key vault. The endpoint builds the vault URL from it + * with the vault.azure.net domain of the Azure public cloud. Not used + * to connect when the secretClient option is set. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -307,7 +342,8 @@ public interface KeyVaultEndpointBuilderFactory { public static final KeyVaultHeaderNameBuilder INSTANCE = new KeyVaultHeaderNameBuilder(); /** - * Overrides the desired operation to be used in the producer. + * The operation that the producer performs. It replaces the operation + * option. * * The option is a: {@code * org.apache.camel.component.azure.key.vault.KeyVaultOperation} type. @@ -321,7 +357,10 @@ public interface KeyVaultEndpointBuilderFactory { return "CamelAzureKeyVaultProducerOperation"; } /** - * The secret name to be used in Key Vault. + * The name of the secret, required by every operation except + * updateSecretProperties. createSecret adds a new version when the + * secret already exists, and getSecret returns the value of the latest + * version. * * The option is a: {@code String} type. * @@ -333,7 +372,11 @@ public interface KeyVaultEndpointBuilderFactory { return "CamelAzureKeyVaultSecretName"; } /** - * The secret properties to be used in Key Vault for updating a secret. + * The SecretProperties for updateSecretProperties, which requires this + * header. Its name and its version select the secret. Only the + * attributes that are set in it, such as enabled, expiresOn, notBefore, + * contentType and tags, are changed, and the value of the secret is + * not. * * The option is a: {@code * com.azure.security.keyvault.secrets.models.SecretProperties} type. diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 749868e9c4e2..46cba95dfb4d 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -114,7 +114,7 @@ or removes its row. | camel-azure-files | azure-files | | | camel-azure-functions | azure-functions | | | camel-azure-iothub | azure-iothub | yes | -| camel-azure-key-vault | azure-key-vault | | +| camel-azure-key-vault | azure-key-vault | yes | | camel-azure-servicebus | azure-servicebus | | | camel-azure-storage-blob | azure-storage-blob | | | camel-azure-storage-datalake | azure-storage-datalake | |
