Skip to content

[backport camel-4.18.x] CAMEL-24203: camel-aws-security-hub - implement the declared getFindingAggregator operation#24973

Merged
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:fix/CAMEL-24203-4.18.x
Jul 21, 2026
Merged

[backport camel-4.18.x] CAMEL-24203: camel-aws-security-hub - implement the declared getFindingAggregator operation#24973
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:fix/CAMEL-24203-4.18.x

Conversation

@oscerd

@oscerd oscerd commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Backport of #24940 to camel-4.18.x. Fixes CAMEL-24203 on the 4.18.x line.

getFindingAggregator was declared in SecurityHubOperations but had no case in the producer switch, so selecting it always failed with "Unsupported operation". It is now implemented via the module's executeOperation helper, with the CamelAwsSecurityHubFindingAggregatorArn header it requires. Regenerated metadata included; the test is adapted to junit5 on this branch.

Not applicable to camel-4.14.x — the camel-aws-security-hub component does not exist on that branch.


Claude Code on behalf of oscerd

…ngAggregator operation (apache#24940)

Implements the operation and adds the finding-aggregator ARN header.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@oscerd oscerd added the bug Something isn't working label Jul 21, 2026
@oscerd
oscerd requested review from Croway and davsclaus July 21, 2026 08:19

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport review: CAMEL-24203 — implement getFindingAggregator operation (4.18.x)

Clean backport of #24940. Changes are well-structured and consistent with the existing codebase:

  • SecurityHubConstants: New FINDING_AGGREGATOR_ARN header constant with proper @Metadata annotation — follows the pattern of FINDING_ID, PRODUCT_ARN, etc.
  • SecurityHubProducer: Adds the getFindingAggregator case to the operation switch and implements it via the executeOperation helper — same pattern as getFindingHistory, describeHub, etc. Validates the required ARN header.
  • Test: Mock-based unit test verifies the operation is correctly routed (no longer falls through to "Unsupported operation") and the ARN header is properly extracted and passed to the SDK request.
  • Generated files: Catalog JSON and EndpointDSL factory regenerated and included.

✅ No issues found.


Reviewed with Claude Code on behalf of gnodet. This review was generated by an AI agent and may contain inaccuracies; please verify all suggestions before applying.

@oscerd oscerd added this to the 4.18.4 milestone Jul 21, 2026
@oscerd
oscerd merged commit 3947ca9 into apache:camel-4.18.x Jul 21, 2026
3 checks passed
@oscerd
oscerd deleted the fix/CAMEL-24203-4.18.x branch July 21, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants