decouple SBOM generation from image build process
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, go
- Ambito
- build-system, devops
Direzione di ricerca
Start by reading how builds.json entries are assembled in the meta-scripts repo (the build and source keys), then read the three linked meta-scripts PRs (#87, #51, #124) for prior SBOM work. The change would add a separate sbom key alongside build and source, generated after the build from buildId plus image and scanner digests. Done means SBOMs are produced and regenerated independently of the image build, and builds.json carries the new sbom entry. This is a design proposal, not a scoped task.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently, we generate SBOMs as part of the image build process, but the only benefit we gain from doing so is marginal (rabbitmq uses ARG BUILDKIT_SBOM_SCAN_STAGE=true to scan non-final stages of the image, but the benefits gained from doing so are very unclear if existent at all).
If we decouple that and treat SBOMs as another separate "build" artifact that we can only generate once we have a build, and generate an sbomId from something like buildId + built image digest + SBOM scanning image digest, then we'd get some interesting benefits; notably:
- SBOM scanner would no longer need to run on every architecture we want SBOMs for (they'd all run on a linux/amd64 instance regardless of image architecture)
- SBOMs could be regenerated when the SBOM scanner image is updated (no longer requiring a rebuild of the image we're scanning to fix SBOM-specific issues)
Prior related art:
- https://github.com/docker-library/meta-scripts/pull/87
- https://github.com/docker-library/meta-scripts/pull/51
- https://github.com/docker-library/meta-scripts/pull/124
One way we could embed this is by adding an "sbom" key in builds.json next to "build" and "source" (whose order in that file I've been considering swapping, which would make it natural to have "source", "build", and then "sbom", listed in the order they have to be processed/exist).
- Lingua principale
- Go
- Stelle
- 19
- Fork
- 24
- Merge medio
- 8g 22h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di docker-library/meta-scripts
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
docker-library/meta-scripts#141 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
docker-library/meta-scripts#140 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
docker-library/meta-scripts#138 · 1 commento ·
Tutte le issue di docker-library/meta-scripts
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
github/github-mcp-server#3865 ·
I maintainer di solito rispondono entro 2 giorni
-
kind/features
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TencentBlueKing/bk-nodemgr#4017 ·
I maintainer di solito rispondono entro 1 giorno
-
ssa: wait errors drop the kstatus message, so health check failures don't say whyForse già presa @schdief l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
equinor/radix-operator#2066 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
microsoft/terraform-provider-msgraph#188 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno