Andrea Cosentino created CAMEL-28040:
----------------------------------------

             Summary: camel-aws2-msk: no getBootstrapBrokers, V1-only cluster 
APIs, and inconsistent header labels
                 Key: CAMEL-28040
                 URL: https://issues.apache.org/jira/browse/CAMEL-28040
             Project: Camel
          Issue Type: Improvement
          Components: camel-aws2
            Reporter: Andrea Cosentino


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.

The producer itself is correct: all four operation branches use the matching 
request, setter and client method, pagination is surfaced through NEXT_TOKEN 
and IS_TRUNCATED, every option is consumed by {{AwsClientBuilderUtil}}, and an 
autowired client is not closed. The findings are gaps.

h4. 1. getBootstrapBrokers is missing
{{KafkaClient}} 2.57.7 exposes about 75 operations and the component supports 
four. {{getBootstrapBrokers}} is the one that closes the loop with camel-kafka: 
it returns the connection string a downstream Kafka endpoint needs. Today that 
requires calling the SDK from a bean.

h4. 2. Only the V1 cluster APIs, so MSK Serverless is unmanageable
{{createClusterV2}}, {{listClustersV2}} and {{describeClusterV2}} exist in the 
SDK (verified against the jar) and are the variants that handle both 
provisioned and serverless cluster types. With V1 only, serverless clusters 
cannot be managed and describeCluster on one errors out. Also absent: 
{{listNodes}}, {{getCompatibleKafkaVersions}}, {{updateBrokerCount}}, 
{{updateBrokerStorage}}, {{tagResource}}.

h4. 3. The credentials validation message omits useSessionCredentials
{{MSK2Component}} tests four flags but the message names two, so a user who set 
useSessionCredentials=true and nothing else gets a message that does not 
mention the option they used. IAM2Component and KMS2Component both include it.

h4. 4. Smaller issues
Header {{@Metadata}} labels are applied to half the constants only: NEXT_TOKEN, 
MAX_RESULTS, IS_TRUNCATED and CLUSTER_STATE carry an operation label, while 
OPERATION, CLUSTERS_FILTER, CLUSTER_NAME, CLUSTER_ARN, CLUSTER_KAFKA_VERSION, 
BROKER_NODES_NUMBER and BROKER_NODES_GROUP_INFO carry none, so the generated 
header table groups them inconsistently.
{{operation}} carries {{@Metadata(required = true)}} although its description 
says the CamelAwsMSKOperation header replaces it.
describeCluster is listed in the adoc but has no example, and the three 
pagination headers are not shown in any prose example.

_Claude Code on behalf of oscerd_



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

Reply via email to