Repository navigation
chore(registry): remove PROXY_PIN_LEGACY_REFERENCES; the proxy pin names image_reference("proxy") only (proposal 040 phase 4, 3/4) - #1184
Merged
Conversation
…mes image_reference("proxy") only (proposal 040 phase 4)
During the Quay cut-over the chart's aether-proxy pin was data the flip
could not move, so every pin reader accepted proxy_pin_references():
image_reference("proxy") plus PROXY_PIN_LEGACY_REFERENCES, the ghcr.io
coordinate. The first proxy release after the flip re-pinned it (#1027);
the allowance has had nothing to accept since.
Removed: PROXY_PIN_LEGACY_REFERENCES and proxy_pin_references() from
bazel/img/registry.bzl (and its byte-identical proxy/ copy), the
`image-registry.sh proxy-pin-refs` subcommand and its registry_test row,
and PROXY_PIN_REFS in scripts/proxy-pin-lib.sh. Every reader now accepts
exactly image_reference("proxy") and fails loudly on anything else, never
falling back to the old registry:
- //bazel/proxy_pin: fail() naming the one accepted reference; a digest
quay does not serve already fails the manifest fetch
- ci.yaml's proxy-pin job: $PROXY_IMAGE from image-registry.sh
- check-registry-config.sh: exactly one `repository: <PROXY_IMAGE>`; the
pre-cut-over notice branch is gone, and extensions.bzl and values.yaml
leave the legacy allow-list
- proxy_pinned_ref / proxy_pin_rewrite: match PROXY_IMAGE only
check-proxy-pin.sh's cut-over cases become refusal cases: a pin on the
pre-cut-over reference (derived from registry.bzl's history note, not typed)
is refused by the reader and left untouched by the rewrite; a stray old
block beside the current one reads only the current pin. Still 27 cases.
charts/aether 2.3.0 -> 2.3.1 (values.yaml comment). Merging this triggers a
proxy release: proxy/bazel/registry.bzl and proxy-release.yml changed.
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
This was referenced Oct 4, 2026
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 was referenced Oct 4, 2026
bpalermo
added a commit
that referenced
this pull request
Oct 4, 2026
#1192) (#1195) After #1184 the proxy release workflow no longer mentions ghcr.io, so it no longer needs an exclusion. scripts/check-registry-config.sh passes with it removed, and goes red if a ghcr.io mention is added back. Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr Co-authored-by: Claude Fable 5.1 <[email protected]>
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 3 of 4 from #1167.
Why
During the Quay cut-over the chart's aether-proxy pin was data the flip could not move, so every pin reader accepted
proxy_pin_references():image_reference("proxy")plusPROXY_PIN_LEGACY_REFERENCES = ["ghcr.io/bpalermo/aether/aether-proxy"]. The first proxy release after the flip re-pinned to quay (#1027), and nothing has needed the allowance since. The live pin isquay.io/aethermesh/proxy@sha256:…(tag05b687b).What
Removed:
PROXY_PIN_LEGACY_REFERENCESandproxy_pin_references()frombazel/img/registry.bzland its byte-identical copyproxy/bazel/registry.bzl.scripts/image-registry.sh proxy-pin-refs(and its parser), plus its row in//bazel/img:registry_test.PROXY_PIN_REFSinscripts/proxy-pin-lib.sh.Every pin reader now accepts exactly
image_reference("proxy")and fails loudly on anything else. None of them falls back to ghcr://bazel/proxy_pin(extensions.bzl):fail()names the one accepted reference. A digest quay does not serve already fails the manifest fetch (the_fetch_manifestfailure path).ci.yamlproxy-pin job: compares against$PROXY_IMAGE(exported byimage-registry.sh). A tag that quay does not resolve is already an::error::.check-registry-config.sh: exactly onerepository: <PROXY_IMAGE>. The "pre-cut-over pin, notice only" branch is gone.bazel/proxy_pin/extensions.bzlandcharts/aether/values.yamlleave the legacy allow-list.proxy_pinned_ref/proxy_pin_rewrite(the sweep andproxy-release.yml's bump-chart): match$PROXY_IMAGEonly.Tests (
scripts/check-proxy-pin.sh, still 27 cases): the cut-over cases become refusal cases.The old reference is derived from
registry.bzl's history note, not typed into the script. Separately, I checked by hand that a values.yaml pinned to the ghcr reference failscheck-registry-config.shon both the pin and the legacy hunt.Left for PR 4/4 (the sweep's ghcr branch), to keep the two PRs conflict-free: the two no-op
-e '/^PROXY_PIN_LEGACY_REFERENCES = /d'sed lines inside the split harnesses (check-registry-lookup.sh,check-publish-verify-control.sh), the runbook's phase-4 TODO paragraph, and proposal 040's text.charts/aethergoes 2.3.0 -> 2.3.1 (values.yaml comment).Heads-up: merging this triggers a proxy release.
proxy/bazel/registry.bzlandproxy-release.ymlare in itspaths, and the copy must stay byte-identical (check-registry-config.sh). It rebuilds Envoy and opens a bump-chart PR, the same as the phase-2 merge did.The ghcr.io packages themselves are NOT touched; their retention is the maintainer's separate decision. Pre-check results are in #1179.
Test plan
scripts/check-proxy-pin.sh: 27/27scripts/check-registry-config.sh: green. A ghcr pin in values.yaml goes red (checked by hand, then reverted)check-signature-layout,check-index-children,check-publish-verify-control,check-registry-lookup,check-shell-lint: exit 0bazel test //bazel/img:registry_test //test/envoy_validate/... //charts/...(the validate test re-evaluatespinned_proxyand fetches the pinned Envoy from quay)actionlintv1.7.7 onci.yaml/proxy-release.yml: no new findings (the 4 existinggithub.head_refnotes are on main too)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