Skip to content

[9.4](backport #6991) [Cloud Asset Inventory] Add extra resource fields #1#7187

Open
mergify[bot] wants to merge 2 commits into
9.4from
mergify/bp/9.4/pr-6991
Open

[9.4](backport #6991) [Cloud Asset Inventory] Add extra resource fields #1#7187
mergify[bot] wants to merge 2 commits into
9.4from
mergify/bp/9.4/pr-6991

Conversation

@mergify

@mergify mergify Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to InfoSec's review of #6991. Adds the remaining EC2 and ELB
fields InfoSec needs to retire their custom AWS CLI scripts for the FedRAMP
asset inventory. All new fields land in entity.attributes.* (non-ECS,
UpperCamelCase) — no ECS mapping change required.

Tracking: https://github.com/elastic/security-team/issues/17750

Changes

EC2 (entity.attributes):

  • ImageId, Platform, VpcId, SubnetId, State, RoleArn
  • Owner, CostCenter — resolved case-insensitively from instance tags

ELB v1 + v2 (entity.attributes):

  • LoadBalancerType — v2 reports the real type; v1 reports classic
  • AccountID
  • State — v2 only (State.Code); classic ELB exposes no state field
  • IPAddresses — NLB static IPs; ALB/classic are DNS-only (empty)
  • OwnerTag — required adding DescribeTags to both ELB Client
    interfaces and providers (batched to the 20-item AWS limit)

Notes

  • No elastic/integrations change: entity.attributes is flattened, so
    new keys need no mapping and there's no migration.
  • No new asset classifications, so ASSETS.md is unchanged. Route53 and
    EKS (also requested in the review) are separate follow-up PRs.
  • Mocks regenerated; unit tests cover EC2 attributes and the ELB
    Type/State/IPAddresses/OwnerTag flow end-to-end.

This is an automatic backport of pull request #6991 done by [Mergify](https://mergify.com).

## Summary

Follow-up to InfoSec's review of #6991. Adds the remaining EC2 and ELB
fields InfoSec needs to retire their custom AWS CLI scripts for the
FedRAMP
asset inventory. All new fields land in `entity.attributes.*` (non-ECS,
UpperCamelCase) — no ECS mapping change required.

Tracking: https://github.com/elastic/security-team/issues/17750

## Changes

**EC2** (`entity.attributes`):
- `ImageId`, `Platform`, `VpcId`, `SubnetId`, `State`, `RoleArn`
- `Owner`, `CostCenter` — resolved case-insensitively from instance tags

**ELB v1 + v2** (`entity.attributes`):
- `LoadBalancerType` — v2 reports the real type; v1 reports `classic`
- `AccountID`
- `State` — v2 only (`State.Code`); classic ELB exposes no state field
- `IPAddresses` — NLB static IPs; ALB/classic are DNS-only (empty)
- `OwnerTag` — required adding `DescribeTags` to both ELB `Client`
  interfaces and providers (batched to the 20-item AWS limit)

## Notes
- No `elastic/integrations` change: `entity.attributes` is `flattened`,
so
  new keys need no mapping and there's no migration.
- No new asset classifications, so `ASSETS.md` is unchanged. Route53 and
  EKS (also requested in the review) are separate follow-up PRs.
- Mocks regenerated; unit tests cover EC2 attributes and the ELB
  Type/State/IPAddresses/OwnerTag flow end-to-end.

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit a25d3cb)
@mergify mergify Bot added the backport label Jul 6, 2026
@mergify mergify Bot requested a review from a team as a code owner July 6, 2026 16:46
@mergify mergify Bot added the backport label Jul 6, 2026
@kubasobon kubasobon enabled auto-merge July 7, 2026 15:36
@mergify

mergify Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

This pull request has not been merged yet. Could you please review and merge it @kubasobon? 🙏

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant