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

Work on CAMEL-24203 started by Andrea Cosentino.
------------------------------------------------
> camel-aws-security-hub: getFindingAggregator operation is declared but not 
> implemented
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24203
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24203
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.14.9, 4.18.4, 4.22.0
>
>
> SecurityHubOperations declares a getFindingAggregator value, but 
> SecurityHubProducer.process has no case for it, so the switch falls through 
> to:
> {code:java}
> default:
>     throw new IllegalArgumentException("Unsupported operation");
> {code}
> Selecting operation=getFindingAggregator therefore always fails with 
> "Unsupported operation" even though the catalog/enum advertises it.
> Fix: implement the operation using the existing executeOperation helper (POJO 
> GetFindingAggregatorRequest plus a header-driven path), and add the 
> finding-aggregator ARN header constant it needs. The AWS GetFindingAggregator 
> API requires the findingAggregatorArn.
> Code reference (main): SecurityHubOperations.java (enum value) and 
> SecurityHubProducer.java process() switch (~lines 78-99).
> Present on camel-4.18.x and camel-4.14.x; backport to both.
> Found during an agent-assisted audit of the AWS components; verified against 
> the cited code.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to