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
fix(chart): the node proxy's Envoy stats name their service, and the prober and udsecho charts' mesh names are held to the Go constants (#1561, #1589, #1582, #1588) - #1595
Not in this change:#1560 (taken out after review, see "Taken out") and #1544 (see "Left out").
What changes
#1561: the node proxy's Envoy stats are service.name=aether-proxy
Where the backend maps service.name to job (Prometheus's OTLP ingestion does by itself; another backend may need the mapping made), their series gain job="aether-proxy". Set in the bootstrap (aether-proxy-config), as a second resource detector of the OTLP stats sink, and not through the container's environment:
The supervisor runs in the same container and builds its own resource from the same environment. Since fix(telemetry): a service.name in OTEL_RESOURCE_ATTRIBUTES no longer renames a component (#1562) #1564 a service.name in OTEL_RESOURCE_ATTRIBUTES no longer renames it, but OTEL_SERVICE_NAME still does, so nothing is added to the environment. The proxy DaemonSet's pod template renders exactly as on main, so the environment the supervisor builds its resource from is unchanged; a guard test pins every workload's OTEL_RESOURCE_ATTRIBUTES value and another fails on any name: OTEL_SERVICE_NAME entry in the render.
Envoy merges detectors in the order they are listed and a later one overwrites an earlier one, so the static detector is second and the bootstrap's name also holds against a service.name in OTEL_RESOURCE_ATTRIBUTES. This is measured: a new test starts the pinned Envoy with the chart's detector block and OTEL_RESOURCE_ATTRIBUTES=service.name=from-the-environment,k8s.node.name=node-1, receives its OTLP export and reads the resource. With the two detectors swapped it reads from-the-environment.
The name is fixed, like every other component's (no values key): dashboards and alerts select on it.
The stats-cardinality rules of the bootstrap (stats_config, the exclusion list, cluster.health_*) are not touched.
Chart and image one release apart: the detector is in Envoy's default extension set at the pinned version and the proxy build drops nothing that matches it; envoy --mode validate with the pinned binary accepts the whole rendered bootstrap, before and after. I did not check the previous proxy image.
#1589: the prober and udsecho charts' mesh names are held to the code
Both charts write aether.io/managed, the endpoint.aether.io/* and config.aether.io/upstreams annotations and the csi.aether.io volume driver as literals. Each chart gets a helm_mesh_names_test (new, //bazel/helm:defs.bzl): its BUILD file lists what each workload's pod carries by symbol (upstreams, endpoint_port=8080, uds_socket=…, csi), and the checker (//bazel/helm/meshnames) renders the packaged chart and compares every workload's pod template with common/constants/labels, common/constants/annotations and common/udspath.CSIDriver. The comparison is closed: a label or annotation in an aether.io namespace that is not listed for the workload fails it, and so does a workload that is not listed, or a listed one that is not rendered.
config.aether.io/upstreams has its Go constant in agent/internal/xds/xdsconst, which nothing outside agent/ may import. xdsconst_test already holds that constant to the contract entry pod.annotation.upstreams; the checker holds the charts to the same entry.
It is a test rule with a Go checker, as helm_contract_test is, and not a go_test: a go_test with a chart in its data cannot be analysed by the race job (a chart's images are linked with cgo off). //bazel/helm/render is the small helper. It never prints a render, and when helm fails it shows the exit status only: nothing helm wrote, on either stream.
The templates of these two charts are unchanged: the renders differ from main only in helm.sh/chart.
docs/runbook.md, "Chart 2.4.24" (and the Namespace case of "Chart 2.4.25"): after a failed helm rollback the new revision is failed, the revision that was current is superseded, and none is deployed; helm status prints STATUS: failed. The recovery line no longer says "the last deployed revision". The sentence about a failed upgrade leaving the previous revision deployed is kept: it is about a different Helm path, and I did not re-measure it.
docs/runbook.md (new "Pinning a released chart"), charts/README.md, docs/getting-started.md: the bare <X.Y.Z> tag of the aether chart is rewritten by every commit that keeps the version, so a pin names the commit-suffixed tag or the digest alone, never the bare tag with a digest.
docs/observability/metric-labels.md: the node proxy's service.name, and a new section, "A label that holds the pod name", with what such a label does to the shipped rules across a roll.
Rendered, before and after
helm template release-name <chart>.tgz -n aether-system --set controller.webhook.spire=true, plus the options named. helm.sh/chart: aether-2.4.25 → aether-2.4.26 on object metadata (never in a pod template) aside:
Default values (telemetry off): nothing else changes. Every workload's pod template is identical to main, and so is the envoy.yaml of ConfigMap/aether-proxy-config (the object's own helm.sh/chart label changes like every other object's; it is not mounted).
otel.enabled=true, otel.endpoint=…: the envoy.yaml of ConfigMap/aether-proxy-config gains the detector (and the comment above it, which is part of the data). Every workload's pod template is identical to main.
prober (default, and authzCanary.enabled=true) and udsecho (default): only helm.sh/chart changes.
Upgrade
Measured for this section: the renders above; the pinned Envoy's export (the new test); the queries, with promtool over synthetic series. Not measured: the upgrade on a cluster. What the supervisor does with a changed bootstrap is the runbook's existing description ("Which workloads a chart upgrade rolls").
What the chart rolls on the upgrade to aether 2.4.26: nothing. No Deployment's and no DaemonSet's pod template changes. (A release built from a newer commit can still carry a new image digest, which rolls that workload as on any upgrade.)
The node proxy, when otel.endpoint is set: no pod is replaced, but the mounted envoy.yaml changes, and the supervisor watches it (--watch-config) and hot-restarts Envoy in place. Per the runbook that happens on each node when its kubelet delivers the file, on every node independently, not one node at a time as in a DaemonSet roll. Earlier bootstrap changes in 2.4.x charts shipped the same way, so this is a patch release; it is still a hot restart on every node close together, so check the per-node headroom of "Sizing nodes for a proxy hot restart" first. With otel.endpoint empty envoy.yaml is unchanged and nothing restarts for it. A rollback changes envoy.yaml back, so expect the same again.
What changes in stored metrics, where the backend maps service.name to job:
job="aether-proxy" appears on the node proxy's Envoy series (envoy_*, aether_requests_total), from each node's restart on. Each becomes a new series.
For five minutes the old and the new series are both read. A pushed series has no staleness marker, so an old series' last sample stays in the lookback. An aggregation that does not keep job counts both: with promtool, sum by (node, aether_cluster) (envoy_cluster_membership_healthy) over 4 hosts read 8 two minutes after the restart and 4 again once the five minutes had passed. An alert of your own with a threshold on such a sum can fire in that window. The label changes once, so this is an effect of this upgrade (and of a rollback across it), not of later proxy rolls.
Selectors, with promtool: {job="aether-proxy"} does not double; {job!="aether-edge-proxy"} selects the node proxy before and after, and reads both series inside the five minutes; {job=""} matches nothing once the old series have left the lookback.
Counters were not measured: a rate() window that spans the restart sees one series end and one start.
The supervisor's environment is unchanged, so aether_supervisor_* should stay job="aether-proxy-supervisor"; the query below checks it.
The shipped rules (docs/observability/*.yml) select on none of the node proxy's Envoy series; their promtool tests pass unchanged.
To measure after a deploy (also in the runbook, "Chart 2.4.26"):
count by (job) (envoy_server_live) # aether-proxy (and aether-edge-proxy); a job-less result lingers up to 5 min
max by (node) (envoy_server_hot_restart_epoch{job="aether-proxy"}) # compare with the value before: a node whose epoch did not move has not picked the bootstrap up
count by (job) ({__name__=~"aether_supervisor_.+"}) # the same job as before
prober 1.0.8, udsecho 2.0.4: no template changes.
Tests
Red first, against the unchanged code:
//charts/aether:aether_proxy_stats_service_name_test: the bootstrap block.
//agent/test/envoy_validate:envoy_validate_test (TestNodeProxyStatsSinkServiceName): expected "aether-proxy", actual "from-the-environment"; the same with the detectors in the wrong order.
//bazel/helm/render:render_test (TestTemplateWithholdsWhatHelmWroteWhenItFails): a stand-in helm that writes a Secret and a key-shaped block to both streams and exits 3; red while the error still carried helm's stderr.
Guards, green before and after, each seen to fail under a mutation:
//charts/aether:aether_resource_attributes_unchanged_test (every workload's OTEL_RESOURCE_ATTRIBUTES), :aether_no_otel_service_name_env_test, :aether_proxy_stats_sink_off_test (the off switch: no otel.endpoint, no sink).
//charts/prober:prober_mesh_names_test, //charts/udsecho:udsecho_mesh_names_test: green on the unchanged charts, since the literals agree with the constants today. Red when a template literal is misspelled (the label, the CSI driver) and when a Go constant is renamed (annotations.AnnotationEndpointPort); //bazel/helm/meshnames:meshnames_test covers each kind of drift on a fixture. No mutation is left in the tree.
bazel test //charts/... //test/harnesscontract/... //bazel/helm/... //agent/test/envoy_validate/... //:all, the new go_tests under --config=race, the lint build over the touched packages, make format-check, scripts/check-chart-version-bump.sh.
No cluster was used: template tests, promtool, and one local Envoy process.
The first version of this change set service.instance.id=$(POD_NAME) on the registrar, the controller and the edge control plane, so that Prometheus's instance label would keep their replicas apart. Review pointed out what a pod-name label does across a roll, and promtool against the shipped rules confirms it: a pushed series has no staleness marker, so a terminated pod's last sample stays in the 5-minute lookback beside its replacement's.
Shipped rule
With a pod-name label, across a roll
Today (no such label, nothing promoted)
AetherMeshClusterUnpinned (for: 3m)
a pod whose last export reported one unpinned cluster, replaced by one that reports none: fires (critical). A rightly firing alert outlives the pod by up to 5 min
two edge replicas on one node write one series; the replacement overwrites it and the alert clears at once
AetherMeshClusterPinPending (for: 5m)
the same single sample does not fire it
as above
AetherRegistrarSnapshotDiverged
a registrar whose last export fell between an agent RPC and its sync: fires. A dead registrar's last non-zero queue depth delays a real divergence by 5 min
can never fire: the replicas are one series
count(aether_registrar_snapshot_content_hash)
counts old and new replicas for 5 min
always 1
So for the registrar rule the label is the better state and for the pin rules the worse one, and the fix that makes it right for both is in the rules (select fresh series only), which operators who already installed them would have to update in step with the chart. The chart cannot enforce that, so the attribute is out of this change and #1560 stays open with this table. The same effect exists today for anyone whose pipeline makes a pod label from k8s.pod.name, which metric-labels.md now says.
The annotation was written and tested (aether.io/harness-contract-version on the agent DaemonSet's own metadata, the value read with .Files.Get from a one-line file a genrule extracts from the contract at package time). It does not build: //test/harnesscontract:external-harness.yaml is not visible outside its package, and this change was not to touch test/harnesscontract/. The public Go library that embeds the file is testonly, which the published chart targets cannot depend on. It needs one line there:
…ics, and the prober and udsecho charts' mesh names are held to the Go constants (#1560, #1561, #1589, #1582, #1588)
aether chart 2.4.26, prober chart 1.0.8, udsecho chart 2.0.4.
#1560: the registrar, the controller and the edge control plane set
service.instance.id=$(POD_NAME) in OTEL_RESOURCE_ATTRIBUTES. A metrics backend
maps that attribute to a label by itself (Prometheus: instance), so replicas no
longer write one series when the pipeline promotes nothing. The per-node
DaemonSets are unchanged on purpose: the node tells them apart and is stable
across a roll.
#1561: the node proxy's Envoy stats are exported as service.name=aether-proxy.
The name is set in the bootstrap (a static resource detector listed after the
environment one), not in the container's environment, which the supervisor in
the same container reads too. A test runs the pinned Envoy on the chart's
detector block with a service.name in the environment and reads the exported
OTLP resource.
#1589: charts/prober and charts/udsecho write the mesh label, the mesh
annotations and the CSI driver name as literals. A Go test in each chart
renders it and compares every workload with common/constants and
common/udspath (and, for config.aether.io/upstreams, whose constant is
internal to the agent, with the external-harness contract entry that constant
is held to). //bazel/helm/rendertest is the helper.
#1582, #1588: the runbook says what a failed helm rollback leaves (the new
revision failed, the previous one superseded, none deployed), and the install
and upgrade documentation says that a pin of a released chart names the
commit-suffixed tag or the digest alone.
Not in this change: #1544 (the contract version on the agent DaemonSet). The
contract file is not visible to //charts/aether, and the change was not to
touch test/harnesscontract.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…so the race job can analyse it
A go_test with a chart in its data cannot be analysed under --config=race:
the chart's images are linked with cgo off. The race job runs every go_test,
and failed on //charts/udsecho:udsecho_test. The check is now
helm_mesh_names_test (//bazel/helm:defs.bzl): the chart's BUILD file lists
what each workload's pod carries by symbol, and //bazel/helm/meshnames
resolves the symbols to the Go constants and compares the render.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
Scope service.instance.id mapping guarantee to Prometheus
docs/runbook.md:2612
This overstates the guarantee: only Prometheus's OTLP ingestion performs this mapping automatically. As docs/configuration.md now notes, another backend may not map—or may drop—service.instance.id, in which case the replicas still collapse regardless of what the pipeline promotes. Please scope this statement to Prometheus and retain the mapping requirement for other backends.
…roller and the edge control plane (#1560 taken out)
With the pod name as a label every roll starts new series, and a pushed
series has no staleness marker: a terminated pod's last sample stays in the
5-minute lookback. Run through promtool against the shipped rules, a pod
whose last export reported one unpinned cluster fires
AetherMeshClusterUnpinned after it is replaced, a registrar's last
in-between hash fires AetherRegistrarSnapshotDiverged, and a dead
registrar's queue depth holds a real divergence back by five minutes. The
rules would have to select fresh series first, in step with the chart,
which a chart cannot enforce.
The three Deployments render as on main and are not rolled by 2.4.26. The
guard test now pins every workload's OTEL_RESOURCE_ATTRIBUTES, and
metric-labels.md and the runbook say what a pod-name label does to the
rules and that the node proxy's new job label doubles gauge sums for five
minutes, once.
Review of #1595.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
changed the title
fix(chart): replicas and the node proxy name themselves in their metrics, and the prober and udsecho charts' mesh names are held to the Go constants (#1560, #1561, #1589, #1582, #1588)
fix(chart): the node proxy's Envoy stats name their service, and the prober and udsecho charts' mesh names are held to the Go constants (#1561, #1589, #1582, #1588)
Oct 9, 2026
…ice.name becomes job
The job label appears where the backend maps service.name to it (Prometheus's
OTLP ingestion does by itself). With telemetry off the ConfigMap's envoy.yaml
is unchanged, not the whole object: its helm.sh/chart label moves with the
version. The section now separates what was measured (the renders, the pinned
Envoy's export, the queries with promtool) from what was not (the upgrade on
a cluster, counters).
Review of #1595.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…E says who holds the charts' own mesh names
main added `agent.xds_acked_tls_clusters_unknown` to the contract. A new
entry needs no version bump and a line in the lock per promise: TestVersionBump
failed on the merge and printed the four lines, which are added. That failure
was also the first on a pull request's merge ref: `test` went red on the
previous head for exactly this reason.
main also holds the prober and udsecho charts' mesh names to the Go constants
(helm_mesh_names_test, #1595), so the README no longer lists them as
compared with nothing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…mp fails a test, checked_by lists every test that holds an entry, and the names a chart passes are held to its render (#1541, #1547, #1548) (#1566)
* test(contract): a promise that leaves or changes without a version bump fails a test, checked_by lists every test that holds an entry, and the names a chart passes are held to its render (#1541, #1547, #1548)
Three follow-ups to the external-harness contract (#1535). The contract's
version stays 1: checks are added, no promise changes.
#1541. external-harness.lock.yaml holds one line per promise of the current
version: "<entry id> <key> [<member>]" and a digest. TestVersionBump compares
it with the contract. A line that is gone or whose digest differs fails and
asks for the bump, without printing a digest; with the version bumped by one
the test prints the whole new lock; a promise the contract gains needs a line
and no bump, and the test prints the line. Prose (notes, comments), checked_by
and the order of a list are not promises. A key added to an entry type later
is a promise by default.
#1547. checked_by is one label or a list. Every test it names lists the entry
among the ids it holds: Contract.Owns for a Go test, `ids` for a chart test,
which is now told its own label. The contract does not load unless an entry a
render refers to names that render's chart test, and an entry that names a
chart test is referred to by one of its renders.
#1548. Audit of the entries compared with a Go constant only. Tied to the
render: the CSIDriver object's name (name_from: csi.driver), the prober
chart's default --mesh-domain and --egress (the outbound port, through a
pattern), and the prober's service.name, which the OpenTelemetry SDK lets the
environment override: the rendered container must be given neither
service.name in OTEL_RESOURCE_ATTRIBUTES nor OTEL_SERVICE_NAME. No chart file
changes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): the lock is compared with the pull request's base, and the webhook selectors, the plugin directory and an unreadable environment are held too
Review round 1.
- scripts/check-harness-contract-bump.sh compares the lock with the one at
the pull request's base (a step of the chart-version-bump job): a promise
removed together with its lock line, or changed with its digest recomputed,
passes the hermetic test and fails here unless the version is higher than
at the base. Hermetic test with a fake `git show`; it also holds ci.yaml to
running the script with the base sha.
- pod.label.managed is held to the label the controller's two pod webhooks
select by in the aether chart's render. The configuration has no name in
the contract: it is the render's one object of its kind.
- csi.driver is held to the kubelet plugin directory the uds-csi DaemonSet
mounts from the host as well as to the CSIDriver object's name.
- A container whose code sets a resource attribute fails closed when its
environment cannot be read: OTEL_RESOURCE_ATTRIBUTES from valueFrom, or
any envFrom.
- README: which changes the hermetic test cannot see, said exactly.
No chart file changes; the contract's version stays 1.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a webhook is held to the label's value as well as its key, and the base comparison refuses a bump by more than one
Review round 2.
- A webhook selector on the mesh label with a value other than "true"
matches nothing the mesh manages: the check compares key and value.
- With the contract and the lock moved together, only the base can tell a
bump by two from a bump by one: check-harness-contract-bump.sh refuses it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a webhook is held to the selector it selects with, not to either
Review round 3. The namespace selector and the object selector of a webhook
are not interchangeable: one selects the namespaces whose pods the webhook
sees, the other the pods. `webhooks` now says which of the two selects by the
entry, and the check reads that one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a webhook's selector is exactly the one label, and the plugin directory is held to its mount as well as its host path
Review round 4.
- Kubernetes requires everything a selector lists. A second matchLabels pair
or any matchExpressions beside the mesh label narrows what a fail-open
webhook sees, down to nothing: the selector the contract names must be the
one pair and nothing else.
- The uds-csi plugin writes its socket under the directory named after the
driver, in its own filesystem. The hostPath volume that ends with that
directory must be mounted by a container (not an init container) at a path
that ends the same way.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* fix(ci): the base comparison of the contract's lock fails when the base cannot be read
Review round 5. `git show` failing for any reason read as "the base has no
lock" and passed, so a base the checkout lacks (a shallow clone) switched the
check off. The base must be a commit that is here; only a base that is here
and has no lock at that path has nothing to compare; a lock that is there and
cannot be read fails. README: one sentence completed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* wip: round 6
* test(contract): the plugin directory is mounted by a listed container, a webhook's other selector is empty, and the service.name rule says what #1562 left true
Review round 6, and main merged in.
- A sidecar that mounts the plugin directory does not put the plugin's socket
in it: only the containers the contract lists for the object count.
- A webhook's two selectors are required together: the one the contract does
not name must be empty.
- Since #1562 a service.name in OTEL_RESOURCE_ATTRIBUTES no longer renames the
prober; OTEL_SERVICE_NAME still does. Both stay refused in the render; the
comments, the README and the failure message say which one matters.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* docs(contract): a change of meaning made only in notes and behaviour is a bump the lock cannot see, and the README says so
The rule table listed `notes` as free to edit. Rewording is; changing what an
entry means there (what a gauge counts, when a series is absent) is a version
bump that neither check asks for.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): every promise has a name of its own in the lock, and the base comparison reads names with a quote in them
Review round 7.
- A promise's name is words joined by spaces, so an id of several words could
collide with another entry's key: an id is one word, without spaces, quotes
or backslashes. And a contract that says the same thing twice (a field, a
component, a container or a host path listed twice) does not load: two
promises under one name are one line of the lock.
- The lock writes names with Go's %q; the script's pattern for a promise line
now accepts the escapes, so such a line takes part in the comparison.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): the plugin directory is held whole, under the kubelet root the plugin is run with
Review round 9. A host path held by its end passes with the volume and the
mount under any root, and the kubelet reads only its own. A pattern that
starts with `<arg:FLAG>` is the whole path under the value a listed container
is run with for that flag: the pod has a hostPath volume of exactly that path
and that container mounts it at exactly that path. The uds-csi object uses
`<arg:--kubelet-root>/plugins/<csi.driver>`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a flag the contract holds may not be given twice
Review round 10. A Go program runs with the last of a repeated flag, so the
right value followed by another passed: the first was read. Every flag the
contract holds (a container's `args`, the root of a host path) fails when the
render gives it more than once, whatever the values.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a tie to another entry cannot be replaced by a literal unnoticed
Review round 11. `name_from: csi.driver` written out as `name: csi.aether.io`
is the same promise to a harness, so the lock did not move, and the entry was
still referred to by the plugin's host path, so the holder checks passed. The
next rename of the driver would then have reached the plugin's directory and
left the CSIDriver object behind.
Contract.Ties lists every reference under `charts` to another entry
(name_from, args, resource_attributes, code_resource_attributes, host_paths,
webhooks with the selector each is held by), and TestTies holds the
checked-in contract to that list in both directions. A tie is not in the lock:
adding or removing one needs no version bump, only the line in the list.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): the lock is held to the form the test prints, which is the form the base comparison reads
Review round 12. The base comparison reads the lock one line at a time; the
hermetic test parsed it as YAML. The same promises as an inline map, or
indented otherwise, passed the test and would have read at a later pull
request's base as no promise at all. TestVersionBump now also requires the
file to be byte for byte the one Contract.Lock writes, and prints it when it
is not.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a promise made through a tie is named in the lock by what the tie comes to, not by the entry it names
Review round 13. The lock line of a host path was named by its pattern, and
those of a container's resource attributes by the id of the entry: moving the
tie to another entry that says the same removed a line and asked for a
version bump, though nothing a harness reads had changed and TestTies already
holds which entry a tie names. A host path is now named by the path it comes
to and an attribute by its key, as names, arguments and webhook labels
already were. The same tie coming to something else is still a bump. The
lock is regenerated: four lines renamed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* Merge origin/main: the lock gains the entry main added, and the README says who holds the charts' own mesh names
main added `agent.xds_acked_tls_clusters_unknown` to the contract. A new
entry needs no version bump and a line in the lock per promise: TestVersionBump
failed on the merge and printed the four lines, which are added. That failure
was also the first on a pull request's merge ref: `test` went red on the
previous head for exactly this reason.
main also holds the prober and udsecho charts' mesh names to the Go constants
(helm_mesh_names_test, #1595), so the README no longer lists them as
compared with nothing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
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
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.
Four of the chart issues filed on 2026-10-09, in one change.
Chart versions: aether 2.4.25 → 2.4.26, prober 1.0.7 → 1.0.8, udsecho 2.0.3 → 2.0.4. The external-harness contract is not changed.
Closes #1561
Closes #1582
Closes #1588
Closes #1589
Not in this change: #1560 (taken out after review, see "Taken out") and #1544 (see "Left out").
What changes
#1561: the node proxy's Envoy stats are
service.name=aether-proxyWhere the backend maps
service.nametojob(Prometheus's OTLP ingestion does by itself; another backend may need the mapping made), their series gainjob="aether-proxy". Set in the bootstrap (aether-proxy-config), as a second resource detector of the OTLP stats sink, and not through the container's environment:service.nameinOTEL_RESOURCE_ATTRIBUTESno longer renames it, butOTEL_SERVICE_NAMEstill does, so nothing is added to the environment. The proxy DaemonSet's pod template renders exactly as onmain, so the environment the supervisor builds its resource from is unchanged; a guard test pins every workload'sOTEL_RESOURCE_ATTRIBUTESvalue and another fails on anyname: OTEL_SERVICE_NAMEentry in the render.service.nameinOTEL_RESOURCE_ATTRIBUTES. This is measured: a new test starts the pinned Envoy with the chart's detector block andOTEL_RESOURCE_ATTRIBUTES=service.name=from-the-environment,k8s.node.name=node-1, receives its OTLP export and reads the resource. With the two detectors swapped it readsfrom-the-environment.stats_config, the exclusion list,cluster.health_*) are not touched.envoy --mode validatewith the pinned binary accepts the whole rendered bootstrap, before and after. I did not check the previous proxy image.#1589: the prober and udsecho charts' mesh names are held to the code
Both charts write
aether.io/managed, theendpoint.aether.io/*andconfig.aether.io/upstreamsannotations and thecsi.aether.iovolume driver as literals. Each chart gets ahelm_mesh_names_test(new,//bazel/helm:defs.bzl): its BUILD file lists what each workload's pod carries by symbol (upstreams,endpoint_port=8080,uds_socket=…,csi), and the checker (//bazel/helm/meshnames) renders the packaged chart and compares every workload's pod template withcommon/constants/labels,common/constants/annotationsandcommon/udspath.CSIDriver. The comparison is closed: a label or annotation in anaether.ionamespace that is not listed for the workload fails it, and so does a workload that is not listed, or a listed one that is not rendered.config.aether.io/upstreamshas its Go constant inagent/internal/xds/xdsconst, which nothing outsideagent/may import.xdsconst_testalready holds that constant to the contract entrypod.annotation.upstreams; the checker holds the charts to the same entry.It is a test rule with a Go checker, as
helm_contract_testis, and not ago_test: ago_testwith a chart in itsdatacannot be analysed by theracejob (a chart's images are linked with cgo off).//bazel/helm/renderis the small helper. It never prints a render, and when helm fails it shows the exit status only: nothing helm wrote, on either stream.The templates of these two charts are unchanged: the renders differ from
mainonly inhelm.sh/chart.#1582, #1588: documentation
docs/runbook.md, "Chart 2.4.24" (and the Namespace case of "Chart 2.4.25"): after a failedhelm rollbackthe new revision isfailed, the revision that was current issuperseded, and none isdeployed;helm statusprintsSTATUS: failed. The recovery line no longer says "the last deployed revision". The sentence about a failed upgrade leaving the previous revisiondeployedis kept: it is about a different Helm path, and I did not re-measure it.docs/runbook.md(new "Pinning a released chart"),charts/README.md,docs/getting-started.md: the bare<X.Y.Z>tag of the aether chart is rewritten by every commit that keeps the version, so a pin names the commit-suffixed tag or the digest alone, never the bare tag with a digest.docs/observability/metric-labels.md: the node proxy'sservice.name, and a new section, "A label that holds the pod name", with what such a label does to the shipped rules across a roll.Rendered, before and after
helm template release-name <chart>.tgz -n aether-system --set controller.webhook.spire=true, plus the options named.helm.sh/chart: aether-2.4.25→aether-2.4.26on object metadata (never in a pod template) aside:main, and so is theenvoy.yamlofConfigMap/aether-proxy-config(the object's ownhelm.sh/chartlabel changes like every other object's; it is not mounted).otel.enabled=true,otel.endpoint=…: theenvoy.yamlofConfigMap/aether-proxy-configgains the detector (and the comment above it, which is part of the data). Every workload's pod template is identical tomain.resource_detectors: - name: envoy.tracers.opentelemetry.resource_detectors.environment typed_config: "@type": type.googleapis.com/envoy.extensions.tracers.opentelemetry.resource_detectors.v3.EnvironmentResourceDetectorConfig + - name: envoy.tracers.opentelemetry.resource_detectors.static_config + typed_config: + "@type": type.googleapis.com/envoy.extensions.tracers.opentelemetry.resource_detectors.v3.StaticConfigResourceDetectorConfig + attributes: + service.name: aether-proxy prefix: envoyauthzCanary.enabled=true) and udsecho (default): onlyhelm.sh/chartchanges.Upgrade
Measured for this section: the renders above; the pinned Envoy's export (the new test); the queries, with promtool over synthetic series. Not measured: the upgrade on a cluster. What the supervisor does with a changed bootstrap is the runbook's existing description ("Which workloads a chart upgrade rolls").
What the chart rolls on the upgrade to aether 2.4.26: nothing. No Deployment's and no DaemonSet's pod template changes. (A release built from a newer commit can still carry a new image digest, which rolls that workload as on any upgrade.)
The node proxy, when
otel.endpointis set: no pod is replaced, but the mountedenvoy.yamlchanges, and the supervisor watches it (--watch-config) and hot-restarts Envoy in place. Per the runbook that happens on each node when its kubelet delivers the file, on every node independently, not one node at a time as in a DaemonSet roll. Earlier bootstrap changes in 2.4.x charts shipped the same way, so this is a patch release; it is still a hot restart on every node close together, so check the per-node headroom of "Sizing nodes for a proxy hot restart" first. Withotel.endpointemptyenvoy.yamlis unchanged and nothing restarts for it. A rollback changesenvoy.yamlback, so expect the same again.What changes in stored metrics, where the backend maps
service.nametojob:job="aether-proxy"appears on the node proxy's Envoy series (envoy_*,aether_requests_total), from each node's restart on. Each becomes a new series.jobcounts both: with promtool,sum by (node, aether_cluster) (envoy_cluster_membership_healthy)over 4 hosts read 8 two minutes after the restart and 4 again once the five minutes had passed. An alert of your own with a threshold on such a sum can fire in that window. The label changes once, so this is an effect of this upgrade (and of a rollback across it), not of later proxy rolls.{job="aether-proxy"}does not double;{job!="aether-edge-proxy"}selects the node proxy before and after, and reads both series inside the five minutes;{job=""}matches nothing once the old series have left the lookback.rate()window that spans the restart sees one series end and one start.aether_supervisor_*should stayjob="aether-proxy-supervisor"; the query below checks it.docs/observability/*.yml) select on none of the node proxy's Envoy series; their promtool tests pass unchanged.To measure after a deploy (also in the runbook, "Chart 2.4.26"):
prober 1.0.8, udsecho 2.0.4: no template changes.
Tests
Red first, against the unchanged code:
//charts/aether:aether_proxy_stats_service_name_test: the bootstrap block.//agent/test/envoy_validate:envoy_validate_test(TestNodeProxyStatsSinkServiceName):expected "aether-proxy", actual "from-the-environment"; the same with the detectors in the wrong order.//bazel/helm/render:render_test(TestTemplateWithholdsWhatHelmWroteWhenItFails): a stand-in helm that writes a Secret and a key-shaped block to both streams and exits 3; red while the error still carried helm's stderr.Guards, green before and after, each seen to fail under a mutation:
//charts/aether:aether_resource_attributes_unchanged_test(every workload'sOTEL_RESOURCE_ATTRIBUTES),:aether_no_otel_service_name_env_test,:aether_proxy_stats_sink_off_test(the off switch: nootel.endpoint, no sink).//charts/prober:prober_mesh_names_test,//charts/udsecho:udsecho_mesh_names_test: green on the unchanged charts, since the literals agree with the constants today. Red when a template literal is misspelled (the label, the CSI driver) and when a Go constant is renamed (annotations.AnnotationEndpointPort);//bazel/helm/meshnames:meshnames_testcovers each kind of drift on a fixture. No mutation is left in the tree.bazel test //charts/... //test/harnesscontract/... //bazel/helm/... //agent/test/envoy_validate/... //:all, the newgo_tests under--config=race, the lint build over the touched packages,make format-check,scripts/check-chart-version-bump.sh.No cluster was used: template tests, promtool, and one local Envoy process.
Taken out: #1560
The first version of this change set
service.instance.id=$(POD_NAME)on the registrar, the controller and the edge control plane, so that Prometheus'sinstancelabel would keep their replicas apart. Review pointed out what a pod-name label does across a roll, and promtool against the shipped rules confirms it: a pushed series has no staleness marker, so a terminated pod's last sample stays in the 5-minute lookback beside its replacement's.AetherMeshClusterUnpinned(for: 3m)AetherMeshClusterPinPending(for: 5m)AetherRegistrarSnapshotDivergedcount(aether_registrar_snapshot_content_hash)So for the registrar rule the label is the better state and for the pin rules the worse one, and the fix that makes it right for both is in the rules (select fresh series only), which operators who already installed them would have to update in step with the chart. The chart cannot enforce that, so the attribute is out of this change and #1560 stays open with this table. The same effect exists today for anyone whose pipeline makes a pod label from
k8s.pod.name, whichmetric-labels.mdnow says.Left out: #1544
The annotation was written and tested (
aether.io/harness-contract-versionon the agent DaemonSet's own metadata, the value read with.Files.Getfrom a one-line file a genrule extracts from the contract at package time). It does not build://test/harnesscontract:external-harness.yamlis not visible outside its package, and this change was not to touchtest/harnesscontract/. The public Go library that embeds the file istestonly, which the published chart targets cannot depend on. It needs one line there:The design and two things to carry into that change are in a comment on #1544.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr