Question on verification target
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Bắt đầu với docker/github-builder/.github/workflows/verify.yml@v1 và bước “Set result output” của build job trong .github/workflows/github-build.yml. Theo dõi các verifyCommands được phát ra cùng với các digest của image, platform và attestation, sau đó ghi lại quy trình xác minh cục bộ được khuyến nghị và cách người dùng nên xác minh các thuộc tính của repository hoặc source-commit. Được xem là hoàn tất khi hành vi của digest và lựa chọn giữa các lệnh xác minh cosign được giải thích rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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?
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 94
- Fork
- 28
- Merge trung bình
- 2 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của docker/github-builder
-
kind/enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
docker/github-builder#356 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
docker/github-builder#351 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Generate `dockerbuild` FilesĐang mởkind/enhancement status/triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
docker/github-builder#347 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/enhancement status/triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
docker/github-builder#343 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status/needs-investigation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
docker/github-builder#328 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của docker/github-builder
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
canonical/chrony-operators#43 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Netcracker/qubership-authz-agent#416 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docker easy first-contributor first-contributors good first issue help wanted nodejs up-for-grabs
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 94/100
fork-commit-merge/fork-commit-merge#8715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Netcracker/qubership-core-base-images#400 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci: coverage job fails on app-only pull requests (single artifact extracts without its folder)Đang mởbug effort:S P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
nightscout/nocturne#4821 ·
Maintainer thường phản hồi trong vòng 1 ngày