Skip to content

ci: sign releases with the embedded signer (RFC-044.4 WS3a follow-up) - #41

Merged
devkoriel merged 1 commit into
mainfrom
ci/self-contained-build-sign
Jun 17, 2026
Merged

devkoriel merged 1 commit into
mainfrom
ci/self-contained-build-sign

Conversation

@devkoriel

Copy link
Copy Markdown
Contributor

What

Rewires the sign_release_image job in release.docker.yml to call this repo's own
embedded signer instead of the private actions-workflows reusable.

Why

This repo is public; GitHub forbids public repos from calling reusable workflows in
private repos, so cosign-sign-and-verify.yaml@main is unreachable and the sign job
could never run (the build job docker-image-alpine is 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 @main pin makes the cosign keyless SAN
sign-image.yaml@refs/heads/main, invariant of the (tag) build ref. That matches the
Kyverno verify-chronicle-release-images enforce identity. A relative call would sign
under @refs/tags/vX.Y.Z and be rejected by the Deny policy.

repository/ref inputs are dropped; the embedded signer self-verifies against its own
github.repository/github.ref.

Test plan

  • Tag a release (vX.Y.Z): docker-image-alpine builds + pushes (unchanged), then
    sign_release_image signs via the local signer.
  • cosign verify ghcr.io/chronicleprotocol/challenger@<digest> against
    .../challenger-rs/.github/workflows/sign-image.yaml@refs/heads/main passes.
  • Pod admission of the new image is allowed by the enforce IVP.

@devkoriel
devkoriel merged commit 16ec75d into main Jun 17, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant