From 50778f23784543d377576d95843a76ddfe0e93f1 Mon Sep 17 00:00:00 2001 From: Scott McCarty Date: Thu, 19 Nov 2026 05:28:07 +0000 Subject: [PATCH] feat(ci): sign the promoted image with the fleet cosign key Hosts are moving to trust only signed quay.io/crunchtools images (crunchtools/rhel10-bootc-server#47). container-release.yml's promote signs the gated digest before any tag moves, using COSIGN_PRIVATE_KEY and COSIGN_PASSWORD from this repo's cosign-signing environment. Same change as crunchtools/mcp-nagios#101. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01R7Y1jgQzPHsAyyjYY7kKir --- .github/workflows/container.yml | 7 +++++++ CHANGELOG.md | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index a3934a0..d0e1f67 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -22,6 +22,13 @@ jobs: default-branch: master boot: systemd boot-units: httpd.service + # Hosts refuse an unsigned quay.io/crunchtools image + # (crunchtools/rhel10-bootc-server#47). Promote signs the gated digest + # before any tag moves, with the key from this repo's cosign-signing + # environment (default branch and v* only); without it promote refuses. + sign: true secrets: QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} + COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 412ea68..1226237 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ All notable changes to this project are documented here. The format follows ## [Unreleased] ### Changed +- Promote signs the image with the fleet cosign key (`sign: true`), because + bootc hosts are moving to trust only signed `quay.io/crunchtools` images + (crunchtools/rhel10-bootc-server#47). Needs the repo's `cosign-signing` + environment to hold `COSIGN_PRIVATE_KEY` and `COSIGN_PASSWORD`. - The container release runs constitution v1.51.0's `container-release.yml` (was v1.46.0) and grants it `issues: write`, so a failed scheduled rebuild opens an issue instead of only warning. A `v*` promote now also refuses an image whose `version` label names a