Repository navigation
docs(soak): raw-counter grading rule, fixed gate selectors, set-based #1009 rule, L4-log anyport gate, per-client DC baseline - #1098
Merged
Conversation
…1009 rule, L4-log anyport gate, per-client DC baseline - #1088: every gate selector audited against live Prometheus/VictoriaLogs. `node` (not k8s_node_name) on supervisor/SPIRE/agent series, CNI labels aether_cni_operation/aether_cni_result, `_total` on connect_fail/rq_5xx/UDP datagram names, edge proxy kept out of active_clusters, agent pods in aether-system. Access-log queries no longer start at _stream:{service.name=...} (those records have an empty stream, so the prefix matched nothing), and the #1054 503 UC query keys on `@`, not on `quic:`, which upstream_cluster never carries. Prober gate = raw counters at T0 and T0+8h with a success control; never a bare increase(). - #1089: benign-DC size condition is a per-authority SET derived from the run's own 2xx lines, with a one-pass LogsQL join. - #1095: anyport gate = L4 access-log anyport connections to DECLARED ports; the seed counter is a pre-roll sanity check only. Finds #1094. - #1075: prober/uds-client/authz-canary continuous benign DC graded as a per-client baseline keyed on the caller ServiceAccount. 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
Oct 1, 2026
…-csi mid-soak (#1108, #1109) (#1112) #1108: k6-mesh-soak.js sends UDS_SHARE = 5% of its constant-arrival-rate iterations to uds-echo (annotation delivery) and uds-cr-echo (EndpointPolicy delivery), split evenly; the total rate is unchanged. The per-class and per-target failure breakdown covers the new authorities (declared key space 281 -> 297). k6-runner.yaml pins both as upstreams. README gate: 0 non-benign access-log lines on the UDS authorities against a clean-200 control, queries starting at log_name: (#1098), with benign-DC sizes derived per run (#1089). #1109: churn.sh gains a UDS-CSI step at T0+162 and T0+270 (clear of the TRIPLE, the new-SA steps, every proxy/agent roll and the no-roll window). Each step: - rollout-restarts ds/aether-uds-csi; - deletes a uds-echo pod (step 2: a uds-cr-echo pod) as soon as that pod's node's plugin is terminating; - waits for the DaemonSet rollout, the pod to finish Terminating and its replacement to become Ready; - checks that CSINode lists csi.aether.io on every plugin node and counts FailedMount events during the step and in the 30s after it; - logs one ROLLED/FAILED line. A FAILED step is a gate finding and does not abort the run, like FAILED newsa. --preflight now checks the DaemonSet is present and patchable and that the victims have a Running pod to delete. --uds-csi-once runs a single step. SOAK_UDSCSI=0 opts out. The tallies become 33 rolls and 35 ROLLED lines. README gates: both roll lines ROLLED with csinode=n/n and failedmount_after=0, and aether_agent_uds_resolve_failures_total unchanged (raw T0 vs T0+8h per node x reason, plus max_over_time across the agent rolls). Closes #1108 Closes #1109 Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr Co-authored-by: Claude Fable 5.1 <[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
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.
Docs only:
e2e/soak/README.mdanddocs/runbook.md. There is no code or chart change, and the prober is not touched.Closes #1088
Closes #1089
Closes #1095
Closes #1075
What changed
aether_supervisor_child_silent_totalandaether_agent_spire_svid_updates_totalare grouped bynode. Noaether_*series carriesk8s_node_name(its label-values list is empty). The CNI labels areaether_cni_operationandaether_cni_result.envoy_cluster_upstream_cx_connect_fail_totalandenvoy_cluster_upstream_rq_5xx_totalneed their_totalsuffix. The UDP datagram selectors were bare regexes, not valid PromQL; they are now{__name__=~"…_total"}.envoy_cluster_manager_active_clustersexcludes the edge proxy (job!="aether-edge-proxy"). The agent loops use-n aether-system, because theaethernamespace does not exist.max_over_time._streamand noservice.name. Every query that started_stream:{service.name="aether-proxy"} AND log_name:…matched 0 records. That covered the L4 attribution query, wedge gate (b), the QUIC: 1–2 requests per proxy roll fail with a stateless reset from the successor (upstream_reset {QUIC_PUBLIC_RESET|FROM_PEER|Received_stateless_reset}) when the parent exits with h3 connections still carrying traffic #1054 stateless-reset,503 UCand PEER_GOING_AWAY queries, and three runbook queries. They now start atlog_name:.503 UCquery keyed on a name that never appears. It filtered onupstream_cluster:~"^quic:", butupstream_clusterholds the twin stat key<ns>/<svc>@<ns>/<sa>and never containsquic:. It now filters on@.k8s_node_name→nodefix on 9 queries, and the 3_streamaccess-log queries.or x*0.unless offset.increase().uniq_values).count() if). A row withdc>0, clean=0is not benign.source_spiffe_id).Evidence
Every rewritten query was run over 2026-10-01T00:40:30Z → 08:40:30Z (T0 → T0+8h), one line each:
#1088: prober gate
sum by (tier,target,result)at T0 and T0+8h, liveness: success 79,475→799,462 (+719,987).timeoutwas absent at T0 and is 1 at T0+8h (+1).connection_error18→18 (+0).timeout: authoritative 13→20 (+7), forwarded 13→24 (+11). Success: +719,978 and +719,976.x - (x offset 8h or x*0): liveness timeout 1, mesh_dns timeout 7 / 11, success 719,987 / 719,978 / 719,976. This matches the two-instant diff.increase(...[8h])for comparison: liveness timeout 0, mesh_dns timeout 6.02 / 8.02. This reproduces the bug.x unless x offset 8h: 5 series born in the window. w04 prober-nnj4d: liveness timeout 1, auth 5, fwd 6. w02 jggh9: fwd 1. w03 7msvw: fwd 1.AETHER_PROBE_FAILline count: 19, which equals 1 + 7 + 11.rate(success[3m])at T0+8h: liveness 25.01/s, mesh_dns 50.01/s.#1088: label and name fixes
sum by (node) (increase(aether_supervisor_child_silent_total[8h])): 5 rows, all 0. The oldby (k8s_node_name)returns 1 label-less row.sum by (node) (increase(aether_agent_spire_svid_updates_total{pod,rotated}[8h])): 5 rows, 44.1–48.2.max_over_time(aether_cni_operations_total{aether_cni_operation="capture_divert",aether_cni_result="error"}[8h]): no series.successon all 5 nodes. The old{operation="add"}returns nothing.{__name__=~"envoy_udp_capture_udp_.+_downstream_sess_rx_datagrams_total"}: 5 series, one per dialer pod.envoy_cluster_manager_active_clusters{job!="aether-edge-proxy"}: 5 series (105–111). Unscoped it returns 7, including 2 edge series.envoy_cluster_upstream_cx_connect_fail_total{@}: present, +86 over 8h. The_total-less name has no series ever.max_over_time(envoy_cluster_upstream_rq_5xx_total{@}[8h]):svc-3@defaulton w04 = 3. Those are the quic: with the source agent restarting, in-flight QUIC requests to a terminating endpoint hang the full 15 s route timeout (504 UT) instead of failing fast #1087 504 UT lines. The_total-less name has no series ever.max_over_time(odcds_init_fetch_timeout_total / quic_twin_refused_total / init_fetch_timeout_total{@} [8h]) > 0: no series. All three names exist in Prometheus (metric-names list since 09-20, except twin_refused, whose OTel nameaether.agent.quic.twin.refusedwas confirmed inagent/internal/xds/server/odcds.go).envoy_cluster_upstream_rq_total{aether_cluster=~"aether-test/[^@]*"}: no series. h2 kin carry no traffic since feat(038): east-west QUIC is unconditional — the proving allow-list is gone #979, and the README now says so.count by (node)of twins: w01 10, w02–w05 7 each. Withincrease(...)>0over 8h: 12/9/7/7/7, because the new-SA twins were removed.tcp_aether-test/tcp-echo+47,066 andtcp_aether-test/mixed-svc_9000+23,531.max_over_time(ssl_fail_verify_san_total{tcp_}[8h]): no series.envoy_tcp_in_tcp_*series exist on w03, w04 and w05.#1088: access-log stream fix
_stream:{service.name="aether-proxy"} AND log_name:aether_access_logs: 0.log_name:aether_access_logs: 20,289,652, with_stream{}._stream:{service.name="aether-proxy"} AND log_name:aether_l4_access_logs: 0. Without the prefix: 70,593, all with flags-.upstream_cluster:~"^quic:": 0 of 20,289,652 access-log records.upstream_cluster:~"@", source lines: 10,146,248.response_timeoutreturns 5, the 504 UT lines.503 UCon@: 0._msg:"starting workers": 30.hot-restart child silent: 0. Watchdog, epochs-silent and drain-deadline lines: 0.-and 1DC.#1089: clean-size SET (query 1)
All of these match GRADE.md.
#1089: other queries
clean> 0, so every 200/DC size is in its set.response_code 0,bytes_sent 0. Split: echo.aether.internal 3, svc.cluster.local 4. These are the prober's own 2 s timeouts.#1095: anyport
10.96.11.228:9000,cap_tcp_anyport_tcp:tcp-echo…, cx=1. The first/last stage dates it 05:41:55.436Z. This is capture: a connection to a DECLARED port landed on the anyport floor chain 12 s after an agent restart (blocks dropping anyport, proposal 037 Phase 4) #1094.count(...)at T0+8h is 0.kubectl get svc tcp-echogives the annotationaether.io/port: "9000", plus mesh-tcp 18082.#1075: per-client DC (query 4)
Go-http-client/1.1): echo.aether.internal 20,088, echo.svc.cluster.local 20,821. Per full hour 01–07Z: 4,821–5,259.default): 360, all inside the 6 proxy-roll minute brackets (01:40–42, 02:16–18, 04:16–18, 04:52–54, 05:40–43, 06:16–18Z). New-SA: 1.Checks
make format: clean, no further changes.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...: Build completed successfully.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr