aboutcode-org / aboutcode-org/scancode.io

Match existing images and base images in ScanCode.io

Aperta
#1,481 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
215
Fork
203
Merge medio
4g 8h
PR unite (30g)
6

Descrizione

When scanning an image I would like to match to know existing images, and layers, and in particular base images. For this we need to:

- [ ] PurlDB: index known container images layers, and base images https://github.com/aboutcode-org/purldb/issues/434
- [ ] MatchCode: match existing layers to an index of images
- [ ] SCIO: create pipe and pipelines to match container layers and base images (this issue)

The purpose of this is that when we want to figure out vulnerabilities, we can first work on the base images, patch the vulnerabilities, and then reuse that patched base image throughout.

On the scanning side, we can then identify quickly if the image we have is patched or not, without having to review the vulnerabilities of possibly thousand packages with million vulnerabilities across thousand repos.

The base images should be collected for indexing from the public docker hub registry or other public registries or a private registry, possibly filtered only on the base images.

These are related issues and code:
- [ ] https://github.com/aboutcode-org/scancode.io/issues/1189
- [ ] https://github.com/aboutcode-org/scancode.io/issues/661
- [ ] https://github.com/aboutcode-org/scancode.io/issues/1159 (because if we can match we can deal with missing metadata)
- https://github.com/aboutcode-org/purldb/blob/112f4f244350b5c6a23d7eaf6dc9bf41e97ac893/minecode/miners/dockerhub.py#L169

And @Hritik14 's :
- https://github.com/supplyshield/supplyshield/blob/master/libinv/scanners/image_scanner/base_image.py

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.