Skip to content

Qualify shipped rootless daemon unit on disposable systemd fixture (OSS-376) - #558

Merged
athNdev merged 1 commit into
mainfrom
codex/node-rootless-runner
Nov 19, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/node-rootless-runner

Conversation

@athNdev

@athNdev athNdev commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What this changes

Closes the remaining rootless qualification gap for OSS-376. No production
code/unit/config change: this adds reproducible fixture tooling and updates the
mode doc + governing knowledge concept with the qualification result.

  • qualfixtures/rootless/render/main.go renders the exact shipped rootless
    per-user unit and canonical daemon.json from native.DaemonSpec.BuildManifest().
  • qualfixtures/rootless/Dockerfile + qualify.sh reproduce the disposable
    fixture: Ubuntu 24.04 / systemd 255 / real dockerd 29.1.3, non-root service
    user ubuntu with a real systemd --user session, real D-Bus, real
    dockerd-rootless.sh + rootlesskit, delegated cgroup v2 (private cgroupns)
    and host network namespace (single-nested userns). No no-op daemon, no
    Type= change, no config/unit substitution.
  • docs/plans/host-native-private-daemon.md and
    knowledge/architecture/host-native-runtime.md record the result, replacing
    the stale "rootless boot blocked by WSL2 nested-userns iptables" status.

Exact head: 5c0a605b95cbc1551676c3d535ceab563558fb06
Branch base: origin/main 9e81679b346a3e1acbc50f8283b5b3c365769771.

Qualification evidence (disposable fixture only)

===ACTIVE===   Result=success  NRestarts=0  ExecMainStatus=0
               ActiveState=active  SubState=running
===SOCKET===   srw-rw---T ubuntu /run/user/1000/carbon-node/docker.sock
===PIDFILE===  ubuntu-owned dockerd --config-file=/run/user/1000/carbon-node/daemon.json
===INFO===     Server Version: 29.1.3  Storage Driver: vfs
               Docker Root Dir: /home/ubuntu/carbon-qual/docker
               SecurityOptions: name=seccomp,profile=builtin; name=rootless;
                                name=cgroupns; name=no-new-privileges
===CONTAINER=== cp-rootless-game 0.0.0.0:30555->8080/tcp Up
===BRIDGE===   container IP 10.231.0.2; BRIDGE_LISTENER_OPEN from a 2nd container
===PUBLISHED=== LISTEN_CHECK=1  CLIENT_TCP_REACHABLE=1  HTTP/1.0 200 OK
===LIMITS===   MEM=67108864  PIDS=12
===XDG_RESET=== XDG_RESET_ACTIVE=1; same private socket/data root after ambient
               XDG_RUNTIME_DIR was reset to a bogus /tmp path
===SUMMARY===  ROOTLESS_QUALIFICATION: ALL PASS

Precise network wording: published mapping, bridge-side listener from a
second container, and measured client TCP reachability + HTTP 200 on
127.0.0.1:30555 are three distinct observations. Rootless uses the slirp4netns
builtin userspace port driver, so no host DNAT rule is expected or claimed here.

Fail-closed: on Linux with pinned Go 1.26.11, symlink escape outside the
owned root, existing socket collision, world-writable parent, host/shared socket
and data roots, shared namespace, unsafe runtime dir, shared default pidfile and
missing/delegated gates were all refused (POSIX-only refusal tests pass on
Linux; they skip on Windows).

Full exact output: external audit file
security-runtime-plans/node-rootless-qualification-20261119.md.

Verification at exact head

  • go build ./... exit 0
  • go vet ./... exit 0
  • go test -count=1 ./... exit 0 (all packages)
  • gofmt clean on the new Go file
  • knowledge-lint -fix then re-run: queries 40/40, OK: 76 concept(s), indexes current

Not claimed

No live-host install, real gameplay, VM/LXC boot, release, deployment or
registry write. Fixture containers were removed; no host service, world,
database, global config or credential was changed. Independent review and green
CI are required before any merge; no merge is requested here.

Boot the exact rendered per-user unit with real dockerd 29.1.3 under a real systemd --user session for a non-root user. Evidence: active/success NRestarts=0, private socket/pidfile/roots, name=rootless + vfs, real container with published port, bridge-side listener and measured client TCP + HTTP 200, memory/pids limits, XDG_RUNTIME_DIR reset survival, Linux fail-closed path refusals. Fixture-only; no live host, gameplay, release or deployment.
@athNdev
athNdev merged commit 3bcd2f8 into main Nov 19, 2026
12 checks passed
@athNdev
athNdev deleted the codex/node-rootless-runner branch November 19, 2026 03:45
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