Skip to content

[9.5](backport #7277) [Asset Inventory][AWS] Update EC2, ELB and RDS fetchers for InfoSec - #7482

Open
mergify[bot] wants to merge 1 commit into
9.5from
mergify/bp/9.5/pr-7277
Open

[9.5](backport #7277) [Asset Inventory][AWS] Update EC2, ELB and RDS fetchers for InfoSec#7482
mergify[bot] wants to merge 1 commit into
9.5from
mergify/bp/9.5/pr-7277

Conversation

@mergify

@mergify mergify Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary of your changes

Note

Stacked on #7473. This PR is based on asset-inventory/fix-entity-attributes, which renames the entity.attributes (flattened) bag to entity.Details to fix the Entity Store generic-extraction bug. All new fields below are therefore emitted under entity.Details.* (not entity.attributes.*). Please review/merge #7473 first; this PR's diff shows only the InfoSec fetcher changes on top of it.

Resource Field Change
EC2 entity.Details.Role Added LookupTag(tags, "role") in buildDetails
RDS entity.Details.DBInstanceStatus Added Status field to wrapper struct; mapped from DBInstanceStatus in provider; emitted in fetcher
ELB v2 (ALB/NLB) entity.Details.IPAddresses GetIPAddresses() now also collects PrivateIPv4Address and IPv6Address per AZ address (previously only IpAddress)
ELB v1 (Classic) entity.Details.State GetState() returns "active" (hardcoded as classic API exposes no state field)
ELB v1 (Classic) entity.Details.IPAddresses DNS-resolves the ELB DNSName at fetch time via injectable hostResolver; soft-fails to empty on error

Related Issues

Closes https://github.com/elastic/security-team/issues/18294

Checklist

  • I have added tests that prove my fix is effective or that my feature works

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

…7277)

### Summary of your changes

> [!NOTE]
> **Stacked on #7473.** This PR is based on
`asset-inventory/fix-entity-attributes`, which renames the
`entity.attributes` (flattened) bag to `entity.Details` to fix the
Entity Store generic-extraction bug. All new fields below are therefore
emitted under **`entity.Details.*`** (not `entity.attributes.*`). Please
review/merge #7473 first; this PR's diff shows only the InfoSec fetcher
changes on top of it.

| Resource | Field | Change |
| -------------------- | --------------------------------- |
------------------------------------------------------------------------------------------------------------------------
|
| **EC2** | `entity.Details.Role` | Added `LookupTag(tags, "role")` in
`buildDetails` |
| **RDS** | `entity.Details.DBInstanceStatus` | Added `Status` field to
wrapper struct; mapped from `DBInstanceStatus` in provider; emitted in
fetcher |
| **ELB v2** (ALB/NLB) | `entity.Details.IPAddresses` |
`GetIPAddresses()` now also collects `PrivateIPv4Address` and
`IPv6Address` per AZ address (previously only `IpAddress`) |
| **ELB v1** (Classic) | `entity.Details.State` | `GetState()` returns
`"active"` (hardcoded as classic API exposes no state field) |
| **ELB v1** (Classic) | `entity.Details.IPAddresses` | DNS-resolves the
ELB `DNSName` at fetch time via injectable `hostResolver`; soft-fails to
empty on error |

### Related Issues

Closes https://github.com/elastic/security-team/issues/18294

### Checklist
- [x] I have added tests that prove my fix is effective or that my
feature works

(cherry picked from commit 3bc1c9d)
@mergify mergify Bot added the backport label Jul 30, 2026
@mergify
mergify Bot requested a review from a team as a code owner July 30, 2026 13:21
@mergify

mergify Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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.

2 participants