Skip to content

chore(publish-verify): decommission the sweep's ghcr.io branch (proposal 040 phase 4, 4/4) - #1186

Merged
bpalermo merged 3 commits into
mainfrom
ghcr-decom-4-sweep
Oct 4, 2026
Merged

bpalermo merged 3 commits into
mainfrom
ghcr-decom-4-sweep

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Proposal 040 Phase 4 (decommission ghcr), item 4 of 4 and the last PR for #1167. Merge last, after #1179, #1181 and #1184: the proposal status and docs here describe all four as done.

Why

The publish-verify sweep read bazel/img/registry.bzl as of each push head. For heads from before the Quay cut-over it checked ghcr.io in three ways:

  • A commit older than the file borrowed the file's first version.
  • A file without SIGNATURE_LAYOUT defaulted to the tag layout.
  • GHCR_TOKEN was sent to ghcr.io for those reads.

The sweep's one-day window has held only post-cut-over heads since 2026-09-28, and nothing on talos-main runs a ghcr aether image (pre-check in #1179).

What

Code removed:

  • setting_bzl_at's first-version fallback. A commit with no registry.bzl is now exit 2.
  • registry_setting_signature_layout's tag default. A missing SIGNATURE_LAYOUT now returns rc 3, which the verifier reports as "predates the Quay cut-over … decommissioned (proposal 040 phase 4)", exit 2.
  • GHCR_TOKEN: the ghcr.io-only token branch in registry-lib.sh and the three env: entries in publish-verify.yaml. The gate step is renamed from "…exist in GHCR" to "…exist in the registry".
  • ghcr.io as a sweep target in the comments of verify-published-artifacts.sh, verify-image-signatures.sh, publish.yaml and publish-verify.yaml. All four files leave check-registry-config.sh's legacy allow-list.

Result: a pre-cut-over head is exit 2 (inconclusive). It is never a pass and never MISSING, and not one request reaches any registry for it.

Harnesses (case counts unchanged):

  • check-registry-lookup.sh (43):
    • The former pre-cut-over cases (complete registry, unsigned child, 503, absent image with witness, 404-everything) now run on the post-cut-over head on the fake quay.io. A new unsigned knob serves an empty referrers index for a digest.
    • "Both heads in one run" becomes two refusal cases: a PRE head and an ANCIENT head with no registry.bzl. Each is exit 2 with zero token requests, even with a complete ghcr.io behind the fake.
    • Mutation check: putting back the tag default turns the PRE case red (rc 0, 13 token requests).
  • check-publish-verify-control.sh (20): a control on a PRE tree is inconclusive (2) and prints no MISSING line, and the verifier says why.
  • check-signature-layout.sh (28): a pre-cut-over setting is rc 3.
  • check-index-children.sh (10): only the wording changed.
  • The two no-op PROXY_PIN_LEGACY_REFERENCES sed lines left over from chore(registry): remove PROXY_PIN_LEGACY_REFERENCES; the proxy pin names image_reference("proxy") only (proposal 040 phase 4, 3/4) #1184 are gone.

Docs:

Kept on purpose: the library still understands the tag signature layouts and a registry without the Referrers API. That is registry-neutral behaviour verify-image-signatures.sh needs, and the offline harnesses still use a fake ghcr.io to prove the old registry is never read.

The ghcr.io packages themselves are NOT deleted or modified. Keeping them read-only as an archive versus deleting them is the maintainer's separate decision. Deleting them would break every historical pin.

Merge-order notes

Test plan

  • scripts/check-registry-lookup.sh 43/43; check-publish-verify-control.sh 20/20; check-signature-layout.sh 28/28; check-index-children.sh 10/10; check-proxy-pin.sh 27/27; check-registry-config.sh green; check-shell-lint.sh exit 0
  • Mutation check: put back the tag default and the PRE-head case goes red
  • bazel test //tools/cosign/... //bazel/img/...
  • actionlint v1.7.7: publish-verify.yaml and publish.yaml clean; ci.yaml only has the 4 github.head_ref findings that main already has
  • bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //..., make format-check

Fixes #1167

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

@bpalermo

bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner Author

The CodeQL check fails because of actions/untrusted-checkout/high at publish-verify.yaml:137. This is not a new finding. It is the same alert that was already dismissed as a false positive on main (alert #8, then at line 141). Removing the four GHCR_TOKEN lines above it moved it to line 137, so CodeQL reports it as new. The job still checks out ref: main, and the triggering head is only fetched as data (unchanged by this PR). It needs the same dismissal by a maintainer; I have not dismissed it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 2 commits October 4, 2026 08:12
…sal 040 phase 4)

The publish-verify sweep read bazel/img/registry.bzl as of each push head
and, for heads from before the Quay cut-over, checked ghcr.io: a commit
older than the file borrowed its first version, a file without
SIGNATURE_LAYOUT defaulted to the `tag` layout, and GHCR_TOKEN was sent to
ghcr.io for those reads. The sweep's one-day window has held only
post-cut-over heads since 2026-09-28, and nothing on talos-main runs a ghcr
image.

Removed:
  - setting_bzl_at's first-version fallback (no registry.bzl -> exit 2)
  - registry_setting_signature_layout's `tag` default (no SIGNATURE_LAYOUT
    -> rc 3, which the verifier reports as "decommissioned", exit 2)
  - GHCR_TOKEN: registry-lib.sh's ghcr.io-only token branch, and the three
    env entries in publish-verify.yaml
  - ghcr.io as a sweep target in the verifier, publish.yaml,
    publish-verify.yaml and the two signature verifiers' docs; those four
    files leave check-registry-config.sh's legacy allow-list

A pre-cut-over head is now exit 2 (inconclusive), never a pass and never
MISSING, and not one request reaches any registry for it.

Harnesses: check-registry-lookup.sh's pre-cut-over cases (complete registry,
unsigned child, 503, absent image with witness, 404-everything) now run on
the post-cut-over head on the fake quay.io (a new `unsigned` knob serves an
empty referrers index for a digest); the "both heads in one run" case
becomes two refusal cases, a PRE head and an ANCIENT head with no
registry.bzl, each exit 2 with zero token requests even with a complete
ghcr.io behind the fake (re-adding the `tag` default turns it red: 13 token
requests, rc 0). check-publish-verify-control.sh: a control on a PRE tree
is inconclusive with no MISSING line. check-signature-layout.sh: the
pre-cut-over setting is rc 3. Case counts unchanged (43, 20, 28, 10).

Docs: README, charts/README, getting-started, configuration and the
runbook stop presenting ghcr.io as a source; profiling-symbols.md points
the debuginfo sync at quay.io/aethermesh/* (what the GitOps job already
uses).

The ghcr.io packages themselves are not touched: their retention is a
separate maintainer decision.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo force-pushed the ghcr-decom-4-sweep branch from 6b5082c to 2b53f40 Compare October 4, 2026 11:12
@bpalermo
bpalermo merged commit 4a0cfbb into main Oct 4, 2026
24 checks passed
@bpalermo
bpalermo deleted the ghcr-decom-4-sweep branch October 4, 2026 11:36
bpalermo added a commit that referenced this pull request Oct 4, 2026
…1191)

PROXY_SIGNING_CUTOVER, proxy_pin_verdict and proxy_pin_introduced_by
only ever skipped pre-signing pins, and every one of those named ghcr.
Since #1184 the pin reader accepts only image_reference("proxy"), and
since #1186 the sweep refuses pre-cut-over heads, so the skip can no
longer be reached. Every digest ever pinned under the quay reference
was introduced after the cut-over.

Remove the constant, both functions, the sweep's skip branch (and the
tag listing that only fed it), and the 9 harness cases that exercised
them (check-proxy-pin.sh: 27 -> 18). The #999 token mutation in
check-registry-lookup.sh now passes the pin reference, because the tag
list it used to pass is gone. publish-verify.yaml now treats an empty
proxy-signed-refs.txt after a passing check as a vacuous gate, not as
'every pin was skipped'.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo added a commit that referenced this pull request Oct 4, 2026
…1191) (#1197)

PROXY_SIGNING_CUTOVER, proxy_pin_verdict and proxy_pin_introduced_by
only ever skipped pre-signing pins, and every one of those named ghcr.
Since #1184 the pin reader accepts only image_reference("proxy"), and
since #1186 the sweep refuses pre-cut-over heads, so the skip can no
longer be reached. Every digest ever pinned under the quay reference
was introduced after the cut-over.

Remove the constant, both functions, the sweep's skip branch (and the
tag listing that only fed it), and the 9 harness cases that exercised
them (check-proxy-pin.sh: 27 -> 18). The #999 token mutation in
check-registry-lookup.sh now passes the pin reference, because the tag
list it used to pass is gone. publish-verify.yaml now treats an empty
proxy-signed-refs.txt after a passing check as a vacuous gate, not as
'every pin was skipped'.


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant