Repository navigation
ci: sign releases with the embedded signer (RFC-044.4 WS3a follow-up) - #41
Merged
Merged
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.
What
Rewires the
sign_release_imagejob inrelease.docker.ymlto call this repo's ownembedded signer instead of the private
actions-workflowsreusable.Why
This repo is public; GitHub forbids public repos from calling reusable workflows in
private repos, so
cosign-sign-and-verify.yaml@mainis unreachable and the sign jobcould never run (the build job
docker-image-alpineis inline and already works).The signer is referenced as
chronicleprotocol/challenger-rs/.github/workflows/sign-image.yaml@main,not the relative
./form, on purpose: the@mainpin makes the cosign keyless SANsign-image.yaml@refs/heads/main, invariant of the (tag) build ref. That matches theKyverno
verify-chronicle-release-imagesenforce identity. A relative call would signunder
@refs/tags/vX.Y.Zand be rejected by the Deny policy.repository/refinputs are dropped; the embedded signer self-verifies against its owngithub.repository/github.ref.Test plan
vX.Y.Z):docker-image-alpinebuilds + pushes (unchanged), thensign_release_imagesigns via the local signer.cosign verify ghcr.io/chronicleprotocol/challenger@<digest>against.../challenger-rs/.github/workflows/sign-image.yaml@refs/heads/mainpasses.