Repository navigation
feat(uds)!: csi.aether.io is the only UDS socket carrier — emptyDir carrier removed (proposal 039 Phase 2, BREAKING, chart 2.0.0) - #1092
Merged
Conversation
…the emptyDir carrier is removed (proposal 039 Phase 2)
BREAKING CHANGE: UDS delivery (proposal 034) no longer reads sockets out of
an emptyDir through the kubelet's pod-volumes tree. A workload's socket volume
must be an inline `csi: {driver: csi.aether.io}` volume and the pod must set
securityContext.fsGroup. Removed: the emptyDir resolver (udspath.Resolve), the
agent's --kubelet-pods-dir, the proxy's /var/lib/kubelet/pods hostPath mount
and the chart's proxy.udsWorkloads value. udsCsi.enabled now defaults to true.
A pod still declaring an emptyDir socket is denied at admission; a running or
policy-declared one falls back to TCP (unpromoted), counted as
aether.agent.uds.resolve_failures{reason="not_csi"}. Chart 2.0.0.
- CNIPod gains uds_csi_volume (12), volumes (13) and uds_csi_volumes (14),
recorded by enhanceCNIPod and persisted, so storage replay resolves without
the API server and every failure is attributable.
- udspath.ResolveCSI / ResolvePod: <uds-csi-root>/<uid>/<file>, classified
Reasons, a 54-byte file budget derived from constants (MaxFileLen).
- aether.agent.uds.resolve_failures{reason}: seeded at zero per reason,
counted and logged once per pod per reason.
- Admission: the /mutate pod webhook denies an emptyDir (or undeclared)
carrier, a file over budget, a csi.aether.io volume without fsGroup, and
two of them; the EndpointPolicy webhook checks the CSI budget.
- Chart: --uds-csi-root and the proxy's read-only HostToContainer mount both
render from udsCsi.root; crds 1.1.0 (docs), udsecho 2.0.0 (CSI carrier).
- e2e/uds.sh: every leg on the CSI carrier, plus (g) emptyDir pod denied and
(h) not_csi / volume_not_declared counted.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…tatus Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This was referenced Oct 1, 2026
docs: proposal 039 still reads Draft and Phase-0-gated; mark it implemented and record Phase 3
#1110
Closed
bpalermo
added a commit
that referenced
this pull request
Oct 1, 2026
) (#1117) Status Implemented: Phase 1 (#1090) and Phase 2 (#1092, chart 2.0.0) shipped; Phase 3 complete except the node reboot (#1106). Phase 0a (#1083) was not run and is recorded as superseded; the confused-deputy finding stays as the motivation, with what now prevents it. Adds a Phase 3 as-built section (deploy, first 8 h soak, plugin roll under load), the #1111 inode cap and #1112 soak harness follow-ups, the second-volume_id rejection superseded by the admission webhook, and 034 Phase 2 as unblocked but deferred (also in 034's supersession note). Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposal 039 Phase 2: the breaking cut-over of UDS delivery (proposal 034) from the kubelet
emptyDircarrier to thecsi.aether.ioCSI carrier that Phase 1 shipped in #1090. It is one PR, a hard cut-over, with no coexistence, no compatibility flag and no deprecation window (owner decision 2026-09-27/30).What breaks
A UDS workload's socket volume must be
csi: {driver: csi.aether.io}, and the pod must setsecurityContext.fsGroup. AnemptyDiris no longer a carrier.Removed:
udspath.Resolve(thekubernetes.io~empty-dirresolver);--kubelet-pods-dir, replaced by--uds-csi-root(default/run/aether/uds);/var/lib/kubelet/podshostPath mount;proxy.udsWorkloads.udsCsi.enablednow defaults totrue. That one switch covers:CSIDriver;--uds-csi-root;udsCsi.root;EndpointPolicyRBAC.On nodes with no UDS workloads the plugin is an idle DaemonSet requesting 5m CPU and 16Mi memory.
Chart versions: aether
2.0.0(major bump for the breaking change), crds1.1.0(the EndpointPolicy description changed), udsecho2.0.0(moved to the CSI carrier).Operator migration
Every UDS workload must switch before the chart upgrade, or in the same rollout:
A workload that misses the switch is not deleted:
aether_agent_uds_resolve_failures_total{reason="not_csi"}.The runbook has the steps under §7 Upgrading to chart 2.0.0 (find-affected commands and a post-upgrade check), and the reason table under §8. For talos-main,
charts/udsecho(the soak's UDS workloads) is migrated in this PR. It has to be upgraded together with aether 2.0.0; that is Phase 3.What changed
CNIPodgains three fields, all recorded byenhanceCNIPodand persisted so storage replay needs no API server:uds_csi_volume = 12, as specified;volumes = 13;uds_csi_volumes = 14.Deviation from the plan: with only the volume name, the agent cannot tell
not_csi(the volume is an emptyDir) fromvolume_not_declared, or a pod with two carriers from a pod with none.udspath.ResolveCSI(udsRoot, podUID, csiVolume, request)resolves to<root>/<uid>/<file>. It also takes the CSI volume name, which it needs in order to requirevolume == uds_csi_volume.udspath.ResolvePodaddsnot_csiandmultiple_csi_volumes.Reason.aether.agent.uds.resolve_failures{reason}:not_csi,volume_not_declared,bad_file,path_too_long,multiple_csi_volumes,no_uid,bad_request,disabled.Admission. The
/mutatepod webhook denies, for mesh-managed pods:uds-socketannotation whose volume is not the pod'scsi.aether.iovolume (for example an emptyDir);csi.aether.iovolume withoutfsGroup;csi.aether.iovolumes.The EndpointPolicy webhook checks the CSI byte budget. Precedence and other CRD semantics are unchanged.
Chart.
udsCsi.rootis the single source of truth: it renders the plugin's--root, the agent's--uds-csi-rootand the proxy mount.--uds-csi-root, and the proxy mountsuds-rootreadOnlywithHostToContainer./var/lib/kubeletanywhere in the proxy or agent templates; therootoverride moves all three paths together;udsCsi.enabled=falserenders none of them and passes--uds-csi-root=.Docs.
Read-only proxy mount: verified on kind
I chose an explicit
udsCsi.rootmount on the proxy:readOnly: true,mountPropagation: HostToContainer. It is the only root the proxy mounts. The proposal said no new mount was needed, because/run/aetheralready covers the default root; the explicit mount still works ifudsCsi.rootmoves elsewhere.Kernel check (kind node, kernel 6.8), in a private mount namespace:
connect(2)checks write permission on the socket inode, and root passes. The read-only flag (sb_permission/EROFS) only gates regular files, directories and symlinks. The comment in the 034-era chart claimed a read-only mount makesconnectfail withEROFS. That was wrong, and the comment is removed.Envoy's own mount view on kind (
/proc/<envoy>/mountinfo):/var/lib/kubeletentries (R2).nosymfollow.readOnlyonly stops the proxy creating anything in the root directory itself.Byte budget
udspath.MaxFileLen = MaxPipePathLen (107) − len(DefaultCSIRoot) (15) − 1 − PodUIDLen (36) − 1 = 54It is derived from constants, and
TestMaxFileLenpins it at 54. The volume name is no longer part of the path. Admission checks the budget exactly: default root, worst-case 36-byte UID. The agent re-checks against its own--uds-csi-root.Evidence
Unit gates: red without the code, then green
With the budget check, the
enhanceCNIPodrecording, the resolve-failure reporting, the pod-webhook call and the EndpointPolicyValidateRequesteach removed:All of them pass once the code is restored:
bazel test //... --test_tag_filters=-integration: 156/156 after the rebase onto fix(proxy): a hot-restart successor waits for CDS+LDS instead of going LIVE empty and draining the parent (#1085) #1091.--config=raceon udspath, cni/server, xds/cache (+cachemetrics), podmutate and endpointpolicy: green.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...: clean.make gazelleandmake formatleave no diff,make deps-auditpasses, andscripts/check-chart-version-bump.shpasses.(g)/(h) red on origin/main
A kind cluster built from
origin/main, running the new (g)/(h) legs (withotel.enabled=true, so the agent's exporter was on and served 69aether_agent_*series):e2e/uds.shon this branch (a–h, full build + up + verify)e2e/uds-csi.shalso passes (i–iv) on the same images.Notes on the e2e changes
tcp-echonow mounts an unusedcsi.aether.iovolume, so the drifting policy still reaches the data plane. A policy naming an undeclared volume now never resolves; that case is covered in (h).uds.shinstalls withotel.enabled=trueand no endpoint, so the agent's Prometheus exporter is on.uds-csiimage.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr