Skip to content

chore(proxy): the Envoy pin is already the newest resolvable one — record the evidence - #830

Merged
bpalermo merged 1 commit into
mainfrom
chore/proxy-envoy-bump
Sep 19, 2026
Merged

bpalermo merged 1 commit into
mainfrom
chore/proxy-envoy-bump

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Ran the resolvability loop in proxy/README.md against envoyproxy/bazel-registry main @8818c934 (2026-09-15). There is nothing to bump to, so this PR moves no pin. It records the evidence and fixes two things the exercise showed were wrong or missing in the docs.

Why there is no bump

The registry has published no new envoy module version since 2026-09-04. modules/envoy/metadata.json lists exactly 1.40.0-dev.20260904.13144fb.envoy — the version we pin. All 19 commits after bed06c78 are unresolvable: the registry keeps one version per module and deleted the old directories out from under that snapshot (quiche d558744, protoc-gen-validate a0c0ce7, thrift 72b6bb0, envoy_toolshed dd48349/c806347, proto-converter 8818c93).

Confirmed with Bazel, not just by reading trees: at registry HEAD with our own direct deps bumped to HEAD's versions, resolution still dies on <root> -> [email protected] -> [email protected] — a request from the envoy module's own registry MODULE.bazel, which no downstream edit can satisfy. Forcing it with single_version_override would buy an unvalidated combination only a multi-hour build could disprove.

The next bump is gated on upstream publishing a new snapshot. No stable 1.40.0.envoy exists; upstream has no v1.40.0 tag or release branch and VERSION.txt still reads 1.40.0-dev.

Changes

  • proxy/.bazelrc: comments only. Pin rationale refreshed with the re-verification date and all five blocking modules (it previously named two).
  • proxy/README.md: check metadata.json first — one API call answers the whole question. Documents the two traps that make the loop falsely pass: --registry is an accumulating flag, so a candidate passed on the command line is appended behind the pinned one and the probe passes however broken the candidate is (it must go in .bazelrc, with --lockfile_mode=off); and a missing version directory is only fatal when nothing requests a higher one, since Bazel selects the MVS maximum. Also replaces the stale instruction to re-pin the root @envoy_binary_linux_* — test/envoy_validate: validate against the pinned aether-proxy image, not a stock Envoy release binary (gate and data plane have drifted: v1.39.0 vs 1.40.0-dev custom build) #709 deleted that pin, and //bazel/proxy_pin now lifts the binary from the aether-proxy image at the chart-pinned digest.

proxy/MODULE.bazel is untouched. No module version, registry commit or build setting changes.

Verification

Local, from proxy/: bazel mod graph --depth=1, bazel mod show_repo --base_module=envoy @envoy_build_config (confirms override_repo took), bazel mod explain @quiche @protobuf @abseil-cpp, and bazel build --nobuild //:envoy (60,628 targets configured, 63 s) — all pass.

Those checks prove the graph resolves and configures. They do not prove the build. CI is what proves the build, and both the amd64 and arm64 legs must be green before this merges — the arm64 result cannot be inferred from a local x86_64 run, because @clang_platform and @llvm_toolchain derive their exec constraints from the driver host's arch. The proxy workflow's path filter excludes proxy/**/*.md but not .bazelrc, so the full two-arch Envoy compile does run on this PR.

Not done, deliberately

  • envoy#45976 (BindConfig.validate_network_namespaces) stays unset; the default was confirmed by reading the proto at the pinned SHA — a bare bool with no default, no PGV rule and no runtime gate, so implicit-presence false, and unchanged at upstream main. Its doc comment states the rationale we rely on: a namespace absent at config load may be created later, and an unavailable namespace fails the connection gracefully.
  • envoy#45674 (hot-restart stat tags) needs no action — it is already in the pinned snapshot with its runtime guard defaulting ON, and chore: retire the aether_stats stats_tags regex workaround (#695 step 4) #707 retired the stats_tags workaround in rev198.

For whoever does the next real bump

Two landmines found while surveying, recorded here so they are not rediscovered the hard way:

  • Registry commit ea7d3f2 (fix(proxy-supervisor): don't externally kill the old hot-restart epoch (talos-validated) #105) removes quiche_mem_slice_impl_lib. Our .bazelrc sets --@quiche//:quiche_mem_slice_impl_lib=.... Landing on any registry commit at or past that requires deleting that line or the flag becomes unloadable. It is correct at our current pin and must not be touched now.
  • Upstream #47298 changes filter-chain drain on LDS updates from Immediate to the configured strategy, guard filter_chain_drain_uses_configured_strategy, default ON. That lands directly on our hitless-rollout numbers and should be guarded off on the first bump, then measured deliberately. Also #42890/#47217 removed Envoy's WORKSPACE and switched it to bzlmod just after our pin, so budget for dep-graph churn rather than a one-line version change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…ord the evidence

Ran the README's resolvability loop against envoyproxy/bazel-registry main
@8818c934 (2026-09-15) and found nothing to bump to. The registry has published
no new `envoy` module version since 2026-09-04: modules/envoy/metadata.json still
lists exactly 1.40.0-dev.20260904.13144fb.envoy, the version we pin. Every one of
the 19 commits after bed06c78 bumped a sibling out from under that module and
deleted the old directory, so the closure stops resolving: quiche (d558744),
protoc-gen-validate (a0c0ce7), thrift (72b6bb0), envoy_toolshed (dd48349,
c806347) and proto-converter (8818c93).

Confirmed with Bazel, not just by reading trees. At registry HEAD with our own
direct deps bumped to the versions HEAD carries, resolution still dies on
`<root> -> [email protected] -> [email protected]`
— a request from the envoy module's own registry MODULE.bazel that no downstream
edit can satisfy. Forcing it with single_version_override would buy an
unvalidated combination that only a multi-hour CI build could disprove, so the
next bump waits for the next snapshot.

No stable 1.40.0.envoy module exists yet either.

Two documentation fixes fall out of the exercise:

- README's bump recipe now records the two traps that make the loop lie.
  `--registry` is an accumulating flag, so passing a candidate commit on the
  command line appends it *behind* the pinned one and the probe passes however
  broken the candidate is — the candidate has to go in .bazelrc, with
  --lockfile_mode=off. And a missing version directory is only fatal when
  nothing in the closure requests a higher one, since Bazel selects the MVS
  maximum.
- The instruction to re-pin the root MODULE.bazel's `@envoy_binary_linux_*`
  alongside a stable release is stale. #709 deleted that pin; //bazel/proxy_pin
  now lifts the binary out of the aether-proxy image at the chart-pinned digest,
  so //test/envoy_validate follows this module with nothing to keep in sync.

No pin, no module version and no build setting changes here.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit cff8beb into main Sep 19, 2026
21 checks passed
@bpalermo
bpalermo deleted the chore/proxy-envoy-bump branch September 19, 2026 22:43
bpalermo added a commit that referenced this pull request Sep 20, 2026
… what envoy_server_version really is (#837)

You could not tell which Envoy a running `aether-proxy` contained, from the
process or from the image. Two symptoms, one gap, and the first one is now
answered rather than guessed at.

## envoy_server_version reports the AETHER commit, not Envoy's

Established outright, not inferred — and not from a running pod.
`//test/envoy_validate:envoy_bin` is the Envoy binary extracted from the
*published* aether-proxy image at the digest the chart pins, so it can be asked
directly:

    envoy  version: cff8beb/1.40.0-dev/Clean/RELEASE/BoringSSL

`cff8beb87eb685a44e00cf70c1a534695039da1b` is an **aether** commit — it is that
image's own `tag:` in `charts/aether/values.yaml`. The Envoy component of the
string is bare `1.40.0-dev`, with no Envoy revision in it at all. The gauge for
that image is therefore `0xcff8be`.

The `0x2FA24A` = 3121738 in the issue decodes the same way: aether commit
`2fa24a8` ("test: drop duplicate integration targets … (#772) (#788)"). It is
simply an older image than the chart's current pin.

The chain that produces it:

  * `proxy/.bazelrc` sets `--workspace_status_command="bash
    bazel/get_workspace_status"`, and that script runs `git rev-parse HEAD`.
    `proxy/` is a nested workspace inside the aether repo, so BUILD_SCM_REVISION
    is the aether commit. Envoy is a bzlmod dep; nothing asks its git anything.
  * `envoy_cc_binary` defaults to `stamp = 1` — cc_binary's "stamp even under
    `--nostamp`" — so `//source/common/version:version_linkstamp` compiles that
    real sha in although no build here passes `--stamp`. Verified against a
    minimal cc_binary + linkstamp: `--nostamp` yields the redacted
    BUILD_SCM_REVISION `"0"`, and `stamp = 1` yields the workspace-status value.
  * `server.cc` does `atoull(revision().substr(0, 6), 16)`.

So the gauge is 24 bits of the aether commit. Useful, but it will never match
`13144f` and was never going to. `proxy/README.md` now says so, with both the
derivation and the one-command way to re-confirm it locally, so nobody
re-derives this.

## Provenance on the artifact

Verified against the published index rather than assumed: every image we publish
has `Labels: null`, and the only annotation on `aether-proxy` is
`org.opencontainers.image.source` **inherited from distroless/cc**, pointing at
GoogleContainerTools/distroless — a confident wrong answer, worse than absent.
The rules_img images carry only `org.opencontainers.image.base.*`.

Both arches were decoded this time (#837 asked): amd64 and arm64 are identical
in every provenance respect — same absent labels, same zero `created`, same
single inherited annotation. Only layer digests and `architecture` differ, so
the original arm64-only analysis was fully representative.

Now, on all nine images (agent, mesh-dns, proxy-supervisor, cni-install,
registrar, controller, prober, udsecho, and the proxy):

  * `org.opencontainers.image.source` — this repo, **overriding** the inherited
    distroless value (rules_oci merges with `.annotations += {...}`, ours wins);
  * `org.opencontainers.image.revision` — the aether commit;

and on `aether-proxy` alone, the fact recoverable no other way:

  * `dev.aethermesh.envoy.module-version`, `.revision`, `.bazel-registry`.

The registry commit is in there because the envoy bazel-registry keeps one
version directory per module and deletes the previous one, so the module version
alone does not resolve.

## Determinism did not regress — measured, not assumed

Zero timestamps stay: `created` is still unset and history entries are still
`bazel bu…`. `revision` is a fixed string, not a clock.

  * rules_img: `stamp = "force"` on image_manifest/image_index, so the label is
    correct in *every* configuration — plain `bazel build` included, where
    "auto" would have baked the literal `{{.STABLE_GIT_COMMIT}}` in. The
    ExpandTemplate action takes stable-status.txt as an input; volatile-status
    (BUILD_TIMESTAMP) is constant-metadata to Bazel and invalidates nothing.
    Proof: `bazel shutdown` then rebuild ⇒ **4556 action-cache hits, 0 actions
    re-executed, byte-identical index digest**
    (`sha256:ea16c042…`). The new STABLE_GIT_COMMIT key is stable on purpose:
    a volatile one would let a cached config blob re-publish the *previous*
    commit's sha, which is the failure mode this issue is about.
  * proxy: the metadata genrule is tagged `no-cache` for the same reason —
    BUILD_SCM_REVISION is volatile there. It is two `sed`s, and its output is
    byte-identical at a given commit, so `:image`/`:push` still cache-hit.

Between commits only the tiny config/manifest actions re-run. No layer, no
compile, no link.

Prerequisite for #830's next Envoy pin bump, which is exactly the shape of
change where "which Envoy is actually running?" must be answerable from the
artifact.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo added a commit that referenced this pull request Sep 20, 2026
…kill -TERM stop the soak churn driver (#835) (#845)

* fix(build): stamp OCI provenance on every published image, and record what envoy_server_version really is (#837)

You could not tell which Envoy a running `aether-proxy` contained, from the
process or from the image. Two symptoms, one gap, and the first one is now
answered rather than guessed at.

## envoy_server_version reports the AETHER commit, not Envoy's

Established outright, not inferred — and not from a running pod.
`//test/envoy_validate:envoy_bin` is the Envoy binary extracted from the
*published* aether-proxy image at the digest the chart pins, so it can be asked
directly:

    envoy  version: cff8beb/1.40.0-dev/Clean/RELEASE/BoringSSL

`cff8beb87eb685a44e00cf70c1a534695039da1b` is an **aether** commit — it is that
image's own `tag:` in `charts/aether/values.yaml`. The Envoy component of the
string is bare `1.40.0-dev`, with no Envoy revision in it at all. The gauge for
that image is therefore `0xcff8be`.

The `0x2FA24A` = 3121738 in the issue decodes the same way: aether commit
`2fa24a8` ("test: drop duplicate integration targets … (#772) (#788)"). It is
simply an older image than the chart's current pin.

The chain that produces it:

  * `proxy/.bazelrc` sets `--workspace_status_command="bash
    bazel/get_workspace_status"`, and that script runs `git rev-parse HEAD`.
    `proxy/` is a nested workspace inside the aether repo, so BUILD_SCM_REVISION
    is the aether commit. Envoy is a bzlmod dep; nothing asks its git anything.
  * `envoy_cc_binary` defaults to `stamp = 1` — cc_binary's "stamp even under
    `--nostamp`" — so `//source/common/version:version_linkstamp` compiles that
    real sha in although no build here passes `--stamp`. Verified against a
    minimal cc_binary + linkstamp: `--nostamp` yields the redacted
    BUILD_SCM_REVISION `"0"`, and `stamp = 1` yields the workspace-status value.
  * `server.cc` does `atoull(revision().substr(0, 6), 16)`.

So the gauge is 24 bits of the aether commit. Useful, but it will never match
`13144f` and was never going to. `proxy/README.md` now says so, with both the
derivation and the one-command way to re-confirm it locally, so nobody
re-derives this.

## Provenance on the artifact

Verified against the published index rather than assumed: every image we publish
has `Labels: null`, and the only annotation on `aether-proxy` is
`org.opencontainers.image.source` **inherited from distroless/cc**, pointing at
GoogleContainerTools/distroless — a confident wrong answer, worse than absent.
The rules_img images carry only `org.opencontainers.image.base.*`.

Both arches were decoded this time (#837 asked): amd64 and arm64 are identical
in every provenance respect — same absent labels, same zero `created`, same
single inherited annotation. Only layer digests and `architecture` differ, so
the original arm64-only analysis was fully representative.

Now, on all nine images (agent, mesh-dns, proxy-supervisor, cni-install,
registrar, controller, prober, udsecho, and the proxy):

  * `org.opencontainers.image.source` — this repo, **overriding** the inherited
    distroless value (rules_oci merges with `.annotations += {...}`, ours wins);
  * `org.opencontainers.image.revision` — the aether commit;

and on `aether-proxy` alone, the fact recoverable no other way:

  * `dev.aethermesh.envoy.module-version`, `.revision`, `.bazel-registry`.

The registry commit is in there because the envoy bazel-registry keeps one
version directory per module and deletes the previous one, so the module version
alone does not resolve.

## Determinism did not regress — measured, not assumed

Zero timestamps stay: `created` is still unset and history entries are still
`bazel bu…`. `revision` is a fixed string, not a clock.

  * rules_img: `stamp = "force"` on image_manifest/image_index, so the label is
    correct in *every* configuration — plain `bazel build` included, where
    "auto" would have baked the literal `{{.STABLE_GIT_COMMIT}}` in. The
    ExpandTemplate action takes stable-status.txt as an input; volatile-status
    (BUILD_TIMESTAMP) is constant-metadata to Bazel and invalidates nothing.
    Proof: `bazel shutdown` then rebuild ⇒ **4556 action-cache hits, 0 actions
    re-executed, byte-identical index digest**
    (`sha256:ea16c042…`). The new STABLE_GIT_COMMIT key is stable on purpose:
    a volatile one would let a cached config blob re-publish the *previous*
    commit's sha, which is the failure mode this issue is about.
  * proxy: the metadata genrule is tagged `no-cache` for the same reason —
    BUILD_SCM_REVISION is volatile there. It is two `sed`s, and its output is
    byte-identical at a given commit, so `:image`/`:push` still cache-hit.

Between commits only the tiny config/manifest actions re-run. No layer, no
compile, no link.

Prerequisite for #830's next Envoy pin bump, which is exactly the shape of
change where "which Envoy is actually running?" must be answerable from the
artifact.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* fix(soak): make kill -TERM stop the churn driver instead of firing the next roll (#835)

`trap restore_shrink EXIT INT TERM` bundled the safety net with the stop
signals, and `restore_shrink` *returns* rather than exiting. So on TERM bash ran
the handler, the handler returned, the in-flight `sleep` inside `waituntil` had
already been interrupted, and control fell straight through to the next `roll`.
The signal sent to stop the driver made it fire early — an unscheduled
`ROLLED aether-test/deployment/svc-1` at 23:10:32Z on 2026-09-19, with the driver
still running afterwards. That reads in the log as "the tool ignored my signal",
which sends you debugging the wrong thing; the tool did the opposite, and the
two need different debugging.

Split the traps, keeping EXIT as the idempotent safety net:

    trap restore_shrink EXIT
    trap 'restore_shrink; exit 130' INT
    trap 'restore_shrink; exit 143' TERM

Reproduced and verified, with `kubectl` stubbed and no cluster involved:

  * pre-fix, TERM ⇒ driver STILL RUNNING, 1 unscheduled `ROLLED …/svc-1` —
    exactly the 2026-09-19 observation;
  * post-fix, TERM ⇒ exit 143, 0 rolls.

The idempotency claim was checked rather than taken on trust: a full-schedule
dry run (`sleep` stubbed, so all 452 minutes run in seconds) still logs 31
ROLLED and makes exactly **two** `kubectl scale` calls for the SHRINK — down to
0 and back to the replica count it read first. The EXIT trap firing again after
`shrink()`'s own `restore_shrink` is a no-op, because `restore_shrink` clears
SHRINK_PREV before it scales.

`e2e/soak/README.md` gains a "Stopping the churn driver" section for the whole
family, since these are cases where the safety action causes the harm:

  * stop it with `kill -9 <pid>`. Even with the traps fixed, a TERM to the
    driver's pid alone leaves its `sleep` child running and bash defers the
    handler until that `sleep` returns — measured: still parked twelve minutes
    later. Only a TERM that also reaches the child stops it promptly;
  * never `pkill -f "soak/churn.sh"`: the pattern appears in the command line of
    the shell issuing it, so it kills your own session too. `pgrep -cf` has the
    same flaw in the harmless direction — it reads one driver too high. Anchor
    on the absolute script path;
  * before launching, check for an existing driver by absolute path and refuse
    to start a second. Two share `/tmp/soak-churn.log` and interleave into ~62
    rolls, which does not fail a run, it silently invalidates it;
  * at grade time count ROLLED in `/tmp/soak-churn.log` only — older
    `/tmp/soak-churn-*.log` files match a naive glob and inflate the tally;
  * never patch `churn.sh` while a soak is running: bash reads scripts
    incrementally by byte offset, so editing an executing script can corrupt its
    control flow. Verified no driver was running before this edit.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* docs(proxy): note that the pinned-Envoy target may move under #841

proxy/README.md points at //test/envoy_validate:envoy_bin as the one-command
way to re-confirm what envoy_server_version reports. #841 factors that target
out, so say the label may move rather than leave a reference that silently goes
stale.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

---------

Co-authored-by: Claude Opus 5 <[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