feat(lab8): cosign sign + SBOM/provenance attestations + blob signing#1404
Open
Muratich wants to merge 4 commits into
Open
feat(lab8): cosign sign + SBOM/provenance attestations + blob signing#1404Muratich wants to merge 4 commits into
Muratich wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Lab 8: sign the Juice Shop image with Cosign in a local registry, attach SBOM and provenance attestations, and demonstrate blob signing with
cosign sign-blob.Changes
submissions/lab8.mdlabs/lab8/keys/cosign.pubmy-tool.tar.gzsigned withcosign sign-blob, verify-blob pass + tamper failTesting
docker run -d --name lab8-registry -p 127.0.0.1:5000:5000 registry:3docker push localhost:5000/juice-shop:v20.0.0cosign sign --key labs/lab8/keys/cosign.key --allow-insecure-registry --new-bundle-format=false --use-signing-config=false --tlog-upload=false --yes $DIGESTcosign verify --key labs/lab8/keys/cosign.pub --insecure-ignore-tlog --allow-insecure-registry $DIGESTcosign verify --key labs/lab8/keys/cosign.pub --insecure-ignore-tlog --allow-insecure-registry $TAMPERED_DIGESTcosign attest --type cyclonedx --predicate labs/lab4/juice-shop.cdx.json $DIGESTcosign attest --type slsaprovenance --predicate labs/lab8/predicate-only.json $DIGESTcosign sign-blob --key labs/lab8/keys/cosign.key --bundle labs/lab8/results/my-tool.tar.gz.bundle labs/lab8/results/my-tool.tar.gzcosign verify-blob --key labs/lab8/keys/cosign.pub --bundle my-tool.tar.gz.bundle my-tool.tar.gzPushing signature to: localhost:5000/juice-shopThe signatures were verified against the specified public keyError: no signatures foundVerified OKError: invalid signature when validating ASN.1 encoded signatureArtifacts & Screenshots
submissions/lab8.mdlabs/lab8/keys/cosign.pubsubmissions/lab8.md(Task 1, Task 2, Bonus)Checklist
feat(labN): <topic>style)submissions/labN.mdexists