Skip to content

feat(agent): stamp the source SPIFFE ID in filter state; HEALTHY requires an mTLS handshake with the pod's inbound listener (#815, release 1/3) - #819

Merged
bpalermo merged 2 commits into
mainfrom
fix/815-release-one
Sep 19, 2026

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Release one of three for #815. Do not deploy without the live validation below — it changes what HEALTHY means.

Why

Every local pod ADD/DEL rewrites every mesh cluster on the node (the per-source upstream-mTLS matcher is keyed by the source pod's netns path). Under delta xDS each rewritten cluster re-warms for the 15 s EDS initial-fetch timeout and the swap drains every upstream connection pool on the node — measured live: 24–33 clusters warming for exactly 15 s per pod ADD. That is the 8-hour soak's SHRINK episode (18 timeouts on echo) and the prober timeouts after service rolls. The end state keys the matcher by the source pod's SPIFFE ID (per ServiceAccount, byte-stable). That switch is only safe once every originating listener already stamps the new filter-state key — otherwise OnNoMatch = node identity = the wrong client certificate (#686). Hence:

  • Release one (this PR): listeners stamp BOTH keys; the cluster matcher is untouched (pinned by TestClusterMatcherStillKeyedOnNetns).
  • Release two: switch the matcher input to aether.source.spiffe_id.
  • Release three: drop the netns key.

Part A — both filter-state keys

aether.source.spiffe_id (literal inline string, shared_with_upstream: ONCE, same read-only/skip semantics as the netns key — the matcher input only sees SHARED filter state) on the five per-pod originating chains: outbound HTTP, capture HCM, capture TCP floor, capture TCPRoute, capture TLSRoute. Correctly NOT stamped: cap_passthrough, the UDP capture listener (no filter chains), inbound, the waypoint tunnel, edge. Fixed filter order; omitted only when the trust domain is still empty (pre-SPIRE startup → exact pre-#815 bytes).

One-time cost: every mesh pod's outbound/capture listener changes bytes once on rollout (the netns key is set unconditionally today, so the new one is too — including SPIRE-off clusters). In-place filter-chain update with a drain.

Part B — HEALTHY now requires an mTLS handshake with the pod's own inbound listener

Design agreed on #815: health must depend on what Envoy has actually loaded, not on the agent's belief that the secret is in the snapshot. New per-pod inboundready_<pod> STATIC cluster: netns-bound to the pod's inbound port, plain UpstreamTlsContext (node SVID as client cert, trust-bundle validation, SAN match = the pod's own SPIFFE ID, ALPN h2, no SNI → the always-present no-SNI chain), TCP health check — with a TLS transport socket Connected is raised only after the handshake. The health gateway filter for the pod requires BOTH health_<pod> and inboundready_<pod> at 100 %; the gateway path is unchanged, so the liveness loop's client is untouched. Fails while the listener is warming (connect refused), while the secret is not loaded, on an expired SVID — and if the chain ever presents a different identity (#638) the pod never becomes healthy. Inbound peer validation already accepts the node identity (trust bundle only, no client SAN restriction) — nothing loosened. Absent with SPIRE off, in edge mode, before the node SVID, without a netns: clusters and gateway stay byte-identical there (asserted).

Liveness hysteresis (the risk this PR had to close): the existing 15 s warm-up grace only covers pods that never served, so after a proxy hot restart — new epoch, every HC host FAILED until SDS reloads — every endpoint on the node would have been demoted. Now: a served pod is demoted only after 3 consecutive failing observations, and a tick that finds the gateway reachable again after being unreachable re-arms the warm-up grace for every pod. Cost: a genuinely dead app is demoted ~10 s later (≈25 s); fast local failure detection stays with the clusters' outlier detection.

Chart 0.92.27: stats exclusion for cluster.inboundready_* dead subtrees (membership gauges and ssl.* deliberately kept — the health_check filter READS the gauges). Runbook: "A pod never becomes routable: what HEALTHY means since #815". Proposal 004 amended (it owns the health gateway).

Found on the way

envoy --mode validate segfaults on any bootstrap STATIC cluster whose transport socket resolves a secret over sds_config: {ads: {}} (reproduced with no aether config; SdsApi::initialize dereferences an ADS mux the validation server never builds). Not reachable in production (these clusters arrive over CDS). The validate harness rewrites the SDS source for this one cluster, with the explanation inline.

Tests

22 new test functions (both keys per chain kind, sharing semantics, fixed order, matcher untouched; probe cluster shape, SAN pin, inbound accepts the node identity, gateway requires both; present/absent/removed/deterministic; liveness streak, reset, re-arm). TestLocalPodChurnRewritesEveryServiceCluster now also pins that no per-pod cluster changes on an unrelated pod ADD. Touched packages + //test/envoy_validate green; --config=ci lint clean; --config=race clean.

Must be proven on a cluster before this ships (talos-main, under load)

  1. inboundready_<pod> membership stays 0 until the pod's SDS secret lands, then 1 — i.e. TCP-HC-over-TLS really means "handshake done" (if it flips early, swap to the HTTP /-/-/live check: ~5 lines).
  2. A proxy DaemonSet roll causes ZERO HEALTHY→UNHEALTHY transitions.
  3. A CDS-delivered STATIC cluster with ADS-sourced SDS initialises normally (no precedent in this repo).
  4. Promotion now trails SVID arrival (promotion-delay histogram vs SVID time; the ≤0.5 s outlier disappears).
  5. The release-one listener update itself is hitless across the agent roll.
  6. cluster.inboundready_*.membership_* and ssl.* are exported; excluded subtrees are really zero.

Refs #815. Not Fixes — releases two and three follow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 2 commits September 19, 2026 14:11
… CDS blast radius

Two tests, no production change, written while investigating the suspected
"inbound listener published before its SDS secret" ordering defect.

TestSnapshotRegenerationIsANoOpPush pins the steady-state half of the #135
invariant that determinism_test.go only covers across independent builds:
regenerating with unchanged inputs must be byte-identical, because the agent
pushes a full snapshot per event (~9/node/minute measured during a soak
scale-up) and every one of those is free only while unchanged config hashes
unchanged.

TestLocalPodChurnRewritesEveryServiceCluster records what one pod's lifecycle
actually costs the node's CDS set. Every mesh service cluster carries a
per-source upstream-mTLS matcher whose exact_match_map is keyed by the source
pod's netns path, so one pod arriving or leaving rewrites EVERY service cluster
the node holds - measured here as 9 of 9, independent of any routing
relationship to that pod. The DEL restores the pre-ADD bytes exactly, so
create/destroy is a round trip rather than a ratchet; both halves are asserted.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…on on inbound mTLS readiness (#815)

Release ONE of the two-release fix for #815. Listeners change; clusters do not.

Part A — every chain that can originate mesh traffic now sets a SECOND
filter-state object, `aether.source.spiffe_id`, carrying the source pod's
SPIFFE ID as a literal, alongside the existing `aether.network.network_namespace`
key. Same `shared_with_upstream: ONCE` semantics, because it is destined for the
same consumer: the cluster transport-socket matcher reads both through
`TransportSocketOptions::downstreamSharedFilterStateObjects()`.

The matcher is NOT changed — clusters stay byte-identical, asserted by
TestClusterMatcherStillKeyedOnNetns and the per-pod half of
TestLocalPodChurnRewritesEveryServiceCluster. Release two flips the matcher's
FilterStateInput to the new key, which makes the Cluster proto byte-stable
across pod churn and ends the 15s node-wide EDS re-warm + pool drain that one
CNI ADD currently costs. Doing both in one step would leave a cluster with the
new input facing a listener with only the old key falling to OnNoMatch = the
node identity = the wrong client certificate (#686). The old key can only be
removed in a THIRD release, for the mirror-image reason. Contract documented at
the constant.

Chains stamping both keys: per-pod outbound HTTP, capture HCM, capture TCP
floor, capture TCPRoute weighted floor, capture TLSRoute SNI. The ORIGINAL_DST
passthrough chain stamps neither (plaintext, selects no certificate) and the UDP
capture listener has no filter chains at all.

Part B — a second per-pod probe cluster, `inboundready_<pod>`, closes the
promotion hole. `health_<pod>` dials the application in cleartext and has no SDS
dependency, while the pod's inbound listener does not listen() until its SVID
arrives, so an endpoint could be advertised HEALTHY while its mesh port refused
connections (promotion p50 5.8s vs SVID 6.1-8.4s; one pod promoted in <=0.5s).

The new cluster runs a connect-only TCP health check over an mTLS
UpstreamTlsContext against the pod's own 127.0.0.1:18008 in its netns, ALPN h2 /
no SNI so it lands on the always-present no-SNI inbound chain, client cert = the
node SVID, peer pinned to exactly the pod's SPIFFE ID. Envoy raises Connected
only after the TLS handshake, so a pass means "listening, has this pod's
certificate, and it verifies as this pod". Inbound validation is untouched: it
already requires a client certificate and validates the trust-domain bundle with
no SAN restriction, so the node identity is accepted as-is.

The gateway filter for the pod requires both clusters; the gateway PATH is
unchanged, so the liveness loop and health client are untouched. The probe is
not emitted with SPIRE off (cleartext inbound: nothing to prove) or before the
node SVID lands (no client certificate) — those pods keep exactly the previous
single-cluster gate, so SPIRE-off snapshots are unchanged.

The main risk is the other direction: a new Envoy epoch starts every host failed
and must re-fetch each pod's SDS secret, so a proxy roll would otherwise demote
every pod on the node. The existing warm-up grace does not cover it (it only
applies to pods that never served). Two guards: a previously-serving pod is
demoted only after 3 consecutive failing observations (15s), and any tick that
could not reach the gateway re-arms the full warm-up grace on the next tick that
can. Cost: a genuinely dead app is demoted ~10s later; fast local detection is
outlier detection, which is unaffected.

Per-pod probe clusters use a plain UpstreamTlsContext, never the per-source
matcher, so adding one does not perturb any other cluster's bytes.

Also: extend the chart's stats exclusions to the new prefix while keeping
membership_* (the health_check filter READS those gauges) and ssl.* (the direct
read-out of why a pod is stuck un-promoted) readable; runbook section on what
HEALTHY now means and how to read a stuck pod; amendment on proposal 004.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 89061d1 into main Sep 19, 2026
20 checks passed
@bpalermo
bpalermo deleted the fix/815-release-one branch September 19, 2026 17:23
bpalermo added a commit that referenced this pull request Sep 19, 2026
…S probe is can't-tell, not unhealthy (#815 re-land) (#821)

Release one of #815 (PR #819) failed its live validation on talos-main and was
rolled back. Three defects, all fixed here.

DEFECT 1 — listeners published with an EMPTY trust domain (the outage).

On main-worker-03 Envoy subscribed to SDS secrets named `spiffe:///ns/<ns>/sa/<sa>`
— no trust domain. The agent never serves that name, so five pods' inbound
listeners came up with no certificate, the new mTLS readiness probe could never
pass, and four endpoints were demoted HEALTHY -> UNHEALTHY permanently.

Root cause. The node agent's trust domain is late-bound (#740).
LoadListenersFromStorage published the whole per-pod listener map under
listenerMu and recorded the trust domain ~700ms LATER under localMu, so there
was a long window in which the cache held listeners and an empty trust domain.
#819 then hoisted regenerateAllHTTPListeners' trust-domain read OUT of the
listenerMu critical section (to avoid nesting locks), so a reconciler that
STARTED inside that window sampled "", blocked on listenerMu for the rest of the
load, and rewrote every listener with the malformed identity. w03's log shows
exactly that: LoadListenersFromStorage 17:31:21.608 -> 17:31:22.318, the gamma
reconciler's first SetServiceChainFilters at 17:31:22.024 in between, snapshot
...081526.1 with correct chains and the next snapshot ...082222.2 with
`spiffe:///` on all 15. w01/w02 ran the same build and the same reconciler
AFTER the load finished, and were fine.

Pre-#819 read the same field unlocked but at the point of USE, inside the lock,
so the value hole existed only between the unlock and the localMu write —
nanoseconds. #819 widened it to the whole duration of a listener load.

Fix, four layers, each with a test:
  - proxy.SpiffeIDFromPod returns "" for an unknown trust domain — `spiffe:///`
    is now unrepresentable, not merely discouraged. ValidationContextName does
    the same for "spiffe://<td>".
  - builders that need a real identity REFUSE: NewInboundListener returns
    proxy.ErrNoTrustDomain, the mTLS matcher emits no SAN and no injected
    cluster, the inbound-readiness probe is skipped. The regeneration loops log
    the pod and skip it, keeping its previous (correct) listener.
  - the cache's trust domain is ONE atomic value read at the point of use,
    INSIDE the listenerMu section that writes the listeners; setTrustDomain
    publishes under the same lock, so a rebuild can neither straddle a change
    nor observe a stale value, and an empty value never displaces a known one.
  - LoadListenersFromStorage and AddPod record it BEFORE publishing anything,
    so the window does not exist. SetTrustDomain rebuilds every
    identity-derived resource and publishes exactly one snapshot.

DEFECT 2 — main-worker-05 emitted no inboundready_* cluster at all.

#819 hung the probe recompute off two one-shot events: a bulk listener load and
SetNodeIdentity, which the SPIRE bridge calls ONCE ever (`if firstServe`). Any
ordering where both fire while a precondition is missing leaves the gate absent
for the life of the agent, with no third trigger and no signal. (I could not
reconstruct w05's exact losing ordering from its log — both triggers appear to
have had their preconditions met — so the fix removes the whole class rather
than one ordering.) The probes are now reconciled on EVERY snapshot, skipping
entries already rendered from the current identity, so nothing depends on
catching an event. Plus: a gauge of gated/ungated pods recorded every liveness
pass, and one INFO line per agent naming the missing precondition.

DEFECT 3 — a stranded endpoint had no signal and no way back.

#819 ANDed both probe clusters behind the single /healthz/health_<pod> path, so
the agent saw only their conjunction and could not tell "the app died" from
"the mesh inbound never came up". Each probe cluster now gets its OWN gateway
path reflecting that cluster alone, and the liveness loop combines them:

  app     inbound-readiness      already serving?   action
  fails   any                    any                UNHEALTHY
  passes  404 (ungated)          any                HEALTHY
  passes  passing                any                HEALTHY
  passes  never passed (epoch)   yes                HEALTHY (can't-tell) + WARN
  passes  never passed (epoch)   no                 held un-promoted + WARN
  passes  passed, now failing    any                UNHEALTHY (demote streak)

"Already serving" means the endpoint is or has been advertised HEALTHY, and
survives an Envoy epoch change on purpose. livenessDemoteStreak and the gateway
re-arm both stay and are re-justified at the constant: the streak now covers a
hot restart the agent never notices (the supervisor's two-epoch overlap keeps
the gateway answering, so no re-arm fires) plus the app probe's own epoch
warm-up; the re-arm covers a proxy container restart.

New metrics:
  aether.agent.liveness.inbound_gate_pods{aether.gate.state=gated|ungated}
  aether.agent.liveness.inbound_gate_held_pods
  aether.agent.liveness.health_transitions is now SEEDED at 0 for
  HEALTHY->UNHEALTHY and UNHEALTHY->HEALTHY — it had no series at all before the
  incident, so "0 demotions" could not be graded.

Runbook rewritten for the new semantics, including `envoy_sds_spiffe_ns_*` as a
named failure with its query.

Not touched: the cluster transport_socket_matcher (release two), inbound peer
validation, agent/internal/spire. SPIRE-off output stays byte-identical.


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

Co-authored-by: Claude Fable 5.1 <[email protected]>
bpalermo added a commit that referenced this pull request Sep 19, 2026
…netns path (#815, release 2/3) (#822)

Every local pod ADD/DEL rewrote EVERY mesh cluster on the node. The per-source
upstream-mTLS transport_socket_matcher keyed its exact_match_map on the source
pod's netns path, which is unique per pod, so one unrelated CNI ADD changed a
field of every service cluster. Under delta-xDS each rewritten EDS cluster then
re-warmed for the full 15 s EDS initial_fetch_timeout (delta sends no EDS
request for a name the old cluster already watches), and the warming->active
swap destroyed the old ClusterEntry on every worker, draining every upstream
connection pool on the node. Measured on talos-main rev224: one new pod -> 20-24
clusters warming for 15 s, two -> 30 for 30 s, nodes with no new pod -> 0. That
handshake storm is the latency after a service roll and cost an 8 h soak its
largest error episode.

The matcher always SELECTED per-ServiceAccount -- the transport_socket_matches
entry name is the SPIFFE ID -- so keying the map by identity loses nothing and
makes the Cluster proto byte-stable across pod churn within a ServiceAccount.
Release one (#819/#821) made every mesh-originating chain stamp
aether.source.spiffe_id; this reads it. Only the first pod of a ServiceAccount
arriving on a node, or the last one leaving, changes a cluster now.

The matcher, the matches and the identity set all derive from one sorted,
deduplicated identity list, so nothing is a function of map-iteration order.
The netns->identity index stays in c.localWorkloads for the #638 discriminator;
nothing in the Cluster proto is keyed by netns any more.

UPGRADE ORDER: a proxy must run release-one listeners before it is handed
release-two clusters. LDS and CDS are separate xDS responses with no ordering
guarantee, so a release-two cluster facing a pre-#819 listener matches nothing,
takes on_no_match and presents the node identity. Going from a chart older than
0.92.27 straight to 0.92.28 is therefore unsupported. Recorded in the chart
NOTES, docs/runbook.md section 7, and the constants' contract comment.

SA-entry stickiness (keeping a departed ServiceAccount's entry for a grace
period, to spare the scale-to-zero case) was evaluated and rejected: the
retained entry would name an SDS secret the agent stops serving, which a NEW
Envoy epoch would warm on until initial_fetch_timeout and then come up with
upstream_context_secrets_not_ready -- the same defect on the proxy-roll path.
The entry is also unreachable while retained, since no listener stamps a
departed pod's identity. Reasoning is in the runbook.

Observability: the chart lifts the per-match counter's SPIFFE ID into the
aether.transport_socket_match tag, so it exports as one
envoy_cluster_total_match_count family instead of one metric NAME per
ServiceAccount. on_no_match increments the NAMED socket's counter, never
`default`, so a rising spiffe://<td>/node/... on a service cluster is the
"connection did not carry the key" signal. Also fixes the health_/inboundready_
exclusion alternative, which said default_total_match and therefore matched
nothing -- the stat is default.total_match_count.

Tests: TestLocalPodChurnRewritesEveryServiceCluster is replaced by its inverse,
TestServiceClusterBytesStableWithinServiceAccount, plus
TestServiceClusterBytesChangeOnFirstAndLastPodOfServiceAccount (the events that
still cost a re-warm, reversibly), TestNoNetnsPathInServiceClusterBytes (a wire
scan of the serialized cluster, which reaches inside typed_config Anys),
TestServiceClusterBytesUnaffectedByPodChurnWithSpireOff, and in the proxy
package TestClusterMatcherKeyedOnSourceIdentity and
TestClusterMatcherIsOrderIndependent. The stock-Envoy gate now validates a
service cluster carrying the one-level matcher with two local ServiceAccounts.


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

Co-authored-by: Claude Fable 5.1 <[email protected]>
bpalermo added a commit that referenced this pull request Sep 20, 2026
… unpinned cluster loud (#836, #832) (#840)

Two identity defects found while investigating #829, in the same files and the
same subsystem (upstream TLS / server-identity pinning).

#836 — the inboundready_<pod> probe shared the mesh clusters' upstream TLS
builder. That probe dials each local pod's mesh inbound INSIDE that pod's netns
every 5 s, so its TLS peer is always a local pod presenting that pod's SVID; in
#829 a probe-sourced session ended up serving mesh clusters, which is how a
local pod's certificate reached unrelated clusters' handshakes. The probe now
builds its OWN UpstreamTlsContext (InboundReadyProbeTransportSocket) carrying
its own MaxSessionKeys: 0, so the boundary holds if #834's global switch is
later reversed for a good reason. The SAN pin and the empty SNI are unchanged —
both are load-bearing.

#832 — a cluster whose SAN pin cannot be rendered (no trust domain yet, or
endpoints with no namespace metadata) ships a validation context with no
match_typed_subject_alt_names, so the handshake proves only trust-domain
membership: any mesh workload satisfies it. Emitting that rather than the
unservable "spiffe:///ns/…" is the right call (#815/#819), but shipping it
silently is not. Each snapshot now WARNs once naming the affected clusters with
the reason, and counts them in aether.agent.identity.cluster_unpinned — seeded
at zero, because a counter that is never incremented is not a series.

Plus the config-shape gate: //test/envoy_validate asserts every upstream TLS
context in a generated bootstrap carries a non-empty
match_typed_subject_alt_names. `envoy --mode validate` ACCEPTS an unpinned
context, so a passing validate says nothing about it.


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

Co-authored-by: Claude Opus 5 <[email protected]>
bpalermo added a commit that referenced this pull request Sep 20, 2026
) (#850)

proxy.DownstreamTransportSocket set RequireClientCertificate: true with a
validation context carrying no SAN matchers at all, so the inbound handshake
proved only trust-bundle membership — any certificate that bundle signs,
including identities that are not workload SVIDs. The inbound HCM then stamps
that certificate's URI SAN into XFCC with SANITIZE_SET (ingress.go), and
RBAC/ext_authz decisions key on that value, so the property every XFCC-derived
rule assumes was never actually established.

The destination cannot pin a specific ServiceAccount — in a mesh any workload
may legitimately call — but it can require the certificate to be STRUCTURALLY a
workload SVID. Each mTLS inbound chain now carries a combined validation
context with one match_typed_subject_alt_names entry: san_type URI, prefix
"spiffe://<trust-domain>/ns/". Envoy builds StringSanMatcher(GEN_URI, matcher)
for URI SANs (source/common/tls/cert_validator/san_matcher.cc), so the full
StringMatcher surface applies; only DNS gets the RFC 6125 special case.

The TCP floor gets the same pin and needs it most: it is the listener's DEFAULT
chain and tcp_proxy forwards raw bytes to the application, so there is no XFCC
and no HTTP-level authorization behind it at all.

Empty trust domain emits NO matcher, never "spiffe:///ns/". A prefix built from
an empty trust domain matches no certificate any CA in this mesh has issued, so
it would fail every inbound handshake on that pod — #815/#819 with a node's
blast radius. That branch is defence in depth rather than a live path:
NewInboundListener already returns ErrNoTrustDomain first, so the reachable
outcome is a skipped pod with a WARN naming it.

No new counter for an unpinned inbound, deliberately, unlike #840's
cluster_unpinned: that counter exists because the cluster path deliberately
SHIPS the unpinned form as the lesser evil and did so silently. Here the lesser
evil is refusing to build the listener, which is already loud. The gate is a
build-time config-shape assertion instead — UnpinnedInboundChains over the
generated bootstrap bytes — which also covers a future caller that bypasses the
ErrNoTrustDomain guard, something a runtime counter could not.

envoy --mode validate ACCEPTS an unpinned downstream context, the same
fail-open direction #832 found upstream. Proved non-vacuous by forcing
WorkloadSANPrefix to "": the assertion named every affected chain
(inbound_test-pod/in_tcp_test-pod, /in_test-pod, /in_test-pod_8080) while all
seven bootstraps still reported "configuration ... OK".

The node identity satisfies the pin: the agent is an ordinary pod, so SPIRE's
fallback ClusterSPIFFEID issues it spiffe://<td>/ns/aether-system/sa/aether-agent
(#825). That matters because the inboundready_<pod> probe dials every local pod
presenting it — a rejection there would demote endpoints, the rev222 failure
mode. //test/envoy_validate's fixtures still spelled the node identity as
spiffe://<td>/node/test-node, which the new pin would REJECT; they now use the
production shape, and a proxy-package test asserts the probe's certificate
satisfies the pin directly.

Scope note: the prefix names the LOCAL trust domain, which makes it exactly as
restrictive as the upstream pin already shipped (cache/mtls.go renders exact
spiffe://<local-td>/ns/<ns>/sa/<svc> matchers). Cross-trust-domain traffic is
therefore already impossible in the client direction, and proposal 019 states a
shared trust domain as a precondition with SPIRE federation deferred. If
federation is ever enabled both pins must widen together.

This changes the inbound filter chains' bytes, so Envoy replaces and drains
every mesh pod's inbound chains once on rollout (--drain-time-s, 10s here).


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

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