Skip to content

A pod that sends within its first ~8 s has no SVID yet: SPIRE delivers the initial SVID ~7.5 s after the agent subscribes (two empty updates first) — h2 requests fail 503 UF connection_timeout / UO in that window (was 503 NC on QUIC before #1051) #1053

Closed

Description

@bpalermo

Observed (talos-main rev249 = 1.0.3-0173c39 with #1051, short e2e 2026-09-28 17:51:56Z: k6 loaders created and sending at 300 rps to svc-1/svc-2 (QUIC allow-listed) from ServiceAccount aether-test/default immediately after the deploy's agent roll)

Agent on main-worker-02 for pod k6-soak-loader-z2dkk:

Data plane in that window (source access logs, all nodes, 17:51–17:52): 163 × 503 — 134 UO,UF upstream_reset_before_response_started{connection_timeout} + 29 URX,UF …{connection_timeout} + 2 URX via_upstream. With the twin withheld, k6's requests rode the h2 cluster aether-test/svc-{1,2}, whose per-connection client certificate (the #842/#843 on-demand SDS selector) had nothing to fetch, so connects sat until connect_timeout (UF) while the pending queue overflowed (UO) and retries exhausted (URX). Zero NC — #1051 removed that class. The same pod under rev248 got 428 NC instead (#1049), and phase B earlier in the day (14:15Z) got 0 — the SVID latency varies.

So the window is not QUIC-specific: any pod that sends on h2 within ~8 s of its CNI ADD fails until its SVID lands. It matters for the #1014 newsa soak step (a fresh-ServiceAccount client that sends immediately), for Jobs, and for the #979 "step 0 NC" gate.

Where the 7.5 s is

Between the Broker API subscribe and the initial SVID. Two svids=0 updates first suggests the SPIRE side had no matching entry yet (ClusterSPIFFEID → controller-manager creates the entry on pod creation → server → agent entry sync, default sync interval 5 s) rather than aether's NotFound backoff (no NotFound logged). To confirm: timestamp the entry creation on spire-server for that pod UID against the subscribe time; check spire-agent sync interval in the SPIRE helm values (GitOps).

Options (decision needed)

  1. SPIRE side: shorten the agent's entry sync interval / controller-manager latency so the initial SVID arrives < 1–2 s. Cheapest if it works; measure first.
  2. Data plane: make the h2 client-cert fetch wait instead of fail — connect_timeout on mesh clusters above the SVID latency and a pending-request circuit breaker high enough that a burst at pod start queues rather than overflows. Converts 503s into ~7 s of first-request latency.
  3. Identity before first packet: block the CNI ADD (or gate the pod's netns egress) until the SVID exists, so a pod cannot send without an identity. Delays every pod start by the SVID latency; strongest guarantee.

Related: #1049, #1051, #1014, #740 (never-fatal SPIRE), #979. Evidence: session memory project_1021_measurement_20260928 (e2e 17:51Z).

Activity

  1. added
    bug
    on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions