Skip to content

chore(publish-verify): drop the unreachable proxy signing cut-over (#1191) - #1197

Merged
bpalermo merged 2 commits into
mainfrom
chore/1191-drop-signing-cutover
Oct 4, 2026
Merged

bpalermo merged 2 commits into
mainfrom
chore/1191-drop-signing-cutover

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Removes PROXY_SIGNING_CUTOVER, proxy_pin_verdict and proxy_pin_introduced_by (scripts/proxy-pin-lib.sh), the sweep's skip branch, and the harness cases that exercised them. After #1184 and #1186, nothing can reach them.

Proof that the skip is unreachable

proxy_pin_verdict printed skip only when both of these held:

Three facts on main after #1186 rule out (a):

  1. The sweep refuses pre-cut-over heads (chore(publish-verify): decommission the sweep's ghcr.io branch (proposal 040 phase 4, 4/4) #1186). Any commit whose bazel/img/registry.bzl has no SIGNATURE_LAYOUT exits 2 before step 5.

  2. The reader accepts only image_reference("proxy") (chore(registry): remove PROXY_PIN_LEGACY_REFERENCES; the proxy pin names image_reference("proxy") only (proposal 040 phase 4, 3/4) #1184). proxy_pinned_ref returns nothing for any other repository, and the sweep then exits 2. So every pin that reaches the verdict names quay.io/aethermesh/proxy.

  3. Every quay pin was introduced after the cut-over.

    • The quay reference first appears in charts/aether/values.yaml at a3460e9 (chore(proxy): pin aether chart to aether-proxy:516d79eada331ec5c91d9e8634556bafaade0652 #1027): git log --reverse -S quay.io/aethermesh/proxy -- charts/aether/values.yaml.
    • The cut-over 857e659 is an ancestor of a3460e9.
    • I walked every commit on origin/main with proxy_pinned_ref and proxy_pin_introduced_by: 98 commits carry a readable quay pin, across 9 distinct digests. For each digest the introducing commit is the commit that first pinned it, and git merge-base --is-ancestor <intro> 857e659 is false for all 9.

    So (a) never held for any pin the sweep can read, and no verdict on main was ever skip.

Nothing outside the removed code referenced it:

git grep -n -e PROXY_SIGNING_CUTOVER -e proxy_pin_verdict -e proxy_pin_introduced_by -- ':!docs/proposals'

Before this PR, the only hits were proxy-pin-lib.sh, verify-published-artifacts.sh, check-proxy-pin.sh, the PROXY_SIGNING_CUTOVER= overrides in check-registry-lookup.sh (case 6g) and check-publish-verify-control.sh (case 7), the registry-lib.sh comment, and docs/runbook.md. All of them are updated here. After it, the only hits are the two notes that explain the removal (runbook and proxy-pin-lib.sh). bazel query 'kind("sh_.*", //scripts/...)' returns only //scripts:scripts_shell; no Bazel target depends on these functions.

Changes

  • scripts/proxy-pin-lib.sh: removes the constant, the cut-over doc, proxy_pin_introduced_by (its only callers were the verdict and the lookup harness's cut-over override) and proxy_pin_verdict. The file no longer mentions ghcr.io.
  • scripts/verify-published-artifacts.sh (step 5): every pin is checked, and the registry_all_tags listing that only fed the verdict is gone. The sweep now reads no tag list at all, which matches its own "no tag listing" summary line. The check count is unchanged.
  • scripts/check-proxy-pin.sh: removes the 6 verdict cases, the 2 "cannot decide" refusals and the committed-full-sha check. The count goes from 27 to 18, not 19: the issue's "8 cases" did not count the 9th, which checked the committed PROXY_SIGNING_CUTOVER constant and has nothing left to check. The pinned-digest, pinned-ref and rewrite cases are untouched.
  • scripts/check-registry-lookup.sh (6g): drops the cut-over override. The publish-verify: the proxy-pin step passes the tag list as the bearer token — every sweep since the #997 cut-over exits 2 (inconclusive) #999 mutation used to pass $tags as the token. The step no longer has a tag list, so the mutation now passes $pin_ref. The fake still answers 401, and the run is still exit 2.
  • scripts/check-publish-verify-control.sh (7): drops the PROXY_SIGNING_CUTOVER=HEAD~1 override and the "post-cut-over" wording.
  • .github/workflows/publish-verify.yaml: an empty proxy-signed-refs.txt used to be accepted as "every pin was skipped". That cannot happen now. Empty after a failed artifact check is still fine (it is already red); empty after a passing check is now an error, because the gate checked nothing (No shell script in the root workspace is linted: the shellcheck aspect has no sh_* target to visit #853). This matches the signed-refs.txt handling above it.
  • .github/workflows/ci.yaml, docs/runbook.md, scripts/publish-verify-control.sh, scripts/registry-lib.sh: comment and doc updates.

Validation (local)

  • scripts/check-proxy-pin.sh: 18/18
  • scripts/check-registry-lookup.sh: 42/42, including 6g: the signed pin passes on the issued token, and the mutated copy is refused 401 with exit 2
  • scripts/check-publish-verify-control.sh: 20/20
  • scripts/check-registry-config.sh and scripts/check-signature-layout.sh: pass
  • make format-check: clean
  • bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...: green
  • actionlint v1.7.7: publish-verify.yaml is clean. ci.yaml reports only four github.head_ref findings, at lines 581, 742, 751 and 807, outside this change.

Fixes #1191

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…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
bpalermo force-pushed the chore/1191-drop-signing-cutover branch from f1721e1 to 2dafe71 Compare October 4, 2026 12:48
@bpalermo
bpalermo merged commit 9ee8ea5 into main Oct 4, 2026
24 checks passed
@bpalermo
bpalermo deleted the chore/1191-drop-signing-cutover branch October 4, 2026 13:05
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.

proxy pin: PROXY_SIGNING_CUTOVER skip logic is dead after the ghcr decommission (#1167) — remove proxy_pin_verdict and its 8 harness cases

1 participant