carlos / platform Public

rootfs-check-volumes

carlos ship --check keeps its data volume between containers (#366, found by rootfs Plan 4 Task 11 on r10r): the data volume was a tmpfs local volume that Docker and Podman unmount when no container holds it, so the release container's migrations were gone before web started and examples/rails-shop failed the Rails guide's check with a 500. The data volume is now a plain local named volume; a one-shot helper container <prefix>prepare (named outside the worker grammar) runs the CLI's own linux binary already mounted as the probe, with the hidden verb rootfs-check-prepare, as root with only CAPCHOWN, --read-only, --network none, no-new-privileges: it Lstats the directory, refuses a symlink or non-directory, chmods 0700 then lchowns 65534:65534, no recursion. Every volume mount carries :nocopy so no runtime refills an empty volume from the image and resets its owner. Cleanup covers the helper on every path. Box witness on r10r (rootful podman): shop and a variant with an empty /data/instances/check both pass (release 2.9 s, web 200 after 2.8 s, worker running), no leftovers. No new user copy. Reviews: Astra R1 NOT READY (1 P1 name collision, 1 P2 test gap), R2 NOT READY (1 P1 copy-up), R3 READY; census rootfs-check-volumes approved by Astra on #280.

Commits 10
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity