Skip to content

Add support for CleanStart OS vulnerability scanning#3281

Open
cleanstart-community-admin wants to merge 2 commits intoanchore:mainfrom
cleanstart-community-admin:feat/cleanstart-distro
Open

Add support for CleanStart OS vulnerability scanning#3281
cleanstart-community-admin wants to merge 2 commits intoanchore:mainfrom
cleanstart-community-admin:feat/cleanstart-distro

Conversation

@cleanstart-community-admin
Copy link
Copy Markdown

Summary

Adds CleanStart OS as a supported distro type in Grype, enabling accurate vulnerability scanning of CleanStart-based container images using the CleanStart Security Advisories database.

Motivation

CleanStart OS container images were previously unrecognised by Grype — scans produced no vulnerability results and emitted distro-detection warnings. Users scanning CleanStart images had no way to detect known vulnerabilities in installed packages.

Changes

  • Add Clnstrt distro type constant in grype/distro/type.go
  • Add clnstrt and cleanstart to the IDMapping table — clnstrt is the current /etc/os-release identifier; cleanstart supports an in-progress upstream rename
  • Add Clnstrt to the All distro slice
  • Add Rolling: true OS specifier overrides for both identifiers in grype/db/v6/data.go — CleanStart is a rolling distro and does not pin versions
  • Update the OSV transformer to map the CleanStart ecosystem to pkg.ApkPkg — CleanStart uses the APK package format
  • Add testdata/os/clnstrt and testdata/os/cleanstart test fixtures
  • Add test coverage in distro_test.go and type_test.go

Related

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

Signed-off-by: cleanstart-community-admin <community-admin@cleanstart.com>
Signed-off-by: cleanstart-community-admin <community-admin@cleanstart.com>
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