[ 
https://issues.apache.org/jira/browse/CAMEL-28030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino reassigned CAMEL-28030:
----------------------------------------

    Fix Version/s: 4.25.0
         Assignee: Andrea Cosentino

> camel-aws2-kms: operation is marked required although the header replaces it, 
> and the component cannot encrypt or decrypt
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-28030
>                 URL: https://issues.apache.org/jira/browse/CAMEL-28030
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws2
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.25.0
>
>
> Found during an audit of the cloud components (camel-aws, camel-azure, 
> camel-google, camel-huawei) at commit 7c0644752e17. Every item below was 
> verified against the source.
> h4. 1. operation is required although the header replaces it
> {{KMS2Configuration}} declares the option with {{@Metadata(required = true)}} 
> while its own description says "The CamelAwsKMSOperation header replaces this 
> option" and {{KMS2Producer.determineOperation}} supports the header-only 
> case. URI validation, the catalog and IDE completion therefore reject a valid 
> endpoint that sets the operation per message. CAMEL-27623 fixed exactly this 
> for aws2-ecs.
> Proposed change: drop {{required = true}}, as in ECS2Configuration.
> h4. 2. The component cannot encrypt or decrypt anything
> {{KMS2Operations}} is listKeys, createKey, disableKey, scheduleKeyDeletion, 
> describeKey, enableKey - key lifecycle only. {{encrypt}}, {{decrypt}}, 
> {{generateDataKey}}, {{reEncrypt}}, {{sign}}/{{verify}}, 
> {{createAlias}}/{{listAliases}}, {{enableKeyRotation}} and {{tagResource}} 
> are all absent, so envelope-encrypting a payload from a route is not 
> possible. pojoRequest does not help: the switch only dispatches the six 
> operations above.
> Proposed change: add at least encrypt, decrypt and generateDataKey.
> h4. 3. No health check, and no health-check options
> {{KMS2Component}} extends {{DefaultComponent}} instead of 
> {{HealthCheckComponent}}, so the component exposes neither 
> {{healthCheckProducerEnabled}} nor {{healthCheckConsumerEnabled}}, and there 
> is no {{*ProducerHealthCheck}} class. 34 of the 38 AWS schemes have both (the 
> other three without are sts, transcribe and kinesis-firehose).
> h4. 4. Smaller issues
> {{KMS2Endpoint}} is {{producerOnly = true}} and throws from createConsumer, 
> yet extends {{ScheduledPollEndpoint}}; {{DefaultEndpoint}} is what cw, sts 
> and ses use.
> {{KMS2Constants.IS_TRUNCATED}} has the wire value {{CamelAwsKMSTruncated}} 
> while 12 other modules emit {{...IsTruncated}}.
> _Claude Code on behalf of oscerd_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to