Skip to content

ci(proxy-release): sign the aether-proxy image and gate the chart pin on it (#984) - #986

Merged
bpalermo merged 3 commits into
mainfrom
fix/proxy-release-sign
Sep 27, 2026
Merged

bpalermo merged 3 commits into
mainfrom
fix/proxy-release-sign

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Closes #984

Problem

ghcr.io/bpalermo/aether/aether-proxy, the Envoy that every node runs, was the only released image with no signature. The repository has 0 signature tags. The pinned index and both of its children return no signatures found. proxy-release.yml never ran cosign sign, and the sweep never looked at this repository.

What changes

proxy-release.yml

  • Adds a sign job after manifest. It uses the same SHA-pinned sigstore/cosign-installer as publish.yaml (v4.1.2, which installs cosign v3.0.6), signs keyless with id-token: write and packages: write, and runs cosign sign --recursive ghcr.io/bpalermo/aether/aether-proxy@<index digest>. It uses the default v3 bundle layout and passes no --new-bundle-format flag, the same as publish.yaml.
  • The same job then verifies the index and every child with scripts/verify-image-signatures.sh (from ci(publish): cosign-verify every child manifest, not just the index (#925) #982), using the proxy identity:
    ^https://github\.com/bpalermo/aether/\.github/workflows/proxy-release\.yml@refs/heads/main$
    This identity is pinned to refs/heads/main because this workflow only runs on push to main.
  • bump-chart now has needs: [manifest, sign]. It refuses to pin any digest other than the one sign signed and verified. The chart can no longer be pinned to an unsigned proxy.
  • .github/workflows/proxy-release.yml was already in its own paths filter; this PR adds a comment explaining why. Merging this PR triggers a full Envoy rebuild on RBE (about 20 minutes), publishes the first signed proxy image, and the bot opens the auto-merging pin PR.

Sweep (publish-verify.yaml, verify-published-artifacts.sh, new scripts/proxy-pin-lib.sh)

  • For every commit it checks, the sweep now also checks the proxy digest pinned in that commit's charts/aether/values.yaml. It does not look for a *-<sha> tag, because the proxy is versioned by its own commit. The pinned digest must exist, and the index and every child must have a signature tag. The cosign pass then verifies those refs under the proxy identity, as a second verify-image-signatures.sh run whose output goes to the same cosign.log, so failures still reach the rolling issue.

  • Cut-over. A pin is shown as skip … unsigned by history and not counted only when both of these hold:

    1. the commit that introduced it is at or before PROXY_SIGNING_CUTOVER;
    2. its digest has no signature tag.

    Every other pin is checked. That includes a revert to an old digest after the cut-over, which counts as a new pin. So a new pin without a signature fails the sweep.

  • PROXY_SIGNING_CUTOVER is set to 8422b46ff3144a9f8438007909dc1b355460a7a5, the origin/main this PR is based on. The merge commit can't be known in advance. Any pin added after this commit comes from a run that includes the sign job. One caveat: if an older-workflow proxy release pins between this base and the merge, the sweep will flag it red, and that is correct. Once the first signed pin lands, this constant can be moved forward to that pin's commit. It must never be moved back.

Tests: scripts/check-proxy-pin.sh (18 cases, no network, throwaway git repo) runs in ci's shell job. It covers:

  • digest extraction from the proxy block only. The supervisor's digest, just below it, must never be used, and placeholders, truncated digests and duplicate blocks are refused.
  • the skip / check decision, including the revert case, an unknown cut-over, and a digest that is no longer pinned.
  • that PROXY_SIGNING_CUTOVER is a full 40-character SHA.

A mutation that ignores the cut-over fails 2 cases.

Runbook: new section "Verifying the aether-proxy signature (#984)". It covers the identity, how to verify by hand, the cut-over, and the fact that the currently pinned digest is unsigned permanently.

Until the pin PR lands

The digest pinned right now (sha256:938c5a57…, children bb53bed6… amd64 and 4a90a7fb… arm64) is unsigned and will stay unsigned. The sweep skips it (it predates the cut-over) and says so by name. The first signed digest will be the one the proxy-release run triggered by this merge pins.

Validation (local, read-only, cosign v3.0.6, SHA-256 matched against the release checksums)

Seen red. The pin gate fails on the currently pinned digest under the proxy identity:

ghcr.io/bpalermo/aether/aether-proxy@sha256:938c5a577995153b6cf5669b50e6469a266697bd86eae464fb1fb416f1687019
  FAILED   index …@sha256:938c5a57…: error during command execution: no signatures found
  FAILED   child …@sha256:bb53bed6…: error during command execution: no signatures found
  FAILED   child …@sha256:4a90a7fb…: error during command execution: no signatures found
  2 child manifest(s) walked
FAIL: 3 manifest(s) did not verify, 0 did, across 1 index(es)
exit=1

Control. A signed publish.yaml image (agent@sha256:a674962a…, dev-8422b46) passes under the publish identity:

  verified index … / verified child ×2
PASS: 3 manifest(s) verified (1 index(es) + their children)

The same image fails under the proxy identity, which shows the identity check is strict:

expected SAN value to match regex "^https://github\.com/bpalermo/aether/\.github/workflows/proxy-release\.yml@refs/heads/main$", got "https://github.com/bpalermo/aether/.github/workflows/publish.yaml@refs/heads/main"

Sweep:

  • verify-published-artifacts.sh HEAD passes (36 coordinates) and prints skip ghcr.io/bpalermo/aether/aether-proxy@sha256:938c5a57… (pinned by cb79180…, before proxy signing existed …).
  • With PROXY_SIGNING_CUTOVER=e28acc2 (an older commit, so the current pin counts as post-cut-over), it fails with FAIL: 3 of 40 artifact(s) missing (index and both children). The ref is written to PROXY_SIGNED_REFS_OUT.

Other checks: the four workflow YAMLs parse; bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //scripts/... is clean; check-shell-lint.sh covers all 30 scripts; the existing check-* harnesses are green; shfmt formatting applied.

Not run

  • No signing was done and no images were pushed. The sign job itself (Fulcio/Rekor, OIDC) first runs on merge.
  • actionlint is not installed locally.
  • No cluster or kind.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

… on it (#984)

aether-proxy -- the Envoy every node runs -- was the one released image with
no signature: 0 signature tags in the repository; the pinned index
(sha256:938c5a57...) and both children answer "no signatures found".

proxy-release.yml:
- New `sign` job after `manifest`: same SHA-pinned cosign-installer as
  publish.yaml (v4.1.2 -> cosign v3.0.6), keyless (id-token: write),
  `cosign sign --recursive <image>@<index digest>` in the default v3 bundle
  layout, then scripts/verify-image-signatures.sh over the index and every
  child with the proxy-release identity
  (.../.github/workflows/proxy-release.yml@refs/heads/main).
- `bump-chart` needs [manifest, sign] and refuses to pin a digest other
  than the one signed and verified.
- The workflow file is already in its own `paths` filter, so merging this
  publishes (and pins) the first signed proxy image.

Sweep (publish-verify / verify-published-artifacts.sh):
- Each checked commit also checks the proxy digest its
  charts/aether/values.yaml PINS (not a *-<sha> tag): the digest exists,
  and the index and every child carry a signature; the cosign pass verifies
  those refs under the proxy-release identity.
- scripts/proxy-pin-lib.sh: pin extraction (scoped to the proxy block, never
  the supervisor digest below it) and the cut-over: a pin introduced at or
  before PROXY_SIGNING_CUTOVER whose digest has no signature tag is printed
  as `skip` and not counted; any later pin (including a revert to an old
  digest) is always checked, so an unsigned new pin goes red.
- scripts/check-proxy-pin.sh (18 cases, no network) wired into ci's shell job.

Runbook: proxy signing, the identity, hand verification, the cut-over.

Closes #984

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo force-pushed the fix/proxy-release-sign branch from 2589bb1 to 393c556 Compare September 27, 2026 12:14
@bpalermo
bpalermo merged commit dc29cae into main Sep 27, 2026
24 checks passed
@bpalermo
bpalermo deleted the fix/proxy-release-sign branch September 27, 2026 12:33
bpalermo added a commit that referenced this pull request Sep 27, 2026
…in (#988, 857e659)

The cut-over was #986's base (8422b46) because the pin commit could not be
known in advance. #988 pinned the first signed aether-proxy image
(sha256:574d5211…, verified index + both children under the proxy-release
identity); every pin from here on must verify. The 24h --recent sweep with
the new value: 21 push heads, the three cb79180-era pins skipped as history,
nothing red. check-proxy-pin 18/18.

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 Sep 27, 2026
…in (#988, 857e659) (#997)

The cut-over was #986's base (8422b46) because the pin commit could not be
known in advance. #988 pinned the first signed aether-proxy image
(sha256:574d5211…, verified index + both children under the proxy-release
identity); every pin from here on must verify. The 24h --recent sweep with
the new value: 21 push heads, the three cb79180-era pins skipped as history,
nothing red. check-proxy-pin 18/18.


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.

proxy-release: the aether-proxy image is never signed (0 signature tags; cosign verify fails on the pinned index and both children)

1 participant