Skip to content

UDS delivery (034): verify whether an app-controlled socket symlink makes the proxy connect to node-local sockets (proposal 039 Phase 0a) #1083

Closed

Description

@bpalermo

Proposal 039 (docs/proposals/039_uds-csi-driver.md, "The finding that decides it") reasons — unverified — that the shipped 034 UDS delivery has a confused-deputy: the node proxy resolves the pod's socket path /var/lib/kubelet/pods/<uid>/volumes/kubernetes.io~empty-dir/<vol>/<file> in its own mount namespace, the last component is app-created, and connect(2) on an AF_UNIX pathname follows symlinks. If an app replaces its socket with a symlink, the proxy would connect as root to whatever the link names in the proxy's view (node-local agent/SPIRE sockets or another pod's socket).

This issue tracks Phase 0a: reproduce or refute on kind with a hostile leg in e2e/uds.sh that must be seen failing (attack works) before any fix, so the gate is not vacuous. The result decides 039:

  • confirmed → ship the interim (supervisor MOUNT_ATTR_NOSYMFOLLOW on its kubelet-pods view, refuse medium: Memory carriers, udsWorkloads.enabled default false) and build 039 as the structural fix (breaking cut-over, no coexistence — decision 2026-09-27);
  • refuted → park 039, record why.

Test on the project's own kind cluster only.

Activity

  1. added
    bug
    on Sep 30, 2026
  2. bpalermo commented on Oct 1, 2026

    @bpalermo
    OwnerAuthor

    Closing as superseded: proposal 039 shipped in full (#1090 Phase 1, #1092 Phase 2, deployed as chart 2.0.0 on 2026-09-30). The socket directory is now a mesh-owned per-pod tmpfs mounted nosymfollow on the host view the proxy resolves through, the emptyDir carrier is rejected at admission, and the proxy no longer mounts the kubelet pods tree. e2e/uds-csi.sh asserts the host mount carries nosymfollow and that a link planted in the directory is not followed (seen red with the flag removed). The Phase 0a reproduction against the removed emptyDir design was not run and no longer decides anything.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions