Skip to content

feat(038): east-west QUIC is unconditional — the proving allow-list is gone - #979

Merged
bpalermo merged 5 commits into
mainfrom
feat/quic-unconditional
Sep 29, 2026
Merged

bpalermo merged 5 commits into
mainfrom
feat/quic-unconditional

Conversation

@bpalermo

@bpalermo bpalermo commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

DRAFT — gated on the NEXT proving soak, result pending. The first proving soak (2026-09-27, rev242, svc-1/svc-2 allow-listed) did not pass. The prober passed, but k6 failed with 1,154 errors, 1,060 of them 503 NC at first use (#1008). Nothing here was deployed.

Status (2026-09-29): head 0f01a05

0f01a05, corrections. Proposal 038, the runbook, the soak README and a code comment no longer say the 2026-09-27 soak passed. They say the flip is gated on the next proving soak. The per-request cost baseline is now the same-build A/B from 2026-09-28: rev247, 300 rps, matched 80-min no-roll windows, Pyroscope fleet envoy cores. It measured h3/h2 = 1.18× (10.5 ms vs 8.9 ms): #1021, "Same-revision measurement, 2026-09-28". The ≤ 1.5× cost gate is passed. The earlier 3.3× compared two revisions (rev239 h2 vs rev242 QUIC) and is kept only as superseded history.

For the soak grader: risks of the unconditional flip

  1. Twin count is per used pair. Arms go to every local SA × every eligible destination, but a twin is built only per dialled pair. The ceiling on talos-main is 8–14 SAs × ~19 services ≈ 150–270 per node, and the expected count is about one twin per (caller SA, destination it calls) per node. The proving runs, with 2 destinations, showed ~24 per node before the 1 h prune and ~10 fleet-wide after it. Expect dozens per node now. Grade quic_clusters == observed_pairs and P ≪ I × S. The quic: demand-scoped twins re-admit every pair from Envoy's stream-reset re-subscriptions — observed_pairs == SAs × destinations on all talos nodes after the #1032 deploy #1033 red pattern, observed_pairs a whole multiple of local_identities on every node, gets harder to tell apart from real use.
  2. First-request on-demand fetch, now on every service. Each new pair's first request pauses for an ODCDS fetch (~20 ms). If the agent is down, or the twin is refused or slow, that request gets 503 NC at the 2 s on_demand timeout. That exposure used to cover 2 destinations and now covers all of them, and it is the QUIC: a twin cluster added after its base is subscribed never receives EDS (delta WatchMap dedup on the shared EDS name) — 15 s of 503/NC for every new ServiceAccount on a node #1008 class that failed the first proving soak. Gates: envoy_cluster_manager_odcds_init_fetch_timeout_total = 0, aether_agent_quic_twin_refused_total = 0, sum(envoy_cluster_init_fetch_timeout_total{aether_cluster=~".*@.*"}) = 0, and awaiting_client_cert returning to 0.
  3. Rollback is coarse. There is no per-destination or per-node off switch. The only rollback is the whole chart to 1.0.11, the last chart with the allow-list, which also reverts everything else in 1.0.12. Use helm get values -o yaml then -f, never --reuse-values.
  4. Gate list for the soak: prober SLI; k6 reconciliation, with benign DC excluded per QUIC: twins log 200/DC (~12 per proxy roll) where h2 logs a clean response; not client-visible per the k6 join #1009; the three zero-counters in item 2; the fan-out line (quic_clusters == observed_pairs, flat outside roll brackets); cx_connect_fail on @ series; the new-SA step (QUIC: a twin cluster added after its base is subscribed never receives EDS (delta WatchMap dedup on the shared EDS name) — 15 s of 503/NC for every new ServiceAccount on a node #1008 class); SVID rotation; the L4 gates; and the per-request cost gate at ≤ 1.5× against the 1.18× baseline.

9bd35db, merge with main (36 commits).

Merge commit, no rebase. Everything main added since the branch point is kept. It now works without the allow-list:

Budget, restated for main

Twins are observed pairs, not SAs × services. The ceiling on talos-main is 8–14 SAs × ~19 dependency-set services ≈ 150–270 per node. The expected count is about one per (caller SA, destination it actually calls) per node: the k6 loaders, the prober and the dialers. The proving runs had 2 destinations and ~10 fleet-wide; expect a multiple of that, not the ceiling. The soak README gate P ≪ I × S is restated with S = eligible dependency-set services.


Decision 2026-09-26: "we don't want opt-in for QUIC, if we prove it, drop the flag". This removes the per-destination allow-list #956 shipped as a proving gate.

What changed

  • Agent. --east-west-quic-services, Config.EastWestQUICServices, SnapshotCache.SetEastWestQUICServices / quicServices / quicServicesSnapshot and the dependency-set forcing in populateStaticDepsLocked are gone. quicFanout has no services set: twinsFor builds twins for every entry with key == entry.service, mtlsCluster != nil, cluster != nil × every local workload identity. Everything else is unchanged: QUICClusterFrom, <port>.<authority> SNI, per-source alt_stat_name, selection on out_http and cap_http through the same predicate (quicArmsByService), default entry only (never per-port/alias), the identity-readiness gate.
  • Waypointed services never get a twin — this is new code, not a kept behaviour. The brief assumed the cache already excluded remote-cluster endpoints; it did not. The allow-list was the only thing keeping them off QUIC. A twin clones the h2 cluster's EDS resource but drops the transport-socket matcher (it has one static QUIC socket), so a waypoint-tagged endpoint would be dialled at the peer node's tunnel over UDP with the direct-path SNI, and the tunnel has no QUIC leg (038 row 4d, not built). New proxy.HasWaypointEndpoint(cla) (reads the waypoint envoy.lb tag the EDS rewrite stamps). With the waypoint on, a service with any such endpoint stays h2 as a whole. With it off (the default) the check is skipped.
  • Budget log. east-west QUIC fan-out quic_clusters=N local_identities=I. I dropped allow_listed_services. A dependency-set size would be misleading because waypointed and not-yet-identity-ready services get no twins. N / I is the number of services that got twins.
  • Chart 0.95.4 (now 1.0.12 after the merge). agent.eastWestQuicServices and its template range are removed. values.yaml says QUIC has no value and states the mesh-wide SPIRE prerequisite.
  • Docs. configuration.md: both rows removed, and a SPIRE paragraph now carries the mesh-wide DNS-SAN requirement. Runbook "East-west QUIC" is rewritten: it is unconditional, how to verify it, the budget, the UDP:18008 network prerequisite, and the escape hatch. getting-started.md §11 bullet updated. Soak README "The QUIC leg" now grades every service with no --set. 038: rows 4b/4c, Q5, the Phase 4 heading and the soak note.

Cluster budget

Twins = local ServiceAccounts × services in the node's dependency set, minus waypointed ones. On talos-main that is 8–14 SAs × ~19 services ≈ 150–270 extra clusters per node. Each is an EDS clone of the h2 cluster (no second load assignment). A new SA on a node re-warms only its own twins (#842's cost, bounded by local SAs).

SPIRE requirement (now mesh-wide)

Every workload SVID must carry <sa>.<ns>.<meshDomain> and *.<sa>.<ns>.<meshDomain> (dnsNameTemplates on the workloads' ClusterSPIFFEID) until envoyproxy/envoy#47740 is in a plain proxy pin. The pin since chart 0.95.3 carries #47740 as a patch (#972), so on today's proxy a missing SAN would not actually fail. The carry is transitional and a pin bump can drop it, so the docs keep the requirement (per #957's last two comments). Rollout order on talos: SPIRE dnsNameTemplates first (GitOps k8s-talos-main#126), wait for envoy_sds_*_version to move on every node, then this chart. The upgrade turns QUIC on for every destination at once.

Escape hatch (no new flag)

If UDP:18008 is blocked between nodes, or HTTP/3 fails mesh-wide, every mesh call 503s. There is no per-destination off switch any more. The runbook gives two steps, in order:

  1. Fix the path: open UDP:18008, or re-issue the SVIDs with the SANs.
  2. Roll the chart back to 1.0.11 (the last chart with the allow-list; this was "≤ 0.95.3" before the merge with main), whose default empty allow-list is h2 everywhere, with no proxy roll. Use helm get values -o yaml → -f, never --reuse-values.

The runbook also says explicitly that spire.enabled=false is not an escape hatch.

e2e: e2e/eastwest-quic.sh

  • The EASTWEST_QUIC knob and the h2only destination / phase E3 are gone. E1 asserts a twin for every destination × source. E0/E2/E4/E4b/E5 are unchanged; the E4 weighted route still uses assert_h2.
  • New negative control, QUIC_DNS_SANS=off. The workloads' ClusterSPIFFEID is applied without dnsNameTemplates. Because the pinned proxy carries #47740, dropping the SANs alone would come out green. So off also splices a bootstrap runtime layer setting envoy.reloadable_features.quic_hostname_check_deferred_to_explicit_san_match: false into the temp chart copy. This is the mechanism test(mtlspool): aether#957 path-A validation — URI-only SVID + SNI "18008" handshakes once envoy#47740 is in the pin #973's TestQUICPathAGuardOffRestoresHostnameCheck validated, and it restores the plain-pin hostname check. up then asserts the guard reads false in the node proxy's admin /runtime and fails otherwise, so the red can't be vacuous. It also raises quic:info / pool:debug so the verdict is logged.
  • Expected: verify goes red at E2 with the twins present. The QUIC handshake fails closed with 503s, the twin's cx_connect_fail climbs, and the proxy log shows Leaf certificate doesn't match hostname: <port>.<sa>.<ns>.<domain>. dump_state now prints the SAN/guard state and greps match hostname.
  • CI job header and the verify step name in .github/workflows/e2e.yaml are updated. The red run is documented in the header, not run in CI (same as before).

Gates, each seen red

gate red state observed
TestQUICFanoutPublishesPerSourceTwins (rewritten; demo/other is the unlisted service that now gets twins — the anti-vacuity case) with the old predicate reinstated in twinsFor (if entry.service != "demo/echo" { return nil, nil }, i.e. only the formerly-listed service): missing twin quic:other.demo.aether.internal@demo/source-a — the dump shows only quic:echo…@demo/source-{a,b}
TestQUICFanoutSkipsWaypointedServices (new) with the waypoint check disabled: a waypointed service must never get a twin (twins quic:spread.demo.aether.internal@demo/source-{a,b} present) and vhost spread.demo.aether.internal selects for the waypointed service ×2 (both route tables)
TestNoNetnsPathInServiceClusterBytes red on this change before the test was adapted: service cluster quic:svc-2.aether-test.aether.internal@aether-test/svc-5 still embeds per-node state ("spiffe://…/sa/svc-5"). Twins now exist for every service, and by design (Q2a) a twin presents its own source's SVID. The scan now allows exactly the SPIFFE ID named by the twin's own @<ns>/<sa> suffix; netns paths and every other identity still fail. It also requires ≥1 twin, so the exception can't be vacuous
TestQUICFanoutWaitsForIdentity (new) not seen red: it only records the existing identity-readiness gate (no twin and no arms before the node SVID)
e2e negative control not run; see below

Local, all green: bazel test //agent/internal/xds/... //test/envoy_validate/... //charts/aether/... //agent/internal/cmd/...; --config=race //agent/internal/xds/cache:all; bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //agent/... //e2e/... //charts/.... The shellcheck aspect demonstrably lints e2e/eastwest-quic.sh: it flagged an SC2015 in this change, now fixed. The TestObservedUpstreamsStore_* timing tests (#955) failed once under load and passed on the next run. gazelle: no BUILD changes. The e2e's chart splice and both ClusterSPIFFEID renders were checked offline with helm template + a YAML parse. With off, the bootstrap has layered_runtime and keeps dynamic_resources, and the ClusterSPIFFEID has no dnsNameTemplates. With on, there is no runtime layer and both templates are present.

Not run

  • kind. An 8h soak is running on this workstation and kind create switches the kube context its churn driver uses. The e2e was checked only with bash -n, the shellcheck lint aspect and the offline render above. The green run and the QUIC_DNS_SANS=off red run happen after the soak.
  • No deploy, no helm/kubectl against any cluster.

Merge condition

The next proving soak grades PASS. The first one (2026-09-27) did not: k6 failed with 1,060 × 503 NC at first use (#1008). Then un-draft, run the kind e2e both ways (red at E2 with QUIC_DNS_SANS=off, then green), and merge on ci + proxy green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 2 commits September 27, 2026 15:16
…s gone

Decision 2026-09-26: no opt-in for QUIC; the per-destination allow-list
(--east-west-quic-services / agent.eastWestQuicServices) was a proving gate
for the first QUIC soak. Every default service entry in the node's dependency
set now gets one per-source quic: twin per local ServiceAccount, selected on
both out_http and cap_http, identity-ready only, never per-port/alias entries.

New: a service with any waypoint-tagged endpoint (proposal 019) never gets a
twin -- the twin shares the EDS resource but not the waypoint socket matcher,
and the tunnel has no QUIC leg. The cache did not exclude these before; the
allow-list was the only thing keeping them off QUIC.

The fan-out log line drops allow_listed_services. Chart 0.95.4 removes the
value; the SPIRE DNS-SAN prerequisite is documented as mesh-wide until
envoyproxy/envoy#47740 is in a plain pin. e2e/eastwest-quic.sh drops the
EASTWEST_QUIC knob and the h2only destination (E3) and gains a real negative
control, QUIC_DNS_SANS=off (no DNS SANs + the #47740 runtime guard off),
expected red at E2 with the aether#957 hostname-mismatch shape.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo

Copy link
Copy Markdown
Owner Author

Held after the rev242 proving soak (2026-09-27): prober SLI clean, but k6 regressed 47 → 1,154 failures, all from #1008 (a twin added after its base never receives EDS on the shared delta stream → 15 s of 503/NC for every new ServiceAccount on a node). Unconditional QUIC would turn that into a 15 s whole-mesh outage for every new workload's first pod per node. Merges only after #1008 is fixed and a re-run shows k6 back at the rev239 level with a mid-run new-SA pod start in the churn set. Also open against the drop: #1006 (CPU +33 %), #1009 (200/DC, not client-visible). Rebased onto main at e1d921e meanwhile.

bpalermo added a commit that referenced this pull request Sep 28, 2026
…t has dialled — on-demand CDS from the matcher's on_no_match, persisted in ObservedUpstreams (#1020) (#1032)

The agent built one `quic:` twin per local ServiceAccount for every
allow-listed destination up front: 118 on rev242, 2 of which ever carried a
request (#1006). Unconditional QUIC (#979) would make that ~650.

Now the selection route keeps one arm per local ServiceAccount, but the twin
behind an arm is built only once that pair dials. The first request resolves
through the matcher cluster-specifier to the missing twin; the HCM's
on_demand filter asks for it by name over ODCDS; the agent's observer
validates it (destination QUIC-enabled and in the dependency set, source a
local ServiceAccount), records the pair in ObservedUpstreams.quic_pairs and
publishes the twin with its own load assignment in one snapshot (#1008's
rule, now load-bearing for every twin). A refused or timed-out fetch is 503
NC at the on_demand timeout (2 s); Envoy has no per-route fallback to h2
from an on-demand miss. Pairs have no idle TTL; they are pruned when the
source leaves the node or the destination leaves the allow-list or the
dependency set.

- proxy: ParseQUICClusterName / IsQUICClusterName; OnDemandHTTPFilter
  exported for the live harnesses.
- cache: quicPairs (depMu, persisted), ObserveQUICTwin / RestoreQUICTwin,
  armsFor (all local SAs) vs twinsFor (observed pairs), snapshot-time prune.
- server: the ODCDS observer routes quic: names to the cache, re-admits held
  twins on a fresh stream, counts refusals (aether.agent.quic.twin.refused).
- api: ObservedUpstreams.quic_pairs (edition 2024, implicit presence).
- tests: cache gates (a)-(e), mtlspool live ODCDS gate + negative control,
  envoy_validate fixture with an unbuilt arm + on_demand, e2e E4c pair count.
- docs: 038 Phase 4b + Selection, runbook, soak README.


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
bpalermo and others added 2 commits September 29, 2026 16:44
Brings #979 up to date with 36 commits of main (demand-scoped twins #1020/#1032,
fresh-stream classifier #1033/#1035, dormant-pair ledger #1036/#1038, per-twin
EDS names #1012/#1029, the twin certificate gate #1051, the ODCDS always-answer
override, --east-west-quic-idle-timeout #1063, L4 stat keys #1043, access-log
timing #1048, the identity gate #1055, hot-restart knobs #1068 and the carried
Envoy patches) while keeping #979's intent: no allow-list, every destination in
the node's dependency set is QUIC-eligible.

Resolution:
- cache: quicServices / SetEastWestQUICServices removed. armsFor gives arms to
  every default, identity-ready, non-waypointed entry whose service is in the
  dependency set (the same rule recordQUICPair admits by, so no route names a
  twin the agent would refuse); twins stay demand-scoped. The
  destination_not_quic_enabled refusal/prune reason is gone.
- quicpairs: the dependency-set prune now waits for the pod set like the
  source prune does -- the allow-list used to force its destinations into the
  set, and without it the first snapshot after an agent restart dropped every
  restored pair (TestQUICDemandPairSurvivesAgentRestart was red).
- fan-out log: allow_listed_services dropped; observed_pairs and
  awaiting_client_cert kept.
- chart 1.0.12: eastWestQuicServices removed, eastWestQuicIdleTimeout and its
  parentShutdownTime check kept.
- e2e/eastwest-quic.sh: main's demand-scoped E1/E4c/E6 + #979's QUIC_DNS_SANS
  negative control; h2only/E3 removed; E6 dials quic-a and its idgate-* pairs
  are excluded from the driven-pair count. eastwest-quic-hotrestart.sh's h2
  control is now the weighted GAMMA split (the one h2-by-design path).
- tests, runbook, soak README, configuration.md, 038 rewritten for the
  unconditional state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…d on the next one; the h3/h2 cost baseline is the same-build 1.18x (#1021)

The 2026-09-27 proving soak (rev242) passed the prober but failed k6: 1,154
errors, 1,060 of them 503 NC at first use (#1008). Nothing in the PR may say it
passed. The ~3.3x per-request figure compared rev239 h2 with rev242 QUIC; the
same-build A/B of 2026-09-28 (rev247, 300 rps, matched 80-min no-roll windows)
measured 1.18x (10.5 ms vs 8.9 ms), under the <=1.5x gate:
#1021

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo marked this pull request as ready for review September 29, 2026 20:30
… ledger, #1072)

odcds.go: main's stream-scoped observeQUICTwin(streamID, name) with #979's
dependency-set wording. The new server/quic_generation_test.go fixture puts
demo/echo in the dependency set (RestoreDependency) instead of allow-listing
it; the soak new-SA step's wording notes both destinations are QUIC-eligible
since #979.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 33ff5e9 into main Sep 29, 2026
24 checks passed
@bpalermo
bpalermo deleted the feat/quic-unconditional branch September 29, 2026 20:46
bpalermo added a commit that referenced this pull request Sep 30, 2026
…holds — agent-only restarts no longer drop live twins an hour later (#1073) (#1076)

After a proxy restart every quic: twin reaches the new generation through
the wildcard, with no on-demand fetch and no subscription, and carries its
traffic that way. An agent-only roll then re-states those twins on the fresh
stream as held-only, and the fetch-window prune ("no on-demand fetch since
agent start") removed every one of them one window later: ~200 x 503 NC per
burst fleet-wide on the #979 proving soak, and an Envoy SIGBUS on one node
(#1074).

A pair is now kept on any evidence of use, ever: a live stream's on-demand
subscription (the ledger), or a confirmation -- fetched, re-subscribed, or
its twin re-stated as HELD on a fresh stream while the agent serves it
(ConfirmHeldQUICTwins). The confirmation is persisted
(ObservedQUICPair.demand_confirmed), so a node reboot, where the fresh proxy
uses twins it never fetches, does not prune them either. The window still
drains pairs no generation vouched for (the #1032 fan-out, pre-#1073 pairs
the proxy neither holds nor fetches).

Closes #1073


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Opus 5.5 <[email protected]>
bpalermo added a commit that referenced this pull request Sep 30, 2026
…C build (#979)

Every QUIC gate passed and #1073/#1074 did not recur; the run failed only on
liveness (9 / 719,984) from a hot-restart/agent-restart overlap (#1085).
First-use 503 NC burst and TRIPLE 504 UT filed as #1086 and #1087.

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 Sep 30, 2026
…ied patches, config tables, CLAUDE.md package map (#1081)

* docs: refresh after the QUIC/hot-restart work — rollback advice, carried patches, config tables, CLAUDE.md package map

- runbook: the 1.0.11 escape hatch rolls the proxy (a1bcf05 vs 71be75f) and
  drops the #1074 patch unless proxy.image + proxy.supervisor.image are
  pinned; #979 is merged (soak-verdict placeholder); #1069 named as the
  #1054 root cause; new #1074 SIGBUS entry (#1077, envoyproxy/envoy#47893,
  chart 1.0.13); stray "0 disables the prune" moved.
- configuration: proxy drainStrategy/skipParentStats/terminationGrace,
  agent eastWestQuicIdleTimeout + flag, controller identity-gate flags,
  identity-ready section, cni-install --otlp-pin-endpoint, edge/registrar
  rows (the shared edge Service has no `type`; overload is fixed_heap).
- CLAUDE.md/AGENTS.md: TPROXY capture, QUIC/xDS/supervisor/CNI packages,
  port map, carried patches; proxy-ready ships in the supervisor image.
- README, getting-started, e2e, proposals 037/038/040 status lines.

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

* docs: record the 2026-09-30 re-soak verdict for the unconditional-QUIC build (#979)

Every QUIC gate passed and #1073/#1074 did not recur; the run failed only on
liveness (9 / 719,984) from a hot-restart/agent-restart overlap (#1085).
First-use 503 NC burst and TRIPLE 504 UT filed as #1086 and #1087.

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

---------

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