You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: every in-repo image gets a new digest on every commit, so every deploy still rolls every workload #1378
#1363 removes the chart-version label from pod templates, but a deploy of a new commit still rolls every workload, because every image the chart pins by digest changes with every commit, whether or not its code changed.
Measured on talos-main (helm get manifest --revision N, image lines only): all seven in-repo digests (agent, cni-install, proxy-supervisor, mesh-dns, uds-csi, registrar, controller) changed in each of the four deploys from revision 276 to 279. Revisions 276 and 277 are six commits apart that touch the registrar, tests and scripts; cni-install, uds-csi, mesh-dns and proxy-supervisor still got new digests.
Measured locally: two builds with no Go change at two different HEADs gave seven different digests.
Probable cause (read in code, not bisected):bazel/img/go_multi_arch_image.bzl stamps org.opencontainers.image.revision: <commit> with stamp = "force" (#837), and the binaries carry Version = {STABLE_GIT_VERSION}.
Why it matters: every workload runs at least one of these images (the proxy DaemonSet through install-supervisor), so each deploy is a full roll including a hot restart of every node proxy, which is where the handoff stalls are (#1093, #1320).
Options to weigh: keep the commit out of the image config and the binary (record it as an OCI annotation on the index or as a referrer instead, so the manifest digest follows content); or stamp only a content-derived version. Either touches #837 and whatever reads the stamped version (--version output, build-ID checks, the published-artifact verifier that finds images by commit tag — tags are separate from digests and can stay). Decide what must still identify the commit before changing anything.
Reported by the chart work for #1363/#1364 (PRs #1367, #1368), not changed there.
Scoping result (read-only; measured with local --stamp builds that reproduce the published digests bit for bit)
Two stamps cause it, and both must go.
Image metadata carries the commit in three places: the config label org.opencontainers.image.revision, a manifest annotation, and an index annotation (bazel/img/go_multi_arch_image.bzl, stamp = "force").
Seven binaries link the commit through x_defs (Version = {STABLE_GIT_VERSION}): agent, mesh-dns, proxy-supervisor, uds-csi, controller, prober, registrar.
Across two commits that differ only in a doc file:
Neutralised
Index digests equal
nothing
0 of 10
any single one of the four fields
0 of 10
the three image fields
3 of 10 (the images whose binary has no x_defs)
x_defs + config + manifest, index annotation kept
0 of 10
all four
10 of 10, and the aether chart package is byte-identical
There is no time-derived value in any image. The same churn is visible on the registry: b5d69027 is a docs-only commit and all nine published images changed digest with it.
Who reads the stamped value. No binary has a --version flag (measured: unknown flag). The linked Version is used only as OTel service.version and as uds-csi's CSI VendorVersion. The build-ID check, the symbol sync, the signing step (it finds images by the dev-<sha> TAG, which can point at an unchanged digest) and the "which commit is deployed" recipes (they read the chart) are unaffected.
Recommendation: remove both stamps; do not add a "skip unaffected images" step. With the stamps gone Bazel yields the same digest for unchanged inputs, the push is idempotent and the chart pins the same digest, so nothing has to be told an image is unchanged. An index or manifest annotation is NOT a usable home for the commit: either changes the index digest the chart pins. The commit stays bound to the digest by the cosign certificate, the provenance attestation and the dev-<sha> tag.
Proposed PRs
publish.yaml: sign and attest idempotently (skip cosign sign when the digest already verifies; decide the attestation policy below). A no-op while digests still churn, so it lands first.
Binaries: service.version becomes the binary's own GNU build-ID, read from its ELF at start; drop the seven x_defs.
Images: drop revision from the label/annotations and both stamp = "force"; keep STABLE_GIT_COMMIT in the workspace status as the invalidator for tags and chart versions, and read tags from it. (Measured trap: without a commit-derived STABLE key the dev-<sha> tag and the X.Y.Z-<sha> chart version go stale.)
CI proof: build every image index twice under --stamp with two different commit values and fail on any difference.
Publish reports "N of 9 image digests changed versus the parent commit".
PRs 2 and 3 are each insufficient alone. The first deploy after both rolls everything one last time.
What a deploy then rolls: a docs-only commit, nothing; an agent-only change, the agent DaemonSet, the edge Deployment and the controller (its identity-gate image defaults to the agent image), with no proxy roll and so no Envoy hot restart; a chart-only change, only the workloads whose pod template changed.
Decision needed (PR 1): once digests are stable, each publish would add one more attestation to an unchanged digest, about 17 a day, and gh attestation verify fetches 30 by default. Either attest every commit (verification by any deployed commit keeps working, attestations accumulate) or attest only new digests (provenance names the first commit that built the digest; verification stops pinning the current commit for images). Recommended: only new digests.
Fit with "build once on main, promote on a tag": these changes fit it. A tag-derived version inside the binary does not (the tag does not exist when the binary is linked); the release version belongs in the chart and in OCI tags.
Not verified:gh attestation verify with more than 30 attestations on one digest; quay and cosign behaviour as signature referrers accumulate; a cold CI runner's tag staleness; live Grafana dashboards using service.version.
Done by #1474 (publish signs and attests only what is new), #1465 (binaries report their build ID), #1466 (the Go images no longer carry the commit) and #1467 (CI fails when an image digest depends on the commit).
Seen on the registry: publish run 37862959584, for 3bca3d7 (#1464, a chart-only change), is the first run after all four. All 9 image digests are the ones 0afa2c1 built: 9 images reference(s): 0 signed now, 9 already signed, 14 signed reference(s): 5 new provenance subject(s), 9 already attested (skipped), and the provenance of all 14 artifacts verified, the 9 images against the attestation of the commit that built them first. The 5 charts are new on every commit, as designed (the version carries the commit). So a deploy of this commit rolls no workload whose image did not change.
Not covered: the proxy image, built in its own workspace, still carries the commit on purpose.
Activity
bpalermo commentedon Oct 8, 2026
Scoping result (read-only; measured with local
--stampbuilds that reproduce the published digests bit for bit)Two stamps cause it, and both must go.
org.opencontainers.image.revision, a manifest annotation, and an index annotation (bazel/img/go_multi_arch_image.bzl,stamp = "force").x_defs(Version = {STABLE_GIT_VERSION}): agent, mesh-dns, proxy-supervisor, uds-csi, controller, prober, registrar.Across two commits that differ only in a doc file:
x_defs)x_defs+ config + manifest, index annotation keptThere is no time-derived value in any image. The same churn is visible on the registry:
b5d69027is a docs-only commit and all nine published images changed digest with it.Who reads the stamped value. No binary has a
--versionflag (measured:unknown flag). The linkedVersionis used only as OTelservice.versionand as uds-csi's CSIVendorVersion. The build-ID check, the symbol sync, the signing step (it finds images by thedev-<sha>TAG, which can point at an unchanged digest) and the "which commit is deployed" recipes (they read the chart) are unaffected.Recommendation: remove both stamps; do not add a "skip unaffected images" step. With the stamps gone Bazel yields the same digest for unchanged inputs, the push is idempotent and the chart pins the same digest, so nothing has to be told an image is unchanged. An index or manifest annotation is NOT a usable home for the commit: either changes the index digest the chart pins. The commit stays bound to the digest by the cosign certificate, the provenance attestation and the
dev-<sha>tag.Proposed PRs
publish.yaml: sign and attest idempotently (skipcosign signwhen the digest already verifies; decide the attestation policy below). A no-op while digests still churn, so it lands first.service.versionbecomes the binary's own GNU build-ID, read from its ELF at start; drop the sevenx_defs.revisionfrom the label/annotations and bothstamp = "force"; keepSTABLE_GIT_COMMITin the workspace status as the invalidator for tags and chart versions, and read tags from it. (Measured trap: without a commit-derived STABLE key thedev-<sha>tag and theX.Y.Z-<sha>chart version go stale.)--stampwith two different commit values and fail on any difference.PRs 2 and 3 are each insufficient alone. The first deploy after both rolls everything one last time.
What a deploy then rolls: a docs-only commit, nothing; an agent-only change, the agent DaemonSet, the edge Deployment and the controller (its identity-gate image defaults to the agent image), with no proxy roll and so no Envoy hot restart; a chart-only change, only the workloads whose pod template changed.
Decision needed (PR 1): once digests are stable, each publish would add one more attestation to an unchanged digest, about 17 a day, and
gh attestation verifyfetches 30 by default. Either attest every commit (verification by any deployed commit keeps working, attestations accumulate) or attest only new digests (provenance names the first commit that built the digest; verification stops pinning the current commit for images). Recommended: only new digests.Fit with "build once on main, promote on a tag": these changes fit it. A tag-derived version inside the binary does not (the tag does not exist when the binary is linked); the release version belongs in the chart and in OCI tags.
Not verified:
gh attestation verifywith more than 30 attestations on one digest; quay and cosign behaviour as signature referrers accumulate; a cold CI runner's tag staleness; live Grafana dashboards usingservice.version.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
test(ci): CI fails when an image digest depends on the commit (#1378)
fix(publish): each digest is signed and attested once; an unchanged d…
fix(publish): each digest is signed and attested once; an unchanged d…
feat(build): binaries report their own build ID as their version; --v…
fix(build): cni-install answers --version too; make check-build-id pr…
fix(build): an image no longer carries the commit, so an unchanged im…
test(ci): CI fails when an image digest depends on the commit (#1378)
docs: "no image carries the commit" is scoped to the Go images; the p…
test(ci): CI fails when an image digest depends on the commit (#1378)
fix(ci): the digest check does not believe a query or a status script…
fix(ci): the digest check reads the action graph, so a volatile statu…
feat(build): binaries report their own build ID as their version; --v…
fix(build): cni-install answers --version too; make check-build-id pr…
fix(build): an image no longer carries the commit, so an unchanged im…
docs: "no image carries the commit" is scoped to the Go images; the p…
test(ci): CI fails when an image digest depends on the commit (#1378)
fix(ci): the digest check does not believe a query or a status script…
fix(ci): the digest check reads the action graph, so a volatile statu…
feat(build): binaries report their own build ID as their version; --v…
fix(build): an image no longer carries the commit, so an unchanged im…
test(ci): CI fails when an image digest depends on the commit (#1378) (…
bpalermo commentedon Oct 9, 2026
Done by #1474 (publish signs and attests only what is new), #1465 (binaries report their build ID), #1466 (the Go images no longer carry the commit) and #1467 (CI fails when an image digest depends on the commit).
Seen on the registry: publish run 37862959584, for 3bca3d7 (#1464, a chart-only change), is the first run after all four. All 9 image digests are the ones 0afa2c1 built:
9 images reference(s): 0 signed now, 9 already signed,14 signed reference(s): 5 new provenance subject(s), 9 already attested (skipped), and the provenance of all 14 artifacts verified, the 9 images against the attestation of the commit that built them first. The 5 charts are new on every commit, as designed (the version carries the commit). So a deploy of this commit rolls no workload whose image did not change.Not covered: the proxy image, built in its own workspace, still carries the commit on purpose.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr