bootc-dev / bootc-dev/bootc

Vulnerability insights between deployments

Offen
#1,004 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area/client enhancement triaged
Vorherrschende Sprache
Rust
Sterne
2.3k
Forks
230
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
36

Beschreibung

I'll preface this issue by saying this. I have recently (30ish minutes ago) learned about something, and feel it could be applied here. There's a strong possibility it cannot, and would be more than happy to forget about it and move on.

---

rpm-ostree provides a nice security overview of vulnerabilities fixed between the current and staged deployment, which would be very handy to have here. I know bootc doesn't have (or is trying to remove?) the tight integration with the package manager, so doing this through rpm-ostree could be problematic, and need rework in the near future.

This gets me to the thing I have recently found out about - the referrers API, and attaching artifacts to OCI images ([video](https://youtu.be/_c1OdmP9Ssg)).

In this wild idea, bootc could query the OCI registry for SBOMs of the current image and staged image. From these two SBOMs, it might be trivial to work out the diff and be able to say which packages or binaries have resolved vulnerabilities.

All logic to scan the image and detect vulnerabilities would be offboarded to specialised tooling as part of the CI process, such as syft, and bootc would need to make a couple queries to a registry and learn how to ingest and compare data from an SBOM.

1. Bootc stages a new deployment
2. Bootc queries the registry for an image artifact of mediaType [`application/spdx+json`](https://www.iana.org/assignments/media-types/application/spdx+json), ingesting the data
3. Bootc compares the SBOM data from the current and staged deployments, informing the user as part of `bootc status` or `bootc update`

Please let me know if this is not possible, or if there are better ways to approach the problem.

Thanks,
Rob

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit zu prüfen, wie bootc das Deployment-Staging und die Ausgabe von `bootc status` oder `bootc update` handhabt, und untersuche anschließend die Registry Referrers API und die im Issue beschriebenen SPDX-SBOM-Daten. Vergleiche SBOMs für aktuelle und bereitgestellte Images und definiere, wie behobene Schwachstellen gemeldet werden sollen; das Issue ist abgeschlossen, sobald die Machbarkeit und der Implementierungsumfang feststehen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
operating-systems, security
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.