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

elastic / cloudbeat / 28874166712
76%
main: 76%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-7268-ece9c3801a1e8ee41b24a135291752d8ab2dba7a
DEFAULT BRANCH: main
Ran 07 Jul 2026 02:47PM UTC
Jobs 1
Files 245
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

07 Jul 2026 02:30PM UTC coverage: 76.106% (-0.02%) from 76.123%
28874166712

push

github

web-flow
fix: prevent panic when RDS DB instance has a nil DBSubnetGroup (#7188)

## Summary
- AWS can return `DescribeDBInstances` results with a nil
`DBSubnetGroup` (e.g. for EC2-Classic instances or instances in certain
transitional states). `getDBInstanceSubnets` unconditionally
dereferenced `dbInstance.DBSubnetGroup.Subnets`, causing a nil pointer
dereference panic that crashed cloudbeat's CSPM/asset-inventory AWS
agent (observed as `likely-elastic-agent-integration-oom` alerts).
- Added a nil guard that returns an empty subnet list for instances
without a `DBSubnetGroup`, matching existing behavior for instances with
an empty subnet list.

Fixes elastic/seceng#14066

## Test plan
- [x] Added a regression test (`Should not panic when a DB instance has
no DBSubnetGroup`) in `provider_test.go` covering a `DBInstance` with
`DBSubnetGroup: nil`.
- [x] Verified the regression test reproduces the original panic when
the fix is reverted (identical stack trace shape to the one in the
issue).
- [x] `go test ./internal/resources/providers/awslib/...` passes.
- [x] `go build`, `go vet`, and `gofmt -l` clean on changed files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

3 of 3 new or added lines in 1 file covered. (100.0%)

3 existing lines in 1 file now uncovered.

10205 of 13409 relevant lines covered (76.11%)

15.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
83.06
-0.98% internal/resources/providers/gcplib/inventory/provider.go
Jobs
ID Job ID Ran Files Coverage
1 28874166712.1 07 Jul 2026 02:47PM UTC 245
76.11
GitHub Action Run
Source Files on build 28874166712
  • Tree
  • List 245
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f57ec2bb on github
  • Prev Build on gh-readonly-queue/main/pr-7228-578d5af86d2f29ff54af2ccca341c4c5b09012c4 (#28865590864)
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