Repository navigation
chore(scripts): remove the ghcr-lib.sh shim and its regression check (proposal 040 phase 4, 1/4) - #1179
Merged
Conversation
…(proposal 040 phase 4) scripts/ghcr-lib.sh was a one-line shim onto scripts/registry-lib.sh, kept so nothing broke mid-migration. Nothing sources it any more: the only caller was the check-registry-lookup.sh case that existed to prove the shim still worked, and the only other references were Bazel data/exports edges (//tools/cosign:verify_image_signatures, //scripts) that shipped it into runfiles without anyone reading it. Removes the file, the exports_files and data edges, the shim case (the harness's case count drops 43 -> 42), and the comments that described it. Part of #1167. 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
… in #1179, #1181, #1184, #1186 Fixes #1167 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
Merged
5 tasks done
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
added a commit
that referenced
this pull request
Oct 4, 2026
…sal 040 phase 4, 4/4) (#1186) * chore(publish-verify): decommission the sweep's ghcr.io branch (proposal 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 * docs(proposals): 040 is Implemented; phase 4 (decommission ghcr) done in #1179, #1181, #1184, #1186 Fixes #1167 Co-Authored-By: Claude Fable 5.1 <[email protected]> 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 1 of 4 from #1167.
What
scripts/ghcr-lib.sh, the one-line shim ontoscripts/registry-lib.sh. Nothing sources it: the only caller was thecheck-registry-lookup.shcase that existed to prove the shim still worked.exports_filesin//scriptsand thedataof//tools/cosign:verify_image_signatures(which sourcesregistry-lib.sh, never the shim).scripts/check-registry-lookup.sh(the case-count guard goes 43 -> 42) and the comments describing the shim (registry-lib.shheader,tools/cosign/verify_image_signatures.sh, runbook).The
ghcr_*aliases,PROXY_PIN_LEGACY_REFERENCESand the sweep's ghcr branch are separate PRs (2-4 of #1167). The shim-case removal and runbook line are byte-identical in PR 2, so whichever merges second rebases clean.The ghcr.io packages themselves are NOT touched by this or any PR in the series: their retention (delete vs. leave read-only as an archive) is the maintainer's separate decision.
Pre-check (talos-main, read-only, 2026-10-04)
helm get values -o yamlforaether-system/aether(chartaether-2.3.0-de262ae),aether-system/aether-crds,aether-test/udsecho,aether-test/prober: 0 lines mentionghcr.kubectl --context talos-main get pods -Aimages: 0ghcr.io/bpalermo/aether/*references (every aether image isquay.io/aethermesh/*: agent, cni-install, controller, mesh-dns, prober, proxy, proxy-supervisor, registrar, uds-csi, udsecho). The literalgrep -c ghcris 74, all third-party or other projects (ghcr.io/spiffe/*,ghcr.io/fluxcd/*,ghcr.io/siderolabs/flannel,ghcr.io/grafana/k6-operator,ghcr.io/bpalermo/spire-intermediate-rotator,ghcr.io/bpalermo/cert-manager-webhook-ns1, ...), none an aether coordinate.bpalermo/k8s-talos-main, grepghcr.io/bpalermo): one aether-related hit, a stale doc line inclusters/talos-main/pyroscope-debuginfo/README.md:25("filtered to digest-pinnedghcr.io/bpalermo/aether/*refs"); the job's live config already usesquay.io/aethermesh/(cronjob.yaml:85,sync.sh:30). The other hits are non-aether images (nut,spire-intermediate-rotator, the ns1 webhook chart). Not edited here.Test plan
scripts/check-registry-lookup.sh: 42/42check-signature-layout,check-index-children,check-publish-verify-control,check-proxy-pin,check-registry-config,check-shell-lint: all exit 0bazel build //tools/cosign/... //scripts/...,bazel test //tools/cosign/... //bazel/img/...bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...make format-checkPart of #1167.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr