Skip to content

Update pipeline: overview, feed health checks and protected catalog signing - #5

Merged
DjDeveloperr merged 9 commits into
mainfrom
feat/update-automation-20261023
Oct 23, 2026
Merged

DjDeveloperr merged 9 commits into
mainfrom
feat/update-automation-20261023

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Part of the update pipeline: merge to a source branch, signed packages on every distribution's testing channel, one-click promotion to stable. This PR holds the cross-distribution pieces; the distribution PRs are aurora-silicon/alarm-aurora#14, aurora-silicon/fedora-aurora#14 and aurora-silicon/nixos-aurora#14.

What changes

  • docs/updates.md: what installed systems follow today, the testing and stable channels, the automated pipeline and its switches, where each signing key lives, provenance, a threat model, a verification checklist, key rotation and revocation, and the decisions left to the maintainers.
  • feeds-health.yml + scripts/check-feeds.py: every 30 minutes, check that aurora-silicon/aurora-silicon.github.io is public with Pages on (the custom domain every feed depends on), and that every live feed and catalog is served and correctly signed, using keys read from the repositories rather than from the site. One issue stays open while anything fails; FEEDS_HEALTH_WEBHOOK, if set, is notified when it opens or closes.
  • build-payload.yml: assembly no longer holds the catalog key. It stages the delivery as a draft release; a small job in the caller's catalog-signing environment signs just catalog.json (digest-checked); a final job attests every asset and publishes. Images whose workflow attests must carry a valid attestation. Callers pinned to the old revision are unaffected.
  • native-only-catalogs.yml and native-developer-build.yml sign in the catalog-signing environment; all actions are pinned by SHA.
  • scripts/setup-update-environments.sh: creates testing-signing, stable-promotion (required reviewers) and catalog-signing, branch main only. Dry run by default; never touches secret values.

Before merging

Run scripts/setup-update-environments.sh --reviewer <login> --apply first. A workflow that names an environment that does not exist creates it unprotected.

Checks

  • Unit tests, scripts/verify-catalogs and actionlint pass locally.
  • check-feeds.py run against the live site: every check passes (output in the PR's feed-health run).

No live feed, catalog or key is changed.

The catalog key used to sit in the same job that downloads the image,
fetches the runtime and assembles the payload. Assembly now runs without
any credential and stages the complete set as a draft release. A small
job in the caller's catalog-signing environment (main only) downloads
just catalog.json, checks its digest against the assembly job's record,
signs and verifies it, and uploads the signature. A final job attests
every asset (SHA256SUMS) and publishes the release.

Images built by a workflow that records provenance must carry a valid
attestation before they are assembled. Callers may keep passing
catalog-signing-key; once the key lives in their catalog-signing
environment, that secret takes precedence. Callers pinned to the
previous revision are unaffected; advancing the pin needs id-token and
attestations write permissions on the calling job.
Third-party actions are pinned by commit SHA. The two jobs that sign
catalogs here run in the catalog-signing environment, so the key can move
out of the repository secrets, where any workflow on any branch can read
it.
aurorasilicon.org serves every package feed, the Nix cache and the
installer catalogs only while aurora-silicon/aurora-silicon.github.io is
public with Pages and the custom domain enabled; on 2026-10-23 making it
private took all of them offline. feeds-health.yml checks that
repository's state, the site, both channels of the ALARM and Fedora
feeds (signatures verified with keys read from their repositories, not
from the site), the Nix cache descriptor and key, and the signed
installer catalogs. While anything fails one issue stays open with the
current report; FEEDS_HEALTH_WEBHOOK, if set, is notified when it opens
and closes.
…ents

docs/updates.md covers all three distributions: what installed systems
follow today, the testing and stable channels, the automated pipeline
from source branches to signed feeds and its switches, the signing keys
and where they live, provenance, a threat model, a verification
checklist, key rotation and revocation, and the decisions left to the
maintainers.

setup-update-environments.sh creates the testing-signing,
stable-promotion and catalog-signing environments (main only; required
reviewers for promotion). It never handles secret values; it prints the
commands that move each key.
The source tracker cannot open PRs with the workflow token while Actions may not create pull requests; document the setting and the preferred GitHub App, and create its source-tracking environment.
A delivery published by the attesting build-payload.yml carries a
SHA256SUMS covered by a GitHub build provenance attestation from that
reusable workflow. Adoption now checks that every file it downloads is
listed there and that the attestation covers the whole list; deliveries
from before the change are accepted and reported as unattested.
Environments hold every signing key, the tracker opens PRs with the workflow token until a GitHub App is needed, main blocks force pushes and deletion, and automatic merging waits for a week of clean tracker PRs. The release procedure lists what runs by itself and what is dispatched by hand.
@DjDeveloperr
DjDeveloperr merged commit 2225014 into main Oct 23, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the feat/update-automation-20261023 branch October 25, 2026 05:45
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