Skip to content

test(e2e): east-west QUIC on kind — HTTP/3 per source identity, h2-only and GAMMA untouched, Q3 (038 PR 8) - #959

Merged
bpalermo merged 1 commit into
mainfrom
feat/quic-pr8-e2e
Sep 26, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/quic-pr8-e2e

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

PR 8 of proposal 038, after #956. Draft until it has run on kind — authored while the rev239 soak is live on this workstation (kind hijacks the churn driver's kube context, #951), so it has only passed bash -n, the shellcheck lint (seen red on a deliberate SC2155/SC2086), //:format, a helm template of the allow-list and a parse of the workflow YAML. The kind run (green, then EASTWEST_QUIC=off red) happens after the soak's k6 exits.

What

e2e/eastwest-quic.sh (up / verify / down, modelled on l4routes.sh; one kind node, SPIRE, the aether-workloads ClusterSPIFFEID with the #957 dnsNameTemplates) plus an eastwest-quic job in .github/workflows/e2e.yaml (in the only list, report-failure needs/RESULTS, admin /clusters + /listeners dumps on failure) and doc pointers.

phase proves
E0 every destination pod has inbound_<pod>_h3 and the per-listener counter the suite reads — so every "== 0" below is a reading, not an absent stat (#853)
E1 a quic: twin per (allow-listed destination × source SA), none for h2only
E2 client-a / client-b (different SAs) → quic-a / quic-b: 200s, the destination's XFCC URI= is the caller's own SPIFFE ID, and the request rode the caller's own twin over HTTP/3 (source /clusters host rows: own twin +≥10, other twin +0, h2 family +0; destination listener.inbound_<pod>_h3.http.inbound.downstream_rq_2xx +≥10)
E3 h2only answers with the caller's identity over h2; its HTTP/3 inbound and every twin stay at 0
E4 a weighted HTTPRoute canary (gamma-a/gamma-b, both allow-listed so twins exist) stays on h2 on both backends
E5 (Q3) client-a's pod is deleted and returns on a different IP; E2 reruns for both sources — the binding follows the SPIFFE ID, not the address (true QUIC path migration is not exercisable in kind: the QUIC client is the host-netns node proxy)

Red state: EASTWEST_QUIC=off e2e/eastwest-quic.sh up && e2e/eastwest-quic.sh verify installs the same chart with no allow-list and fails at E1 ("nothing is allow-listed, so no destination gets a quic: cluster").

Admin access is the multicluster harnesses' docker exec <node> curl 127.0.0.1:9901. Destinations are agnhost netexec (/header?key=X-Forwarded-Client-Cert).

Findings while writing it (filed separately)

  • the quic: twins clone the h2 cluster's alt_stat_name, so cluster stats / Prometheus cannot tell h3 from h2 per source (the e2e reads /clusters host rows instead);
  • ApplyQUICClusterSelection rewrites any route to the service's own h2 cluster, so a single-backend GAMMA rule to its parent IS selected — "GAMMA stays h2" holds for weighted routes only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

@bpalermo

Copy link
Copy Markdown
Owner Author

Kind run 2026-09-26 21:37–21:48Z from the top of stack #963 (so the agent image also carried #962's stats key and #964's E4b), after the rev239 soak ended and its k6 loaders were gone:

  • Green run: up → verify passed every phase: E0, E1 (8 twins, none for h2only), E2 ×4, E3 ×2, E4 ×2 (weighted GAMMA stays h2), E4b ×2 (single-backendRef GAMMA rule rides the caller's own twin over HTTP/3), E5 ×4 (client-a returned on a new IP; both identities intact). Every measured batch: 10/10 x 200, XFCC URI=<caller's own SPIFFE ID>; own twin +10, other twin +0, h2 +0, dest h3 inbound +10.
  • Red run: EASTWEST_QUIC=off up → verify died at E1 as documented: ✗ E1: quic: twins missing after 180s: … agent allow-list: [(none: nothing is allow-listed)], followed by the state dump and exit 1. No later phase ran.
  • down removed the cluster and the kube context was restored.

Both PRs' gates are therefore seen red-then-green on a real data path. Un-drafting the stack.

@bpalermo
bpalermo marked this pull request as ready for review September 26, 2026 21:50
…y, h2-only and GAMMA stay h2, Q3 (038 PR 8)

e2e/eastwest-quic.sh (up / verify / down, modelled on l4routes.sh; SPIRE on
with the aether#957 DNS SANs, kubernetes registry backend, one kind node):

- E0 every destination pod has its HTTP/3 inbound (inbound_<pod>_h3) and a
  readable listener.inbound_<pod>_h3.http.inbound.downstream_rq_2xx, so no
  "== 0" below can be an absent stat.
- E1 a quic: twin per (allow-listed destination x source SA); none for the
  unlisted h2only.
- E2 client-a / client-b (different SAs) x quic-a / quic-b: every request 200
  with the caller's own URI= in XFCC (agnhost netexec /header), the caller's
  twin's /clusters host rq_total +N, the other source's twin +0, the h2
  cluster +0, and the destination's h3 inbound counter +N.
- E3 h2only: served with the caller's identity, h2 +N, h3 inbound +0.
- E4 weighted HTTPRoute canary on gamma-a (gamma-a/gamma-b, both
  allow-listed, twins present): stays h2 on both backends.
- E5 Q3 approximation: client-a's pod re-created on a new IP keeps its own
  identity and its own twin over HTTP/3 (true path migration is not
  exercisable in kind: the QUIC client is the node proxy, not the pod).

Seen red: `EASTWEST_QUIC=off e2e/eastwest-quic.sh up` installs the chart
with no allow-list, and verify fails at E1 because nothing is allow-listed.

Proxy admin is read the way the multicluster harnesses already do
(docker exec <node> curl 127.0.0.1:9901). Cluster-level stats are NOT used as
evidence: QUICClusterFrom clones alt_stat_name, so the twins share
cluster.<ns>/<svc>.* with the h2 cluster; host rows in /clusters are
per-cluster.

Wired as the nightly `eastwest-quic` job (and into report-failure); docs
pointers in getting-started and 038 Q3. Not yet run on kind.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit d74d77a into main Sep 26, 2026
24 checks passed
@bpalermo
bpalermo deleted the feat/quic-pr8-e2e branch September 26, 2026 22:07
bpalermo added a commit that referenced this pull request Sep 27, 2026
… never publish (#975) (#978)

publish runs once per push to main, for the push's head. gh-stack #963
landed #959/#962/#964/#965/#966 as five squash commits in ONE push
headed by 4930733: publish ran for 4930733 and published it fully, and
d74d77a, 690dbb5, 937a8fd and ef44437 were never the tree of any publish
run. The --recent sweep checked every commit on main and filed #975 for
all four.

The sweep now checks the push heads in its window and prints every other
commit as `skip <sha> (not a push head ...)`. Heads come from GitHub's
activity log for refs/heads/main (scripts/push-heads-lib.sh), not from
the list of publish runs: the log records the push itself, so a push
whose publish run was cancelled (#880) or never created is still a head
and still goes red. The quiet-window fallback now picks the newest push
head older than the grace period, and an empty/unreadable/abbreviated
head list is inconclusive (exit 2), never "nothing to check". Explicit
commits (make check-published COMMIT=..., workflow_run) are unchanged.

scripts/check-push-head-selection.sh pins the selection in CI (no
network), including the fail-closed inputs.

Closes #975


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

Co-authored-by: Claude Fable 5.1 <[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