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 d0fd6ad562e0baefb906ec2a89bfeac730a3ae69 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 19:53:35 2026 +0100 CAMEL-23832: camel-spiffe - improve the component and option descriptions This commit rewrites the texts of 6 options (label, operation, preserveBody, healthCheckExpiryThreshold, workloadApiClient and the component configuration) and 2 headers of spiffe. The component description is kept. The old preserveBody text said the CamelSpiffeJwtIdentity property is set only when the body is kept, while validateJwtSvid always sets it, and the workloadApiClient text now says the producer registers no health check then. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-spiffe 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]> --- .../apache/camel/catalog/components/spiffe.json | 24 +++---- .../org/apache/camel/component/spiffe/spiffe.json | 24 +++---- .../camel/component/spiffe/SpiffeComponent.java | 5 +- .../component/spiffe/SpiffeConfiguration.java | 38 +++++------ .../camel/component/spiffe/SpiffeConstants.java | 7 +- .../camel/component/spiffe/SpiffeEndpoint.java | 3 +- .../dsl/SpiffeComponentBuilderFactory.java | 34 ++++++---- .../builder/endpoint/StaticEndpointBuilders.java | 6 +- .../endpoint/dsl/SpiffeEndpointBuilderFactory.java | 74 +++++++++++++--------- tasks/component-descriptions.md | 2 +- 10 files changed, 118 insertions(+), 99 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/spiffe.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/spiffe.json index 830c1e9c20de..f113a312466e 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/spiffe.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/spiffe.json @@ -25,14 +25,14 @@ }, "componentProperties": { "audience": { "index": 0, "kind": "property", "displayName": "Audience", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The comma-separated audience(s) to request for a JWT-SVID (fetchJwtSvid) or to validate against (validateJwtSvid). fetch [...] - "configuration": { "index": 1, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.spiffe.SpiffeConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The component configuration." }, + "configuration": { "index": 1, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.spiffe.SpiffeConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The shared configuration of the endpoints. Each endpoint starts from a copy of it." }, "lazyStartProducer": { "index": 2, "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 [...] - "operation": { "index": 3, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.spiffe.SpiffeOperation", "enum": [ "fetchX509Svid", "fetchJwtSvid", "validateJwtSvid" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "fetchX509Svid", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "descr [...] - "preserveBody": { "index": 4, "kind": "property", "displayName": "Preserve Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether validateJwtSvid leaves the application body untouched and publishes the verified identit [...] + "operation": { "index": 3, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.spiffe.SpiffeOperation", "enum": [ "fetchX509Svid", "fetchJwtSvid", "validateJwtSvid" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "fetchX509Svid", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "descr [...] + "preserveBody": { "index": 4, "kind": "property", "displayName": "Preserve Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether validateJwtSvid keeps the message body. When false, the token can also come from the bod [...] "autowiredEnabled": { "index": 5, "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 [...] - "workloadApiClient": { "index": 6, "kind": "property", "displayName": "Workload Api Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.spiffe.workloadapi.WorkloadApiClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "An existing WorkloadApiClient to use. When set, the component does not [...] + "workloadApiClient": { "index": 6, "kind": "property", "displayName": "Workload Api Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.spiffe.workloadapi.WorkloadApiClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "An existing WorkloadApiClient to use instead of a client that the endp [...] "healthCheckConsumerEnabled": { "index": 7, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" }, - "healthCheckExpiryThreshold": { "index": 8, "kind": "property", "displayName": "Health Check Expiry Threshold", "group": "health", "label": "health", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "60000", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Minimum remaining X.509-SVID validity, in milliseconds, for th [...] + "healthCheckExpiryThreshold": { "index": 8, "kind": "property", "displayName": "Health Check Expiry Threshold", "group": "health", "label": "health", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "60000", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The minimum remaining validity, in milliseconds, of the X.509- [...] "healthCheckProducerEnabled": { "index": 9, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer [...] "allowOperationHeader": { "index": 10, "kind": "property", "displayName": "Allow Operation Header", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:dev", "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether the CamelSpiffeOperation header ma [...] "localSpiffeId": { "index": 11, "kind": "property", "displayName": "Local Spiffe Id", "group": "security", "label": "producer,security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The exact local SPIFFE ID to use when the Workload API supplies several identities: fetchX [...] @@ -42,8 +42,8 @@ "headers": { "CamelSpiffeOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.spiffe.SpiffeOperation or String", "deprecated": false, "autowired": false, "secret": false, "description": "Overrides the operation to be used by the producer. Ignored unless the endpoint sets allowOperationHeader=true, because the operation decides whether the endpoint validates a token or mints one.", "const [...] "CamelSpiffeAudience": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The comma-separated audience(s) for the fetchJwtSvid operation. Ignored by validateJwtSvid, which always validates against the configured audience: there the audience is the check that binds the token to this workload, not a parameter.", "constantName": "or [...] - "CamelSpiffeToken": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The JWT-SVID token to validate, for the validateJwtSvid operation.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#TOKEN" }, - "CamelSpiffeSpiffeId": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The SPIFFE ID of the returned SVID.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#SPIFFE_ID" }, + "CamelSpiffeToken": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The JWT-SVID to validate with the validateJwtSvid operation. It takes precedence over an Authorization: Bearer header and over the message body.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#TOKEN" }, + "CamelSpiffeSpiffeId": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The SPIFFE ID of the SVID that the operation fetched or validated.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#SPIFFE_ID" }, "CamelSpiffeExpiry": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.util.Date", "deprecated": false, "autowired": false, "secret": false, "description": "The expiry of the returned SVID: the token expiry for fetchJwtSvid or validateJwtSvid, or the leaf certificate's notAfter for fetchX509Svid.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#EXPIRY" } }, "bodyTypes": { @@ -51,13 +51,13 @@ "producerOut": { "carriers": [ "list" ], "javaType": "java.util.List<java.security.cert.X509Certificate>", "dependsOn": [ "allowOperationHeader" ], "byOption": [ { "option": "x509Response", "value": "svid", "carriers": [ "pojo" ], "javaType": "io.spiffe.svid.x509svid.X509Svid" }, { "option": "x509Response", "value": "id", "carriers": [ "unchanged" ] }, { "option": "operation", "value": "fetchJwtSvid", "carriers": [ "text" ], "javaType": "java.lang.String" }, { "option": "operation", [...] }, "properties": { - "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Logical name of the endpoint" }, + "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Free text to tell several spiffe endpoints apart, for example spiffe:mint and spiffe:verify. The component does not use the value." }, "audience": { "index": 1, "kind": "parameter", "displayName": "Audience", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The comma-separated audience(s) to request for a JWT-SVID (fetchJwtSvid) or to validate against (validateJwtSvid). fetc [...] - "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.spiffe.SpiffeOperation", "enum": [ "fetchX509Svid", "fetchJwtSvid", "validateJwtSvid" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "fetchX509Svid", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "desc [...] - "preserveBody": { "index": 3, "kind": "parameter", "displayName": "Preserve Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether validateJwtSvid leaves the application body untouched and publishes the verified identi [...] + "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.spiffe.SpiffeOperation", "enum": [ "fetchX509Svid", "fetchJwtSvid", "validateJwtSvid" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "fetchX509Svid", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "desc [...] + "preserveBody": { "index": 3, "kind": "parameter", "displayName": "Preserve Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether validateJwtSvid keeps the message body. When false, the token can also come from the bo [...] "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 [...] - "workloadApiClient": { "index": 5, "kind": "parameter", "displayName": "Workload Api Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.spiffe.workloadapi.WorkloadApiClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "An existing WorkloadApiClient to use. When set, the component does no [...] - "healthCheckExpiryThreshold": { "index": 6, "kind": "parameter", "displayName": "Health Check Expiry Threshold", "group": "health", "label": "health", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "60000", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Minimum remaining X.509-SVID validity, in milliseconds, for t [...] + "workloadApiClient": { "index": 5, "kind": "parameter", "displayName": "Workload Api Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.spiffe.workloadapi.WorkloadApiClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "An existing WorkloadApiClient to use instead of a client that the end [...] + "healthCheckExpiryThreshold": { "index": 6, "kind": "parameter", "displayName": "Health Check Expiry Threshold", "group": "health", "label": "health", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "60000", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The minimum remaining validity, in milliseconds, of the X.509 [...] "allowOperationHeader": { "index": 7, "kind": "parameter", "displayName": "Allow Operation Header", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:dev", "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether the CamelSpiffeOperation header ma [...] "localSpiffeId": { "index": 8, "kind": "parameter", "displayName": "Local Spiffe Id", "group": "security", "label": "producer,security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The exact local SPIFFE ID to use when the Workload API supplies several identities: fetchX [...] "spiffeSocketPath": { "index": 9, "kind": "parameter", "displayName": "Spiffe Socket Path", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The address of the SPIFFE Workload API endpoint (for example unix:\/\/\/tmp\/agent.sock or tc [...] diff --git a/components/camel-spiffe/src/generated/resources/META-INF/org/apache/camel/component/spiffe/spiffe.json b/components/camel-spiffe/src/generated/resources/META-INF/org/apache/camel/component/spiffe/spiffe.json index 830c1e9c20de..f113a312466e 100644 --- a/components/camel-spiffe/src/generated/resources/META-INF/org/apache/camel/component/spiffe/spiffe.json +++ b/components/camel-spiffe/src/generated/resources/META-INF/org/apache/camel/component/spiffe/spiffe.json @@ -25,14 +25,14 @@ }, "componentProperties": { "audience": { "index": 0, "kind": "property", "displayName": "Audience", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The comma-separated audience(s) to request for a JWT-SVID (fetchJwtSvid) or to validate against (validateJwtSvid). fetch [...] - "configuration": { "index": 1, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.spiffe.SpiffeConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The component configuration." }, + "configuration": { "index": 1, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.spiffe.SpiffeConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The shared configuration of the endpoints. Each endpoint starts from a copy of it." }, "lazyStartProducer": { "index": 2, "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 [...] - "operation": { "index": 3, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.spiffe.SpiffeOperation", "enum": [ "fetchX509Svid", "fetchJwtSvid", "validateJwtSvid" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "fetchX509Svid", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "descr [...] - "preserveBody": { "index": 4, "kind": "property", "displayName": "Preserve Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether validateJwtSvid leaves the application body untouched and publishes the verified identit [...] + "operation": { "index": 3, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.spiffe.SpiffeOperation", "enum": [ "fetchX509Svid", "fetchJwtSvid", "validateJwtSvid" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "fetchX509Svid", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "descr [...] + "preserveBody": { "index": 4, "kind": "property", "displayName": "Preserve Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether validateJwtSvid keeps the message body. When false, the token can also come from the bod [...] "autowiredEnabled": { "index": 5, "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 [...] - "workloadApiClient": { "index": 6, "kind": "property", "displayName": "Workload Api Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.spiffe.workloadapi.WorkloadApiClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "An existing WorkloadApiClient to use. When set, the component does not [...] + "workloadApiClient": { "index": 6, "kind": "property", "displayName": "Workload Api Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.spiffe.workloadapi.WorkloadApiClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "An existing WorkloadApiClient to use instead of a client that the endp [...] "healthCheckConsumerEnabled": { "index": 7, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" }, - "healthCheckExpiryThreshold": { "index": 8, "kind": "property", "displayName": "Health Check Expiry Threshold", "group": "health", "label": "health", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "60000", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Minimum remaining X.509-SVID validity, in milliseconds, for th [...] + "healthCheckExpiryThreshold": { "index": 8, "kind": "property", "displayName": "Health Check Expiry Threshold", "group": "health", "label": "health", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "60000", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The minimum remaining validity, in milliseconds, of the X.509- [...] "healthCheckProducerEnabled": { "index": 9, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer [...] "allowOperationHeader": { "index": 10, "kind": "property", "displayName": "Allow Operation Header", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:dev", "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether the CamelSpiffeOperation header ma [...] "localSpiffeId": { "index": 11, "kind": "property", "displayName": "Local Spiffe Id", "group": "security", "label": "producer,security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The exact local SPIFFE ID to use when the Workload API supplies several identities: fetchX [...] @@ -42,8 +42,8 @@ "headers": { "CamelSpiffeOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.spiffe.SpiffeOperation or String", "deprecated": false, "autowired": false, "secret": false, "description": "Overrides the operation to be used by the producer. Ignored unless the endpoint sets allowOperationHeader=true, because the operation decides whether the endpoint validates a token or mints one.", "const [...] "CamelSpiffeAudience": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The comma-separated audience(s) for the fetchJwtSvid operation. Ignored by validateJwtSvid, which always validates against the configured audience: there the audience is the check that binds the token to this workload, not a parameter.", "constantName": "or [...] - "CamelSpiffeToken": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The JWT-SVID token to validate, for the validateJwtSvid operation.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#TOKEN" }, - "CamelSpiffeSpiffeId": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The SPIFFE ID of the returned SVID.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#SPIFFE_ID" }, + "CamelSpiffeToken": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The JWT-SVID to validate with the validateJwtSvid operation. It takes precedence over an Authorization: Bearer header and over the message body.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#TOKEN" }, + "CamelSpiffeSpiffeId": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The SPIFFE ID of the SVID that the operation fetched or validated.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#SPIFFE_ID" }, "CamelSpiffeExpiry": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.util.Date", "deprecated": false, "autowired": false, "secret": false, "description": "The expiry of the returned SVID: the token expiry for fetchJwtSvid or validateJwtSvid, or the leaf certificate's notAfter for fetchX509Svid.", "constantName": "org.apache.camel.component.spiffe.SpiffeConstants#EXPIRY" } }, "bodyTypes": { @@ -51,13 +51,13 @@ "producerOut": { "carriers": [ "list" ], "javaType": "java.util.List<java.security.cert.X509Certificate>", "dependsOn": [ "allowOperationHeader" ], "byOption": [ { "option": "x509Response", "value": "svid", "carriers": [ "pojo" ], "javaType": "io.spiffe.svid.x509svid.X509Svid" }, { "option": "x509Response", "value": "id", "carriers": [ "unchanged" ] }, { "option": "operation", "value": "fetchJwtSvid", "carriers": [ "text" ], "javaType": "java.lang.String" }, { "option": "operation", [...] }, "properties": { - "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Logical name of the endpoint" }, + "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Free text to tell several spiffe endpoints apart, for example spiffe:mint and spiffe:verify. The component does not use the value." }, "audience": { "index": 1, "kind": "parameter", "displayName": "Audience", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The comma-separated audience(s) to request for a JWT-SVID (fetchJwtSvid) or to validate against (validateJwtSvid). fetc [...] - "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.spiffe.SpiffeOperation", "enum": [ "fetchX509Svid", "fetchJwtSvid", "validateJwtSvid" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "fetchX509Svid", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "desc [...] - "preserveBody": { "index": 3, "kind": "parameter", "displayName": "Preserve Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether validateJwtSvid leaves the application body untouched and publishes the verified identi [...] + "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.spiffe.SpiffeOperation", "enum": [ "fetchX509Svid", "fetchJwtSvid", "validateJwtSvid" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "fetchX509Svid", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "desc [...] + "preserveBody": { "index": 3, "kind": "parameter", "displayName": "Preserve Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether validateJwtSvid keeps the message body. When false, the token can also come from the bo [...] "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 [...] - "workloadApiClient": { "index": 5, "kind": "parameter", "displayName": "Workload Api Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.spiffe.workloadapi.WorkloadApiClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "An existing WorkloadApiClient to use. When set, the component does no [...] - "healthCheckExpiryThreshold": { "index": 6, "kind": "parameter", "displayName": "Health Check Expiry Threshold", "group": "health", "label": "health", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "60000", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Minimum remaining X.509-SVID validity, in milliseconds, for t [...] + "workloadApiClient": { "index": 5, "kind": "parameter", "displayName": "Workload Api Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.spiffe.workloadapi.WorkloadApiClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "An existing WorkloadApiClient to use instead of a client that the end [...] + "healthCheckExpiryThreshold": { "index": 6, "kind": "parameter", "displayName": "Health Check Expiry Threshold", "group": "health", "label": "health", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "60000", "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The minimum remaining validity, in milliseconds, of the X.509 [...] "allowOperationHeader": { "index": 7, "kind": "parameter", "displayName": "Allow Operation Header", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:dev", "defaultValue": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "Whether the CamelSpiffeOperation header ma [...] "localSpiffeId": { "index": 8, "kind": "parameter", "displayName": "Local Spiffe Id", "group": "security", "label": "producer,security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The exact local SPIFFE ID to use when the Workload API supplies several identities: fetchX [...] "spiffeSocketPath": { "index": 9, "kind": "parameter", "displayName": "Spiffe Socket Path", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.spiffe.SpiffeConfiguration", "configurationField": "configuration", "description": "The address of the SPIFFE Workload API endpoint (for example unix:\/\/\/tmp\/agent.sock or tc [...] diff --git a/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeComponent.java b/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeComponent.java index c22e35828394..86ca44a08681 100644 --- a/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeComponent.java +++ b/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeComponent.java @@ -30,7 +30,7 @@ import org.apache.camel.support.HealthCheckComponent; @Component("spiffe") public class SpiffeComponent extends HealthCheckComponent { - @Metadata + @Metadata(description = "The shared configuration of the endpoints. Each endpoint starts from a copy of it.") private SpiffeConfiguration configuration = new SpiffeConfiguration(); public SpiffeComponent() { @@ -51,9 +51,6 @@ public class SpiffeComponent extends HealthCheckComponent { return endpoint; } - /** - * The component configuration. - */ public SpiffeConfiguration getConfiguration() { return configuration; } diff --git a/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeConfiguration.java b/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeConfiguration.java index 270484d2202d..fc926cbfc283 100644 --- a/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeConfiguration.java +++ b/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeConfiguration.java @@ -25,7 +25,10 @@ import org.apache.camel.spi.UriParams; @UriParams public class SpiffeConfiguration implements Cloneable { - @UriParam(defaultValue = "fetchX509Svid") + @UriParam(defaultValue = "fetchX509Svid", + description = "What the producer does on the SPIFFE Workload API: fetchX509Svid fetches the X.509-SVID of" + + " this workload, fetchJwtSvid fetches a JWT-SVID for the audience, and validateJwtSvid" + + " validates the JWT-SVID of the message against the audience.") private SpiffeOperation operation = SpiffeOperation.fetchX509Svid; @UriParam(label = "producer,security", defaultValue = "chain") @@ -40,24 +43,30 @@ public class SpiffeConfiguration implements Cloneable { @UriParam private String audience; - @UriParam(defaultValue = "false") + @UriParam(defaultValue = "false", + description = "Whether validateJwtSvid keeps the message body. When false, the token can also come from the" + + " body, and the body is replaced with the validated JwtSvid. When true, the token must be in" + + " the CamelSpiffeToken header or an Authorization: Bearer header. In both cases the" + + " CamelSpiffeJwtIdentity exchange property holds the verified identity.") private boolean preserveBody; @UriParam(label = "security", defaultValue = "false", security = "insecure:dev") private boolean allowOperationHeader; - @UriParam(label = "health", defaultValue = "60000", javaType = "java.time.Duration") + @UriParam(label = "health", defaultValue = "60000", javaType = "java.time.Duration", + description = "The minimum remaining validity, in milliseconds, of the X.509-SVID for the producer health" + + " check to report UP: at or below it, the check reports DOWN before the SVID expires. Zero only" + + " requires an unexpired SVID. Used only with fetchX509Svid, as for the JWT operations the" + + " check watches the JWT bundles, which have no expiry.") private long healthCheckExpiryThreshold = 60000; @UriParam(label = "advanced", - description = "An existing WorkloadApiClient to use. When set, the component does not" - + " create or close its own client and spiffeSocketPath is ignored.") + description = "An existing WorkloadApiClient to use instead of a client that the endpoint creates. The" + + " endpoint does not close it, spiffeSocketPath is ignored, and the producer registers no" + + " health check.") @Metadata(autowired = true) private WorkloadApiClient workloadApiClient; - /** - * The operation to perform on the SPIFFE Workload API. - */ public SpiffeOperation getOperation() { return operation; } @@ -127,11 +136,6 @@ public class SpiffeConfiguration implements Cloneable { return preserveBody; } - /** - * Whether validateJwtSvid leaves the application body untouched and publishes the verified identity through the - * CamelSpiffeJwtIdentity exchange property. In this mode the token must be in CamelSpiffeToken or an Authorization - * Bearer header: the body is never read as a token. The default returns the JwtSvid in the body as before. - */ public void setPreserveBody(boolean preserveBody) { this.preserveBody = preserveBody; } @@ -155,18 +159,10 @@ public class SpiffeConfiguration implements Cloneable { return healthCheckExpiryThreshold; } - /** - * Minimum remaining X.509-SVID validity, in milliseconds, for the producer readiness check to report UP. A - * certificate at or below this threshold reports DOWN before expiry. Zero requires only an unexpired identity. Does - * not apply to JWT-bundle readiness because bundles have no expiry timestamp. - */ public void setHealthCheckExpiryThreshold(long healthCheckExpiryThreshold) { this.healthCheckExpiryThreshold = healthCheckExpiryThreshold; } - /** - * An already-configured {@link WorkloadApiClient} to use instead of letting the endpoint create one. - */ public WorkloadApiClient getWorkloadApiClient() { return workloadApiClient; } diff --git a/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeConstants.java b/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeConstants.java index 6a3fb689b841..d95fa4ddb8b9 100644 --- a/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeConstants.java +++ b/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeConstants.java @@ -35,11 +35,14 @@ public final class SpiffeConstants { javaType = "String") public static final String AUDIENCE = HEADER_PREFIX + "Audience"; - @Metadata(label = "producer", description = "The JWT-SVID token to validate, for the validateJwtSvid operation.", + @Metadata(label = "producer", description = "The JWT-SVID to validate with the validateJwtSvid operation. It takes" + + " precedence over an Authorization: Bearer header and over the message" + + " body.", javaType = "String") public static final String TOKEN = HEADER_PREFIX + "Token"; - @Metadata(label = "producer", description = "The SPIFFE ID of the returned SVID.", javaType = "String") + @Metadata(label = "producer", description = "The SPIFFE ID of the SVID that the operation fetched or validated.", + javaType = "String") public static final String SPIFFE_ID = HEADER_PREFIX + "SpiffeId"; @Metadata(label = "producer", diff --git a/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeEndpoint.java b/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeEndpoint.java index cca57d46251c..4c173bedff88 100644 --- a/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeEndpoint.java +++ b/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeEndpoint.java @@ -61,7 +61,8 @@ import org.apache.camel.util.ObjectHelper; + " JwtSvid. The SPIFFE ID is in the CamelSpiffeSpiffeId header")) public class SpiffeEndpoint extends DefaultEndpoint { - @UriPath(description = "Logical name of the endpoint") + @UriPath(description = "Free text to tell several spiffe endpoints apart, for example spiffe:mint and spiffe:verify." + + " The component does not use the value.") @Metadata(required = false) private String label; diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SpiffeComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SpiffeComponentBuilderFactory.java index db290a07c692..cc12994d7241 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SpiffeComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SpiffeComponentBuilderFactory.java @@ -73,7 +73,8 @@ public interface SpiffeComponentBuilderFactory { } /** - * The component configuration. + * The shared configuration of the endpoints. Each endpoint starts from + * a copy of it. * * The option is a: * <code>org.apache.camel.component.spiffe.SpiffeConfiguration</code> type. @@ -115,7 +116,10 @@ public interface SpiffeComponentBuilderFactory { /** - * The operation to perform on the SPIFFE Workload API. + * What the producer does on the SPIFFE Workload API: fetchX509Svid + * fetches the X.509-SVID of this workload, fetchJwtSvid fetches a + * JWT-SVID for the audience, and validateJwtSvid validates the JWT-SVID + * of the message against the audience. * * The option is a: * <code>org.apache.camel.component.spiffe.SpiffeOperation</code> type. @@ -133,11 +137,12 @@ public interface SpiffeComponentBuilderFactory { /** - * Whether validateJwtSvid leaves the application body untouched and - * publishes the verified identity through the CamelSpiffeJwtIdentity - * exchange property. In this mode the token must be in CamelSpiffeToken - * or an Authorization Bearer header: the body is never read as a token. - * The default returns the JwtSvid in the body as before. + * Whether validateJwtSvid keeps the message body. When false, the token + * can also come from the body, and the body is replaced with the + * validated JwtSvid. When true, the token must be in the + * CamelSpiffeToken header or an Authorization: Bearer header. In both + * cases the CamelSpiffeJwtIdentity exchange property holds the verified + * identity. * * The option is a: <code>boolean</code> type. * @@ -175,8 +180,9 @@ public interface SpiffeComponentBuilderFactory { } /** - * An existing WorkloadApiClient to use. When set, the component does - * not create or close its own client and spiffeSocketPath is ignored. + * An existing WorkloadApiClient to use instead of a client that the + * endpoint creates. The endpoint does not close it, spiffeSocketPath is + * ignored, and the producer registers no health check. * * The option is a: * <code>io.spiffe.workloadapi.WorkloadApiClient</code> @@ -212,11 +218,11 @@ public interface SpiffeComponentBuilderFactory { /** - * Minimum remaining X.509-SVID validity, in milliseconds, for the - * producer readiness check to report UP. A certificate at or below this - * threshold reports DOWN before expiry. Zero requires only an unexpired - * identity. Does not apply to JWT-bundle readiness because bundles have - * no expiry timestamp. + * The minimum remaining validity, in milliseconds, of the X.509-SVID + * for the producer health check to report UP: at or below it, the check + * reports DOWN before the SVID expires. Zero only requires an unexpired + * SVID. Used only with fetchX509Svid, as for the JWT operations the + * check watches the JWT bundles, which have no expiry. * * The option is a: <code>long</code> type. * 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 1aed6343898c..06d38f5b89c5 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 @@ -16826,7 +16826,8 @@ public class StaticEndpointBuilders { * Syntax: <code>spiffe:label</code> * * Path parameter: label - * Logical name of the endpoint + * Free text to tell several spiffe endpoints apart, for example spiffe:mint + * and spiffe:verify. The component does not use the value. * * @param path label * @return the dsl builder @@ -16846,7 +16847,8 @@ public class StaticEndpointBuilders { * Syntax: <code>spiffe:label</code> * * Path parameter: label - * Logical name of the endpoint + * Free text to tell several spiffe endpoints apart, for example spiffe:mint + * and spiffe:verify. The component does not use the value. * * @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/SpiffeEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SpiffeEndpointBuilderFactory.java index c99046d904ca..b285c4427245 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SpiffeEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SpiffeEndpointBuilderFactory.java @@ -65,7 +65,10 @@ public interface SpiffeEndpointBuilderFactory { return this; } /** - * The operation to perform on the SPIFFE Workload API. + * What the producer does on the SPIFFE Workload API: fetchX509Svid + * fetches the X.509-SVID of this workload, fetchJwtSvid fetches a + * JWT-SVID for the audience, and validateJwtSvid validates the JWT-SVID + * of the message against the audience. * * The option is a: * <code>org.apache.camel.component.spiffe.SpiffeOperation</code> type. @@ -81,7 +84,10 @@ public interface SpiffeEndpointBuilderFactory { return this; } /** - * The operation to perform on the SPIFFE Workload API. + * What the producer does on the SPIFFE Workload API: fetchX509Svid + * fetches the X.509-SVID of this workload, fetchJwtSvid fetches a + * JWT-SVID for the audience, and validateJwtSvid validates the JWT-SVID + * of the message against the audience. * * The option will be converted to a * <code>org.apache.camel.component.spiffe.SpiffeOperation</code> type. @@ -97,11 +103,12 @@ public interface SpiffeEndpointBuilderFactory { return this; } /** - * Whether validateJwtSvid leaves the application body untouched and - * publishes the verified identity through the CamelSpiffeJwtIdentity - * exchange property. In this mode the token must be in CamelSpiffeToken - * or an Authorization Bearer header: the body is never read as a token. - * The default returns the JwtSvid in the body as before. + * Whether validateJwtSvid keeps the message body. When false, the token + * can also come from the body, and the body is replaced with the + * validated JwtSvid. When true, the token must be in the + * CamelSpiffeToken header or an Authorization: Bearer header. In both + * cases the CamelSpiffeJwtIdentity exchange property holds the verified + * identity. * * The option is a: <code>boolean</code> type. * @@ -116,11 +123,12 @@ public interface SpiffeEndpointBuilderFactory { return this; } /** - * Whether validateJwtSvid leaves the application body untouched and - * publishes the verified identity through the CamelSpiffeJwtIdentity - * exchange property. In this mode the token must be in CamelSpiffeToken - * or an Authorization Bearer header: the body is never read as a token. - * The default returns the JwtSvid in the body as before. + * Whether validateJwtSvid keeps the message body. When false, the token + * can also come from the body, and the body is replaced with the + * validated JwtSvid. When true, the token must be in the + * CamelSpiffeToken header or an Authorization: Bearer header. In both + * cases the CamelSpiffeJwtIdentity exchange property holds the verified + * identity. * * The option will be converted to a <code>boolean</code> type. * @@ -135,11 +143,11 @@ public interface SpiffeEndpointBuilderFactory { return this; } /** - * Minimum remaining X.509-SVID validity, in milliseconds, for the - * producer readiness check to report UP. A certificate at or below this - * threshold reports DOWN before expiry. Zero requires only an unexpired - * identity. Does not apply to JWT-bundle readiness because bundles have - * no expiry timestamp. + * The minimum remaining validity, in milliseconds, of the X.509-SVID + * for the producer health check to report UP: at or below it, the check + * reports DOWN before the SVID expires. Zero only requires an unexpired + * SVID. Used only with fetchX509Svid, as for the JWT operations the + * check watches the JWT bundles, which have no expiry. * * The option is a: <code>long</code> type. * @@ -154,11 +162,11 @@ public interface SpiffeEndpointBuilderFactory { return this; } /** - * Minimum remaining X.509-SVID validity, in milliseconds, for the - * producer readiness check to report UP. A certificate at or below this - * threshold reports DOWN before expiry. Zero requires only an unexpired - * identity. Does not apply to JWT-bundle readiness because bundles have - * no expiry timestamp. + * The minimum remaining validity, in milliseconds, of the X.509-SVID + * for the producer health check to report UP: at or below it, the check + * reports DOWN before the SVID expires. Zero only requires an unexpired + * SVID. Used only with fetchX509Svid, as for the JWT operations the + * check watches the JWT bundles, which have no expiry. * * The option will be converted to a <code>long</code> type. * @@ -352,8 +360,9 @@ public interface SpiffeEndpointBuilderFactory { return this; } /** - * An existing WorkloadApiClient to use. When set, the component does - * not create or close its own client and spiffeSocketPath is ignored. + * An existing WorkloadApiClient to use instead of a client that the + * endpoint creates. The endpoint does not close it, spiffeSocketPath is + * ignored, and the producer registers no health check. * * The option is a: <code>io.spiffe.workloadapi.WorkloadApiClient</code> * type. @@ -368,8 +377,9 @@ public interface SpiffeEndpointBuilderFactory { return this; } /** - * An existing WorkloadApiClient to use. When set, the component does - * not create or close its own client and spiffeSocketPath is ignored. + * An existing WorkloadApiClient to use instead of a client that the + * endpoint creates. The endpoint does not close it, spiffeSocketPath is + * ignored, and the producer registers no health check. * * The option will be converted to a * <code>io.spiffe.workloadapi.WorkloadApiClient</code> type. @@ -412,7 +422,8 @@ public interface SpiffeEndpointBuilderFactory { * Syntax: <code>spiffe:label</code> * * Path parameter: label - * Logical name of the endpoint + * Free text to tell several spiffe endpoints apart, for example + * spiffe:mint and spiffe:verify. The component does not use the value. * * @param path label * @return the dsl builder @@ -432,7 +443,8 @@ public interface SpiffeEndpointBuilderFactory { * Syntax: <code>spiffe:label</code> * * Path parameter: label - * Logical name of the endpoint + * Free text to tell several spiffe endpoints apart, for example + * spiffe:mint and spiffe:verify. The component does not use the value. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -485,7 +497,9 @@ public interface SpiffeEndpointBuilderFactory { return "CamelSpiffeAudience"; } /** - * The JWT-SVID token to validate, for the validateJwtSvid operation. + * The JWT-SVID to validate with the validateJwtSvid operation. It takes + * precedence over an Authorization: Bearer header and over the message + * body. * * The option is a: {@code String} type. * @@ -497,7 +511,7 @@ public interface SpiffeEndpointBuilderFactory { return "CamelSpiffeToken"; } /** - * The SPIFFE ID of the returned SVID. + * The SPIFFE ID of the SVID that the operation fetched or validated. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 46cba95dfb4d..f173a2bdbe36 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -341,7 +341,7 @@ or removes its row. | camel-smpp | smpp, smpps | | | camel-snmp | snmp | | | camel-solr | solr | yes | -| camel-spiffe | spiffe | | +| camel-spiffe | spiffe | yes | | camel-splunk-hec | splunk-hec | | | camel-spring | spring-event | yes | | camel-spring-ai-chat | spring-ai-chat | |
