• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elastic / cloudbeat / 28807952425
76%

Build:
DEFAULT BRANCH: main
Ran 06 Jul 2026 05:02PM UTC
Jobs 1
Files 237
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Jul 2026 04:26PM UTC coverage: 75.943% (+0.2%) from 75.771%
28807952425

push

github

web-flow
[Cloud Asset Inventory] Add extra resource fields #1 (#6991)

## 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>

250 of 299 new or added lines in 20 files covered. (83.61%)

2 existing lines in 1 file now uncovered.

9966 of 13123 relevant lines covered (75.94%)

16.18 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
0.0
internal/resources/providers/awslib/iam/instance_profile.go
11
85.26
-10.84% internal/inventory/azurefetcher/fetcher_resource_graph.go
7
92.72
-1.4% internal/inventory/awsfetcher/fetcher_ec2_instance.go
6
87.14
-6.34% internal/inventory/awsfetcher/fetcher_elb.go
4
92.96
-4.77% internal/resources/providers/awslib/elb/provider.go
4
90.48
-2.12% internal/resources/providers/awslib/elb_v2/provider_v2.go
3
86.05
0.04% internal/inventory/gcpfetcher/fetcher_assets.go
1
0.0
0.0% internal/inventory/awsfetcher/awsfetchers.go

Coverage Regressions

Lines Coverage ∆ File
2
82.74
0.0% internal/resources/providers/gcplib/inventory/provider.go
Jobs
ID Job ID Ran Files Coverage
1 28807952425.1 06 Jul 2026 05:02PM UTC 237
75.94
GitHub Action Run
Source Files on build 28807952425
  • Tree
  • List 237
  • Changed 21
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a25d3cb2 on github
  • Prev Build on gh-readonly-queue/main/pr-7178-b1914620d24c745da446cd9b40552c49bbd50b7d (#28803218466)
  • Next Build on main (#28811209976)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc