Skip to content

[aws] Enable Identity Federation for SecurityHub data streams - #20529

Draft
seanrathier wants to merge 3 commits into
elastic:mainfrom
seanrathier:aws/securityhub-identity-federation
Draft

[aws] Enable Identity Federation for SecurityHub data streams#20529
seanrathier wants to merge 3 commits into
elastic:mainfrom
seanrathier:aws/securityhub-identity-federation

Conversation

@seanrathier

@seanrathier seanrathier commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Important

Parked. The aws package's securityhub template has an open deprecate-or-coexist question versus the standalone aws_securityhub package, which is the intended vehicle for Security Hub federation (#20436, paired with elastic/cloudbeat#7588). This PR stays draft until that decision lands; if the legacy template is deprecated, close this unmerged.

Proposed commit message

Enable Identity Federation for the aws package SecurityHub data streams.

WHAT: migrates securityhub_findings, securityhub_findings_full_posture, and securityhub_insights HTTPJSON templates from hand-rolled SigV4 signing (X-Amz-Date header + Authorization set transforms, including the pagination re-sign) to the input's auth.aws configuration with use_cloud_connectors driven by the supports_identity_federation var. Removes the identity_federation gate from the securityhub policy template.

WHY: the hand-rolled signing never set X-Amz-Security-Token, so session tokens were silently broken, and it blocked the Cloud Connectors zero-credential flow. Part of ingest-dev#8812 (SecurityHub federation is scoped there, not under ingest-dev#8802).

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs. (E2E validation pending — see test plan below)
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices (no dashboards added or changed)

Author's Checklist

How to test this PR locally

cd packages/aws
elastic-package check
elastic-package test policy

For the federated path E2E:

  1. Deploy the federated identity CFT with securityhub:GetFindings and securityhub:GetInsights on the role
  2. In Fleet, create an agentless AWS integration using the Identity Federation credential type and enable the SecurityHub CSPM policy template
  3. Validate securityhub_findings, securityhub_findings_full_posture, and securityhub_insights all show HEALTHY with no AccessDeniedException in agent logs

Related issues

…-dev#8812)

Migrates securityhub_findings, securityhub_findings_full_posture, and
securityhub_insights HTTPJSON templates from hand-rolled SigV4 signing to
the input's auth.aws configuration. Removes the identity_federation gate
from the securityhub policy template.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

seanrathier and others added 2 commits August 4, 2026 15:05
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

✅ All changelog entries have the correct PR link.

@seanrathier seanrathier added the enhancement New feature or request label Aug 4, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant