Skip to content

feat: expand audit mode with config health checks and tests#1

Merged
asomensari-es merged 1 commit into
mainfrom
feat/audit-config-checks
Jul 9, 2026
Merged

feat: expand audit mode with config health checks and tests#1
asomensari-es merged 1 commit into
mainfrom
feat/audit-config-checks

Conversation

@asomensari-es

Copy link
Copy Markdown
Owner

Add three new AuditFetchers that flag alert configuration issues:

  • disabled_conditions: NRQL conditions with enabled=false
  • uncovered_alert_policies: policies with active conditions but no aiWorkflow routing their alerts, and policies with zero conditions
  • legacy_conditions: APM/Browser/Mobile metric conditions that should be migrated to NRQL

Update report.go to render config findings (empty IDType) without the ID->entity resolution line, and split the overall summary into "Hardcoded ID refs" and "Config issues" counters.

Fix resolver.go suggest() to preserve pre-set Suggestion on config findings instead of overwriting with an empty string.

Add 8 test files covering patterns, CSV, report, and all four fetchers (conditions, disabled, uncovered policies, legacy). Update CI to emit a coverage report and upload coverage.out as an artifact.

Add three new AuditFetchers that flag alert configuration issues:
- disabled_conditions: NRQL conditions with enabled=false
- uncovered_alert_policies: policies with active conditions but no
  aiWorkflow routing their alerts, and policies with zero conditions
- legacy_conditions: APM/Browser/Mobile metric conditions that should
  be migrated to NRQL

Update report.go to render config findings (empty IDType) without the
ID->entity resolution line, and split the overall summary into
"Hardcoded ID refs" and "Config issues" counters.

Fix resolver.go suggest() to preserve pre-set Suggestion on config
findings instead of overwriting with an empty string.

Add 8 test files covering patterns, CSV, report, and all four fetchers
(conditions, disabled, uncovered policies, legacy). Update CI to emit
a coverage report and upload coverage.out as an artifact.
@asomensari-es asomensari-es merged commit c35ba17 into main Jul 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant