aboutcode-org / aboutcode-org/scancode.io

Match existing images and base images in ScanCode.io

未關閉
#1,481 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
215
分支
203
平均合併
4 天 8 小時
30 天內合併 PR
6

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。