Repository navigation
chore(publish-verify): decommission the sweep's ghcr.io branch (proposal 040 phase 4, 4/4) - #1186
Merged
Merged
Conversation
bpalermo
added a commit
that referenced
this pull request
Oct 4, 2026
… in #1179, #1181, #1184, #1186 Fixes #1167 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
marked this pull request as ready for review
October 4, 2026 02:19
Owner
Author
|
The CodeQL check fails because of 🤖 Generated with Claude Code |
This was referenced Oct 4, 2026
…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
… in #1179, #1181, #1184, #1186 Fixes #1167 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
ghcr-decom-4-sweep
branch
from
October 4, 2026 11:12
6b5082c to
2b53f40
Compare
This was referenced Oct 4, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.bzlas of each push head. For heads from before the Quay cut-over it checked ghcr.io in three ways:SIGNATURE_LAYOUTdefaulted to thetaglayout.GHCR_TOKENwas 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 noregistry.bzlis now exit 2.registry_setting_signature_layout'stagdefault. A missingSIGNATURE_LAYOUTnow 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 inregistry-lib.shand the threeenv:entries inpublish-verify.yaml. The gate step is renamed from "…exist in GHCR" to "…exist in the registry".verify-published-artifacts.sh,verify-image-signatures.sh,publish.yamlandpublish-verify.yaml. All four files leavecheck-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):unsignedknob serves an empty referrers index for a digest.registry.bzl. Each is exit 2 with zero token requests, even with a complete ghcr.io behind the fake.tagdefault 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.PROXY_PIN_LEGACY_REFERENCESsed 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:
README.md,charts/README.md,docs/getting-started.md,docs/configuration.mdand the runbook no longer present ghcr.io as a source. Pre-1.0.0 releases "went to ghcr.io; nothing publishes to or verifies against ghcr.io any more". The runbook's phase-4 TODO becomes the record of what was done.docs/observability/profiling-symbols.mdpoints the debuginfo sync atquay.io/aethermesh/*, which the GitOps job already uses.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.shneeds, 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
check-registry-config.sh's allow-list, the runbook,ci.yaml) are separated by unchanged lines, so either order should rebase cleanly. Only the docs here assume chore(registry): remove PROXY_PIN_LEGACY_REFERENCES; the proxy pin names image_reference("proxy") only (proposal 040 phase 4, 3/4) #1184 has landed..github/workflows/proxy-release.ymlno longer mentions ghcr.io and can leave the legacy allow-list. That is a one-line follow-up and is not done here, so this PR stays green on its own.Test plan
scripts/check-registry-lookup.sh43/43;check-publish-verify-control.sh20/20;check-signature-layout.sh28/28;check-index-children.sh10/10;check-proxy-pin.sh27/27;check-registry-config.shgreen;check-shell-lint.shexit 0tagdefault and the PRE-head case goes redbazel test //tools/cosign/... //bazel/img/...actionlintv1.7.7:publish-verify.yamlandpublish.yamlclean;ci.yamlonly has the 4github.head_reffindings that main already hasbazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...,make format-checkFixes #1167
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr