Question on verification target
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
Línea de trabajo
Comienza con docker/github-builder/.github/workflows/verify.yml@v1 y el paso “Set result output” del trabajo de build en .github/workflows/github-build.yml. Rastrea los verifyCommands emitidos y los digests de la imagen, la plataforma y la attestation; después, documenta el flujo de verificación local recomendado y cómo deben verificar los usuarios los atributos del repositorio o del commit de origen. Se considera terminado cuando el comportamiento de los digests y la elección entre los comandos de verificación de cosign estén claramente explicados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi, and thanks a lot for this useful action 🙂 .
I was experimenting a bit with it and I have a question. From an end-user perspective, i.e., someone who is about to pull an image and use it locally, what's the recommended flow to verify it? I see there's an independent workflow for verifying images (docker/github-builder/.github/workflows/verify.yml@v1), but I'd like some help to understand what is it verifying, and how one can simulate it locally.
For example, I've built ghcr.io/apyrgio/dangerzone-test-github-builder@sha256:8eb497e92ed7071fc925e306214a6368bb2a3c90939ce15123d09471d3ba5a66 using this workflow.
Looking at the build job of this workflow, in the "Set result output" step, I see the following build output:
{
"verifyCommands": "cosign verify --experimental-oci11 --new-bundle-format --certificate-oidc-issuer https://token.actions.githubusercontent.com/ --certificate-identity-regexp ^https://github.com/docker/github-builder/.github/workflows/build.yml.*$ ghcr.io/apyrgio/dangerzone-test-github-builder@sha256:c40cc89132c63ef82310cf1a2c05a6ad656ec88b9a9d29246825b470f1354a57",
"imageDigest": "sha256:8eb497e92ed7071fc925e306214a6368bb2a3c90939ce15123d09471d3ba5a66",
"artifactName": "",
"signed": true
}
It seems that the verifyCommands field includes the commands that a user can run locally to verify the container image. What I'm not sure about is what we are verifying here.
In this case, the cosign verify command verifies the sha256:c40cc89132c63ef82310cf1a2c05a6ad656ec88b9a9d29246825b470f1354a57 manifest, which includes an in-toto attestation for the sha256:37ca0e50004ab4b4a51e6f87e6d9528a7d000e0a3702ff0a3c59181f7a558443 manifest, which is basically the image data for the linux/amd64 platform.
But the user will not pull this digest. They will instead pull either the root one, the platform specific one, or the image tag. For all the above, if they to run cosign verify ... against them, they will get the following:
Error: no signatures found
error during command execution: no signatures found
Should there be signatures for these digests?
Finally, the provided cosign verify ... command ensures that the image was created by this GitHub action. What's much more interesting though is the other attestation attributes, such as the repository or the source commit hash. If a user wants to verify against those, should they use the cosign verify ... command, or switch to cosign verify-attestation ... and pass a CUE policy or similar?
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 83
- Forks
- 23
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 8
Guía de contribución
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/github-builder
-
Support multiple ECR registries Abiertokind/enhancement status/triage
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
docker/github-builder#282 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
docker/github-builder#251 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
docker/github-builder#209 ·
-
kind/enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
docker/github-builder#207 · 1 comentario ·
-
kind/enhancement status/triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
docker/github-builder#203 · 1 comentario ·
Todos los issues de docker/github-builder
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
NVIDIA/gpu-operator#2955 ·
-
agentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
automated issue report
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
dsx-ai-factory/infra-controller#6694 ·
-
bug build
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
facebookincubator/velox#19143 ·