Repository navigation
Inventory packages on boot images - #127
Merged
Merged
Conversation
Azure and GCP already name the cloud, and the bare command was running the AWS scan. Co-authored-by: Cursor <cursoragent@cursor.com>
Read each AMI, Azure image, and GCE image once and add those package identifiers to instances launched from it, keeping packages installed on an instance after boot. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # CONTRIBUTING.md # README.md # collectors/README.md # deploy/helm/opensourceom/values.yaml # docs/ARCHITECTURE.md # docs/ROADMAP.md # internal/cmd/scan_workload.go # internal/cmd/scan_workload_aws.go
om scan workload reads Linux root volumes, and om scan workload image reads boot images, on AWS, Azure, and GCE. Co-authored-by: Cursor <cursoragent@cursor.com>
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
om scan workload image aws,om scan workload image azure, andom scan workload image gcpfor Phase 4 (#104). Each runs as root on a worker in that account and region, reads a boot image once through the same package walker as a root volume, and adds those CPE 2.3 names and package URLs to every workload launched from that image.om scan workload aws,om scan workload azure, andom scan workload gcpstill replacepackageswith what is on that instance's own disk.om enrich cveis unchanged.om scan workloadis now the parent command. The AWS root-volume scan isom scan workload aws, beside the Azure and GCE commands.Test plan
go test ./internal/workload/... ./internal/cmd/ ./internal/graph/ -count=1om scan aws, thensudo -E ./om scan workload image aws, and confirm instances from one AMI share that image's package identifiersom scan workload awsfor that instance, then run the image scan again, and confirm the extra package stays on that instance onlyom scan azure, thensudo -E ./om scan workload image azureom scan gcp, thensudo -E ./om scan workload image gcpaccount cannot snapshot this imageom enrich cveand confirm a CVE attaches when an image package identifier matchesMade with Cursor