Skip to content

chore(registry): remove PROXY_PIN_LEGACY_REFERENCES; the proxy pin names image_reference("proxy") only (proposal 040 phase 4, 3/4) - #1184

Merged
bpalermo merged 4 commits into
mainfrom
ghcr-decom-3-proxy-pin
Oct 4, 2026
Merged

bpalermo merged 4 commits into
mainfrom
ghcr-decom-3-proxy-pin

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

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") plus PROXY_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 is quay.io/aethermesh/proxy@sha256:… (tag 05b687b).

What

Removed:

  • PROXY_PIN_LEGACY_REFERENCES and proxy_pin_references() from bazel/img/registry.bzl and its byte-identical copy proxy/bazel/registry.bzl.
  • scripts/image-registry.sh proxy-pin-refs (and its parser), plus its row in //bazel/img:registry_test.
  • PROXY_PIN_REFS in scripts/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_manifest failure path).
  • ci.yaml proxy-pin job: compares against $PROXY_IMAGE (exported by image-registry.sh). A tag that quay does not resolve is already an ::error::.
  • check-registry-config.sh: exactly one repository: <PROXY_IMAGE>. The "pre-cut-over pin, notice only" branch is gone. bazel/proxy_pin/extensions.bzl and charts/aether/values.yaml leave the legacy allow-list.
  • proxy_pinned_ref / proxy_pin_rewrite (the sweep and proxy-release.yml's bump-chart): match $PROXY_IMAGE only.

Tests (scripts/check-proxy-pin.sh, still 27 cases): the cut-over cases become refusal cases.

  • A pin on the pre-cut-over reference is refused by the reader.
  • The bump-chart rewrite leaves such a pin untouched (exit 1, file unchanged).
  • A stray old block next to the current one reads only the current pin.

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 fails check-registry-config.sh on 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/aether goes 2.3.0 -> 2.3.1 (values.yaml comment).

Heads-up: merging this triggers a proxy release. proxy/bazel/registry.bzl and proxy-release.yml are in its paths, 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/27
  • scripts/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 0
  • bazel test //bazel/img:registry_test //test/envoy_validate/... //charts/... (the validate test re-evaluates pinned_proxy and fetches the pinned Envoy from quay)
  • actionlint v1.7.7 on ci.yaml / proxy-release.yml: no new findings (the 4 existing github.head_ref notes are on main too)
  • 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

…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
bpalermo merged commit f03a1b2 into main Oct 4, 2026
37 of 39 checks passed
@bpalermo
bpalermo deleted the ghcr-decom-3-proxy-pin branch October 4, 2026 02:59
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]>
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]>
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