Updated
14 days
ago.
2 hacker ♥️.
1 follower.
Has no hacker:
grab it!
Description
A Kubernetes controller prototype that integrates sbomscanner with automated vulnerability patching using copa. The tool automatically detects vulnerabilities in container images through VulnerabilityReport CRs and generates patched images by applying minimal security updates.
Key Features
- Automatic Detection: Watches
VulnerabilityReportCRs created by sbomscanner for container images with vulnerabilities - Intelligent Filtering: Automatically skips images that have already been patched (tag contains
-patchsuffix) - On-Demand BuildKit: Automatically provisions BuildKit infrastructure using BuildKit operator when needed
- Format Transformation: Converts sbomscanner's
VulnerabilityReportformat to Trivy JSON format required by copa - Automated Patching: Executes
copa patchCLI to apply security patches and build patched container images - Registry Integration: Automatically pushes patched images to the registry with a new tag (
original-tag-patch) - State Tracking: Creates
PatchJobCRs to track patching completion and prevent duplicate processing
Integration Points
- sbomscanner: Consumes
VulnerabilityReportCRs as input (read-only) - copa: Uses copa CLI tool to patch container images based on vulnerability reports
- BuildKit: Dynamically creates BuildKit instances per registry for image building operations
Goals
Integrate sbomscanner output with patch generation logic
- Transform
VulnerabilityReportformat (sbomscanner) to Trivy JSON format - Extract vulnerability information and image metadata
- Pass formatted data to copa for patching
- Transform
Automate the patching workflow
- Automatically detect new vulnerability reports
- Provision required infrastructure (BuildKit) on-demand
- Execute patching operations without manual intervention
- Track patching status and prevent duplicate work
Provide Kubernetes-native solution
- Use CRDs for state management (
PatchJob) - Follow controller-runtime patterns
- Integrate with existing Kubernetes tooling (BuildKit operator)
- Use CRDs for state management (
Reference
- Implementation
- sbomscanner : Provides
VulnerabilityReportCRs that contain vulnerability scan results for container images - copa: CLI tool that patches container images by applying security updates based on vulnerability reports
No Hackers yet
Looking for hackers with the skills:
Nothing? Add some keywords!
This project is part of:
Hack Week 25
Activity
Comments
Be the first to comment!
Similar Projects
This project is one of its kind!