Skip to content

Add aws Config permissions to the Federated Identity template - #7589

Draft
seanrathier wants to merge 1 commit into
seanrathier/federated-identity-aws-cftfrom
seanrathier/federated-identity-aws-config
Draft

Add aws Config permissions to the Federated Identity template#7589
seanrathier wants to merge 1 commit into
seanrathier/federated-identity-aws-cftfrom
seanrathier/federated-identity-aws-config

Conversation

@seanrathier

@seanrathier seanrathier commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the ElasticAwsConfig inline policy to the incremental Federated Identity template:

  • config:DescribeConfigRules
  • config:GetComplianceDetailsByConfigRule

These are the two operations the AWS Config data stream's CEL program calls, paired with elastic/integrations#20437 (the Config auth.aws migration + ungate). Both IAM actions map 1:1 to their API operation names.

Deliberate omission: the permission patch sets in elastic/integrations#20240 also list config:DescribeComplianceByConfigRule — the program never calls it, so it is left out (least privilege; likely stale in #20240 since the service-linked-rules fix reshaped the collection flow).

Background

Part of https://github.com/elastic/ingest-dev/issues/8802.

Stacked on #7422 (the incremental baseline); retargets to main automatically when it merges. One CFT PR per federated integration, each paired with the elastic/integrations PR that defines the stream's actual API surface.

Sibling PRs on the same baseline: #7422 (GuardDuty baseline) is the base; #7588 (aws_securityhub) and #7590 (Amazon Inspector) are the sibling per-integration additions. Whichever merges second rebases over a trivial same-region conflict.

Test plan

  • cfn-lint and rain pass in pre-commit
  • Deploy the stack in a test AWS account; verify the role carries ElasticAwsConfig
  • Assume the role and call DescribeConfigRules + GetComplianceDetailsByConfigRule to confirm both authorize

🤖 Generated with Claude Code

Mirror the AWS Config permission set from the patch files in
elastic/integrations#20240 into the incremental Federated Identity
template: config:DescribeConfigRules and
config:GetComplianceDetailsByConfigRule, the two operations the
Config data stream's CEL program calls (elastic/integrations#20437).

config:DescribeComplianceByConfigRule from the #20240 patch set is
deliberately omitted — the program never calls it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@seanrathier
seanrathier force-pushed the seanrathier/federated-identity-aws-config branch from 833983d to ec24a13 Compare July 31, 2026 20:47
@seanrathier
seanrathier changed the base branch from seanrathier/federated-identity-aws-securityhub to seanrathier/federated-identity-aws-cft July 31, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant