Skip to content

Integrate security reports with OSV.dev #4052

@taraspos

Description

@taraspos

Is your feature request related to a problem? Please describe.
OSV.dev is OpenSource vulnerability database integrated with various tools (like Renovate Bot for example). Currently it lacks data about container image/helm chart vulnerabilities.

Artifacthub.io runs trivy to scan container images1, would be great to be able to see vulnerability information collected by Artifacthub in osv.dev.

Describe the solution you'd like
OSV.dev has multiple ways to contribute vulnerability information 2. ArtifactHub could publish results of trivy scans to the database. As per REST API datasource example, implementation will require two new endpoints, one to list all available CVEs and one to get CVE details:

		// Security
		r.With(compress).Route("/security", func(r chi.Router) {
			r.Route("/osv/", func(r chi.Router) {
				r.Get("/all.json", h.Security.GetAllVulnerabilities)
				r.Get("/{cveID}.json", h.Security.GetCVEDetails)
			})
		})

Vulnerabilities should be formatted in OSV Schema3

Describe alternatives you've considered
N/A

Additional context

Footnotes

  1. https://artifacthub.io/docs/topics/security_report/

  2. https://google.github.io/osv.dev/faq/#can-i-contribute-data

  3. https://github.com/google/osv-scanner/blob/main/pkg/models/vulnerability.go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions