Skip to content

Inventory packages on AWS Linux root volumes - #113

Merged
om986 merged 1 commit into
mainfrom
feat/aws-root-volume-packages
Oct 15, 2026
Merged

om986 merged 1 commit into
mainfrom
feat/aws-root-volume-packages

Conversation

@om986

@om986 om986 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add om scan workload for Phase 4 (#102). It runs as root on an EC2 instance in the account, snapshots each Linux root volume, mounts the copy read-only, and writes CPE 2.3 names and package URLs onto the existing workload.
  • om scan aws stays a read-only API scan. A later API scan keeps packages. Snapshots and volumes are deleted when the read finishes, including on failure, and are tagged opensourceom:scan=workload.
  • Windows instances, LVM roots, and non-root disks are skipped. The graph stores package identifiers only.

Test plan

  • go test ./... with TEST_DATABASE_URL set
  • On an EC2 worker, run om scan aws, then sudo -E ./om scan workload, then om enrich cve, and confirm a CVE attaches only when an identifier matches
  • Fail a read on purpose and confirm the snapshot and volume are deleted
  • Run om scan aws again and confirm packages are still on the workload
  • Confirm a Windows instance and an LVM root are skipped

Made with Cursor

CVE enrichment can only match packages the graph already stores, and the API scan never read the disk. This adds an opt-in worker command that fills that list from the root volume.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: OpenSourceOM/core/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aa50b08b-9390-44ac-9baf-86dbe8dcba37
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@om986
om986 merged commit c17c8f6 into main Oct 15, 2026
7 checks passed
@om986
om986 deleted the feat/aws-root-volume-packages branch October 15, 2026 11:44
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