Repository navigation
fix(build): an image no longer carries the commit, so an unchanged image keeps its digest (#1378) - #1466
Merged
bpalermo merged 2 commits intoOct 8, 2026
Conversation
bpalermo
force-pushed
the
upgrade/1378-image-no-revision
branch
from
October 8, 2026 20:59
f52abe4 to
e40a5cc
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Documentation incorrectly includes the separately stamped proxy image and conflicts with the required publish-workflow semantics.
4 open findings
What changed in this PR
Removes commit-derived OCI metadata so unchanged Go images retain stable digests across commits.
Changes:
- Removes revision labels, annotations, and forced stamping.
- Uses
STABLE_GIT_COMMITfor per-commit tags. - Documents digest stability and release verification.
| File | Description |
|---|---|
bazel/img/go_multi_arch_image.bzl |
Removes commit-dependent image metadata. |
bazel/workspace_status.sh |
Preserves stable commit input for artifact naming. |
docs/runbook.md |
Documents deployment roll behavior. |
docs/verifying-releases.md |
Explains digest-to-commit verification. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
13 tasks
bpalermo
force-pushed
the
upgrade/1378-image-no-revision
branch
from
October 8, 2026 21:57
e40a5cc to
5da59f6
Compare
…age keeps its digest (#1378) Every image carried the commit three times: as the config label `org.opencontainers.image.revision`, as a manifest annotation and as an index annotation, each expanded from the workspace status with `stamp = "force"` (#837). Each is part of the JSON document it sits in, so every image got a new index digest with every commit. The charts pin index digests, so every deploy rolled every workload, the node proxy included. The label, both annotations and both `stamp = "force"` are gone. The image rules take no workspace-status input any more, so the config, the manifest and the index are the same in every build configuration and at every commit. `org.opencontainers.image.source` stays: it is a constant. The commit still names a build, outside the digest: the per-commit tag `dev-<sha>`, the signature's certificate and the provenance attestation. The tag now reads `STABLE_GIT_COMMIT`, and the key stays in the workspace status: once the image does not change with the commit, a STABLE_ key is the only thing that re-expands the tag. Measured, with the real workspace status under `--stamp`, on this change stacked on the binary build-ID change: - two commits that differ only in README.md: 0 of 10 index digests changed (10 of 10 on main, and 10 of 10 with the binary change alone); - then one source file at a time: mesh-dns-ready changed only the mesh-dns image, proxy-ready only proxy-supervisor, agent-ready and identity-ready only agent, the registrar only registrar, the CNI plugin only cni-install; - the aether chart packaged at the two README-only commits differs in Chart.yaml alone (version, appVersion); the eight `repository` + `digest` pins in its values are identical. The first deploy from a commit that has this rolls everything one last time. Part of #1378 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…roxy image still does (#1378) Review of the image change. The runbook, docs/verifying-releases.md and the comment in bazel/workspace_status.sh said no image and no binary carries the commit. That holds for the Go images this workspace builds. The aether-proxy image is built in the nested proxy/ workspace by its own release workflow and still carries the aether commit: `org.opencontainers.image.revision` as label and annotation (proxy/BUILD.bazel:61-96, proxy/bazel/image_metadata.sh:54) and Envoy's own version linkstamp (proxy/README.md:175-185). The chart pins that image statically, so it costs no roll. docs/verifying-releases.md also said the label "is going away"; for the Go images it is gone with this change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
upgrade/1378-image-no-revision
branch
from
October 8, 2026 22:51
5af6bd2 to
6b3c186
Compare
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.


Middle of a three-PR stack for #1378. The PR below it stops binaries from linking the commit; this one stops the image metadata from carrying it. With both, an image whose content did not change keeps its digest.
Part of #1378 (the publish side, signing and attesting only new digests, is a separate PR and is what closes it)
What
Every image carried the commit three times: the config label
org.opencontainers.image.revision, a manifest annotation and an index annotation, each expanded from the workspace status withstamp = "force"(#837). Each is part of the JSON document it sits in, so each alone gave every image a new index digest with every commit. The charts pin index digests, so every deploy rolled every workload, the node proxy included.stamp = "force"are removed frombazel/img/go_multi_arch_image.bzl. The image rules take no workspace-status input any more.org.opencontainers.image.sourcestays; it is a constant.dev-<sha>now readsSTABLE_GIT_COMMIT. The key stays inbazel/workspace_status.sh, with a comment on why it must.docs/verifying-releases.mdis not touched: its "Which commit built this digest" section came with fix(publish): each digest is signed and attested once; an unchanged digest is verified against the workflow, not the commit (#1378) #1474.Evidence
Measured on a developer machine with the real workspace status under
--stamp, images built two at a time, on this branch (which includes the binary change):main.goonlymain.goonlyThe ten are agent, mesh-dns, proxy-supervisor, uds-csi, cni-install, controller, prober, registrar, l4echo, udsecho.
The chart.
charts/aetherpackaged (plain and-<sha>) at the two README-only commits: the packages differ inChart.yamlalone (versionof the per-commit chart,appVersion). The seven in-reporepository+digestpins in the packaged values are identical between the two, and each equals the index digest built above (the proxy image is a static pin and is untouched). So a deployed chart finds its images exactly as before, byrepository@sha256:…substituted at package time; no tag is involved. The per-commit chart version still followed the commit on a warm Bazel server (2.4.20-<sha>changed).The tag. With a workspace status whose only commit-derived key was the volatile
GIT_COMMIT, a second commit's build kept the first commit'sdev-<sha>tag: Bazel does not re-run an action for a volatile key. With a STABLE_ key that changes, the tag follows. That is whySTABLE_GIT_COMMITstays although nothing in an image reads it.Nothing in the repository reads the removed label: no script, workflow or test refers to
image.revision.What an operator loses, and what replaces it
docker inspect/crane configno longer shows the commit. The commit is bound to a digest from outside it: thedev-<full sha>tag (commit to digest), the cosign certificate and the provenance attestation (digest to commit). docs/verifying-releases.md, "Which commit built this digest", has the commands.The first deploy from a commit that has this rolls everything one last time (every digest changes once). Plan it as a full roll.
Merge order against the publish PR
The publish change (#1474) has merged: a digest is signed and attested once, by the run that first pushed it, and an unchanged digest is verified against the workflow only. That was the one ordering concern (an unchanged digest collecting an attestation per commit, against a verify step that fetched 30), so this stack has no ordering constraint left. This PR is rebased onto it.
Not verified
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr