Skip to content

chore(scripts): remove the ghcr-lib.sh shim and its regression check (proposal 040 phase 4, 1/4) - #1179

Merged
bpalermo merged 2 commits into
mainfrom
ghcr-decom-1-shim
Oct 4, 2026
Merged

bpalermo merged 2 commits into
mainfrom
ghcr-decom-1-shim

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Proposal 040 Phase 4 (decommission ghcr), item 1 of 4 from #1167.

What

  • Deletes scripts/ghcr-lib.sh, the one-line shim onto scripts/registry-lib.sh. Nothing sources it: the only caller was the check-registry-lookup.sh case that existed to prove the shim still worked.
  • Drops the dead Bazel edges that shipped it into runfiles: exports_files in //scripts and the data of //tools/cosign:verify_image_signatures (which sources registry-lib.sh, never the shim).
  • Removes that shim case from scripts/check-registry-lookup.sh (the case-count guard goes 43 -> 42) and the comments describing the shim (registry-lib.sh header, tools/cosign/verify_image_signatures.sh, runbook).

The ghcr_* aliases, PROXY_PIN_LEGACY_REFERENCES and 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 yaml for aether-system/aether (chart aether-2.3.0-de262ae), aether-system/aether-crds, aether-test/udsecho, aether-test/prober: 0 lines mention ghcr.
  • kubectl --context talos-main get pods -A images: 0 ghcr.io/bpalermo/aether/* references (every aether image is quay.io/aethermesh/*: agent, cni-install, controller, mesh-dns, prober, proxy, proxy-supervisor, registrar, uds-csi, udsecho). The literal grep -c ghcr is 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.
  • GitOps repo (bpalermo/k8s-talos-main, grep ghcr.io/bpalermo): one aether-related hit, a stale doc line in clusters/talos-main/pyroscope-debuginfo/README.md:25 ("filtered to digest-pinned ghcr.io/bpalermo/aether/* refs"); the job's live config already uses quay.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/42
  • check-signature-layout, check-index-children, check-publish-verify-control, check-proxy-pin, check-registry-config, check-shell-lint: all exit 0
  • bazel build //tools/cosign/... //scripts/..., bazel test //tools/cosign/... //bazel/img/...
  • bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...
  • make format-check

Part of #1167.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…(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
bpalermo merged commit 6118fca into main Oct 4, 2026
24 checks passed
@bpalermo
bpalermo deleted the ghcr-decom-1-shim branch October 4, 2026 02:30
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]>
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