Skip to content

docs(039): built-in kubelet registration (no registrar sidecar), fsGroup-tightened socket dir, uds-csi image name - #1084

Merged
bpalermo merged 1 commit into
mainfrom
docs/039-decisions
Sep 30, 2026
Merged

bpalermo merged 1 commit into
mainfrom
docs/039-decisions

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Docs-only update to docs/proposals/039_uds-csi-driver.md with the three owner decisions of 2026-09-30. Superseded draft text is struck through rather than deleted where it explains a trade-off.

1. No node-driver-registrar sidecar. uds-csi serves the kubelet pluginregistration.v1 Registration service itself on <kubeletRoot>/plugins_registry/csi.aether.io-reg.sock. It removes a stale socket at start and its own socket on SIGTERM. GetInfo returns {CSIPlugin, csi.aether.io, <kubeletRoot>/plugins/csi.aether.io/csi.sock, ["1.0.0"]}. NotifyRegistrationStatus(false) logs and records the error, then exits non-zero so the pod restarts. The proto is copied into api/aether/kubelet/pluginregistration/v1/ instead of importing k8s.io/kubelet. Its proto package stays pluginregistration because the gRPC method path depends on it. That keeps the plugin's deps_test at CSI protos + grpc + x/sys/unix. The DaemonSet table now lists one container, drops the external-image/Renovate row and keeps the plugins_registry mount. The doc also states that the carrier has no SPIRE dependency. Rationale: one image, no third-party image to pin, bump, verify or mirror, and the smallest privileged surface. The cost is about 100 lines plus a fake-kubelet unit test and a kind CSINode e2e that survives a roll.

2. Q2 decided: fsGroup-tightened directory. fsGroupPolicy: File + VOLUME_MOUNT_GROUP. The per-pod tmpfs is uid=0,gid=<fsGroup>,mode=2770. Setgid is there so sockets, including 034 Phase 2's root-bound mesh.sock, inherit the group and 0660 works in both directions. This also matches what the kubelet does for an emptyDir with fsGroup. The proxy connects as root. A pod without fsGroup gets InvalidArgument naming the missing field (FailedMount), and podmutate may reject it earlier in Phase 2. There is no world-writable fallback. Q2 moves from Open questions to a new Decided section, and Q5 (registrar supply chain) is marked moot.

3. Image name per proposal 040: quay.io/aethermesh/uds-csi. The Phase 1 row notes that the owner must pre-create the quay repository because the push robot cannot create repositories.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…oup-tightened socket dir, uds-csi image name

Folds in the three owner decisions of 2026-09-30:

- No node-driver-registrar sidecar: uds-csi serves the kubelet
  pluginregistration Registration service itself on
  <kubeletRoot>/plugins_registry/csi.aether.io-reg.sock; the proto is
  copied into api/ (package kept as pluginregistration for the wire
  path) so deps_test stays at CSI protos + grpc + x/sys/unix. No SPIRE
  dependency.
- Q2 decided: fsGroupPolicy File + VOLUME_MOUNT_GROUP, per-pod tmpfs
  root:<fsGroup> 2770 (setgid so sockets inherit the group), a pod with
  no fsGroup is rejected with InvalidArgument (FailedMount).
- Image quay.io/aethermesh/uds-csi per proposal 040; the quay repo must
  be pre-created by the owner.

Superseded draft text is struck through, not deleted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit ef7e1b3 into main Sep 30, 2026
24 checks passed
@bpalermo
bpalermo deleted the docs/039-decisions branch September 30, 2026 15:02
bpalermo added a commit that referenced this pull request Sep 30, 2026
Resolve docs/proposals/039_uds-csi-driver.md against #1084's decisions:
keep main's decision text verbatim, add the Phase 1 implementation line
under it, and cut "Phase 1 as built" down to the departures from the
design (MS_NOSYMFOLLOW at mount time, registration-error exit path,
validation details, value names, gate).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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