From fc0ee0f997751a29a1ab933c4fe14c7fccbae4bb Mon Sep 17 00:00:00 2001 From: Josui Date: Thu, 19 Nov 2026 05:24:27 +0000 Subject: [PATCH] feat: sign the image in promote (rhel10-bootc-server#47) Turn on constitution container-release.yml's sign: true and pass the cosign-signing environment's COSIGN_PRIVATE_KEY and COSIGN_PASSWORD, the same change as crunchtools/mcp-nagios#101. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01R7Y1jeqWyD1kaUDpcBw3TN --- .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 acdf68d..f8810e6 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -29,6 +29,13 @@ jobs: # Dummy settings: config loads at startup, no request reaches them. boot-env: | GITHUB_TOKEN=gate-dummy + # 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 (main 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 f8bce53..c0fffca 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