Add aws_securityhub permissions to the Federated Identity template - #7588
Draft
seanrathier wants to merge 1 commit into
Draft
Conversation
Mirror the provider_permissions declared by the aws_securityhub package (elastic/integrations#20436) into the incremental Federated Identity template: securityhub:GetFindings, which is the IAM action the GetFindingsV2 API authorizes against per the AWS API reference. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Draft
3 tasks
This was referenced Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
ElasticAwsSecurityHubinline policy to the incremental Federated Identity template:securityhub:GetFindings, mirroring theprovider_permissionsdeclared by theaws_securityhubpackage in elastic/integrations#20436.Note the IAM action: the package's CEL input calls the
GetFindingsV2API (POST /findingsv2), but per the AWS API reference, "GetFindings and GetFindingsV2 both use securityhub:GetFindings in the Action element of an IAM policy statement."Background
Part of https://github.com/elastic/ingest-dev/issues/8812.
Stacked on #7422 (targets its branch; retargets to
mainautomatically when it merges). This is the first per-integration addition under the incremental model: each integration that gains Federated Identity support lands its CFT permissions as a separate PR paired with the elastic/integrations PR that declares them.Sibling PRs on the same baseline: #7422 (GuardDuty baseline) is the base; #7589 (aws Config) and #7590 (Amazon Inspector) are the sibling per-integration additions. Whichever merges second rebases over a trivial same-region conflict.
Test plan
cfn-lintandrainpass in pre-commitElasticAwsSecurityHubinline policyGetFindingsV2to confirm the action authorizes🤖 Generated with Claude Code