Skip to content

capture: redirect-all breaks non-mesh gRPC (h2c) egress — protocol not preserved on passthrough #568

Closed

Description

@bpalermo

Found 2026-07-19: mesh pods freshly CNI-ADDed under captureRedirectAllDefault: true cannot send OTLP gRPC to the (non-mesh) otel-collector ClusterIP:4317 — clients get upstream connect error or disconnect/reset before headers. reset reason: protocol error (an Envoy-injected gRPC status). The capture listener sniffs the h2c connection into the cap_http chain, and the upstream dial to the h2-only gRPC server does not speak h2c → reset before headers.

Latent since the 022 redirect-all default flip: it only bites pods (re-)ADDed after the flip whose egress targets a non-mesh gRPC service. The soak-era prober DaemonSet pods predated the flip (scoped-redirect rules, 4317 uncaptured), so soaks never exercised this; it fired when the pods were rolled during today's incident recovery. Same failure class as the edge's hardcoded capture.aether.io/redirect-all: "false" opt-out in agent-daemonset/edge-deployment templates.

Mitigation applied: capture.aether.io/exclude-outbound-ports: "4317" on the prober DaemonSet (cluster-side patch on talos-main; should be upstreamed into the soak/test manifests).

Fix: non-mesh traffic sniffed as HTTP/2 in the capture chain must either (a) be kept on the TCP floor / ORIGINAL_DST passthrough without HTTP mediation, or (b) have the passthrough upstream preserve the downstream protocol (h2c upstream when downstream was h2c — Envoy USE_DOWNSTREAM_PROTOCOL semantics). Add an e2e that sends gRPC through redirect-all capture to a non-mesh h2c server.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions