Skip to content

chore(scripts): remove the 11 ghcr_* aliases from registry-lib.sh (proposal 040 phase 4, 2/4) - #1181

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

bpalermo merged 3 commits into
mainfrom
ghcr-decom-2-aliases

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

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

What

The ghcr.io packages themselves are NOT touched; their retention is the maintainer's separate decision. Pre-check results (no talos-main chart or pod references a ghcr aether image) are in #1179.

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 --config=lint --@aspect_rules_lint//lint:fail_on_violation //... (exit 0)
  • make format-check (exit 0)

Part of #1167.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…oposal 040 phase 4)

registry-lib.sh kept every pre-040 name as an alias of its registry_* twin
(ghcr_registry_token, ghcr_all_tags, ghcr_tag_exists, ghcr_any_tag,
ghcr_manifest_digest, ghcr_index_children, ghcr_signature_tag_legacy,
ghcr_signature_tag_bundle, ghcr_signature_layout,
ghcr_signature_layout_direct, ghcr__json_children) plus the GHCR_IMAGE_REPOS,
GHCR_CHARTS and GHCR_MANIFEST_ACCEPT variables. Nothing calls any of them:
the only user was check-registry-lookup.sh's shim case, removed here too
(byte-identical to the shim-removal PR, so the second to merge rebases
clean; case count 43 -> 42).

REGISTRY_CHARTS gains the same SC2034 disable its sibling constants carry:
GHCR_CHARTS was the only in-file reference shellcheck could see.

Part of #1167.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 6394d25 into main Oct 4, 2026
24 checks passed
@bpalermo
bpalermo deleted the ghcr-decom-2-aliases branch October 4, 2026 02:37
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