Skip to content

docs(proposal): drop the =tcp webhook guard from 037, with the reason - #891

Merged
bpalermo merged 1 commit into
mainfrom
docs/037-drop-tcp-webhook-guard
Sep 21, 2026
Merged

bpalermo merged 1 commit into
mainfrom
docs/037-drop-tcp-webhook-guard

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Records a decision made while implementing Release A (#890), rather than leaving the guard silently unbuilt.

The guard cannot do its job. It was specified as "the pod-mutating webhook rejects =tcp until the chart's agent version supports it". Two problems:

  1. There is no pod validating webhook. /validate dispatches by Kind (MeshConfig, HTTPFilter, EdgeConfig, EndpointPolicy, HTTPRoute); pods reach only /mutate. A mutating webhook can deny, but that's an odd shape for a pure admission check.
  2. It must know the agent version. The only non-drifting source is a chart value set by the same release that ships the agent — sound as far as it goes, since the chart is the unit of deployment. But within one helm upgrade the controller rolls before the agents, so a pod annotated =tcp in that window still registers as HTTP on an old agent's node.

So it narrows the window it exists for without closing it. A gate that cannot fail in the case it was built for is decoration (#853) — the same call made about envoy_validate in Phase 1.

Replacement: the documented skew rule (roll the agent DaemonSet before annotating) plus a loud WARN from the new agent when it parses =tcp. That trades a silent downgrade for a visible ordering constraint.

What would reopen it: evidence the skew window is actually being hit — a =tcp WARN from a node whose agent predates support, which the WARN itself makes visible.

Also records Release A as shipped, including the two items that moved: port-protocols defers to Release B where its per-port data exists, and the Spec.Ports migration gap Release A had to fix.

Docs only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

The guard was specified as "the pod-mutating webhook rejects =tcp until the
chart's agent version supports it". It cannot do that job:

  - there is no pod VALIDATING webhook (the controller's /validate dispatches
    by Kind; pods reach only /mutate), and
  - it must know the agent version, whose only non-drifting source is a chart
    value set by the same release that ships the agent -- but within one helm
    upgrade the controller rolls BEFORE the agents, so a pod annotated in that
    window still registers as HTTP on an old agent's node.

It narrows the window it exists for without closing it, and a gate that cannot
fail in the case it was built for is decoration (#853). Replaced by the
documented skew rule plus a loud WARN from the new agent, and the condition
that would reopen the decision is stated.

Also records Release A as shipped (#890), including the two items that moved:
the port-protocols annotation defers to Release B where its data exists, and
the Spec.Ports migration gap that Release A had to fix.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 79da294 into main Sep 21, 2026
22 checks passed
@bpalermo
bpalermo deleted the docs/037-drop-tcp-webhook-guard branch September 21, 2026 14:29
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