Open
Conversation
Adds full OpenSearch support across the detection pipeline: - EOL provider: add ProductMapping for amazon-opensearch, version normalization (strip OpenSearch_ prefix, truncate to major.minor), and fix convertCycle to correctly handle two-tier lifecycle where eol = end of standard support and extendedSupport = real EOL - Wiz inventory source: CSV parsing for OpenSearch domains with nativeType filtering (domains only, not snapshots/policies), version prefix stripping, and tag-based service attribution - Detector: follows Aurora/EKS pattern for inventory fetch, EOL check, and policy evaluation - Server wiring: WIZ_OPENSEARCH_REPORT_ID config, inventory source, EOL provider, and detector registration Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
Follows the Aurora/EKS pattern with full-flow tests covering all status classifications (RED, YELLOW, GREEN) and summary statistics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Kiran01bm
reviewed
Apr 13, 2026
| } | ||
|
|
||
| // parseOpenSearchRow parses a single CSV row into a Resource | ||
| func (s *OpenSearchInventorySource) parseOpenSearchRow(ctx context.Context, row []string) (*types.Resource, error) { |
Contributor
There was a problem hiding this comment.
can you turn this into leveraging the parseWizReport( helper ?
Contributor
|
also worth updating the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
convertCycleto correctly handle two-tier lifecycle (standard support -> extended support -> EOL) for products like OpenSearch and EKSChanges
EOL Provider (
pkg/eol/endoflife/)opensearch->amazon-opensearchProductMappingOpenSearch_prefix, truncate to major.minorconvertCycle: versions pasteolbut beforeextendedSupportare now correctly classified as extended support (YELLOW) instead of EOL (RED)Wiz Inventory Source (
pkg/inventory/wiz/opensearch.go)OpenSearch_2.11->2.11)Detector (
pkg/detector/opensearch/)Server Wiring (
cmd/server/main.go)WIZ_OPENSEARCH_REPORT_IDenv varTest plan
go build ./...passesgo test ./...passes (53+ tests including 13 new OpenSearch tests)OpenSearch_2.11,2.11.0,2.11formats🤖 Generated with Claude Code