decouple SBOM generation from image build process
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, go
- Área
- build-system, devops
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Go
- Estrellas
- 19
- Forks
- 24
- Merge medio
- 8 d 22 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de docker-library/meta-scripts
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
docker-library/meta-scripts#141 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
docker-library/meta-scripts#140 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
docker-library/meta-scripts#138 · 1 comentario ·
Todos los issues de docker-library/meta-scripts
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
github/github-mcp-server#3865 ·
Los mantenedores suelen responder en 2 días
-
kind/features
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
TencentBlueKing/bk-nodemgr#4017 ·
Los mantenedores suelen responder en 1 día
-
ssa: wait errors drop the kstatus message, so health check failures don't say whyPosiblemente ocupada @schdief la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
equinor/radix-operator#2066 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
microsoft/terraform-provider-msgraph#188 · 1 reacción ·
Los mantenedores suelen responder en 1 día