Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Use supported rootless Docker qualification networking
rcourtman5e471c1dd537
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 28cea8f357..879bf7992b 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -7311,11 +7311,17 @@ runtime setup to disposable nested Ubuntu/systemd hosts with no mounted hostdaemon socket. Qualification artifacts stay out of image layers: the imagemust pre-create their root-owned, mode-`0700` destination before the wrapperinjects the exact packet into a stopped disposable container. The wrapper+uses the supported `slirp4netns` rootless Docker driver only inside that outer+`--network none` boundary; selecting the unsupported `host` RootlessKit driver+or granting an outer default route is invalid qualification. The wrapperexercises each runtime in an isolated state root and emits thestandalone `secure-runtime-rootless-v1` receipt only after exact socketownership, daemon rootless attestation, installer pinning, direct telemetry,same-family typed-helper fallback, recovery without collector restart,ambiguity refusal, authority isolation, and cleanup are recorded.+Any failed runtime test must retain the disposable host's systemd journal and+container log before strict nonce-bound cleanup; a missing receipt never+silently substitutes for causal failure evidence.`scripts/release_control/secure_runtime_rootless_attestation_v1.py` validatesthe secret-free receipt against the governed rootless source manifest and thediff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex b816515a9c..a9cc8f3852 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -262,6 +262,9 @@ never mounts a host daemon socket, and records each host identity separately.The exact qualification packet remains outside the image layers; the imagemust pre-create its root-owned, mode-`0700` packet destination before thewrapper injects artifacts into each stopped disposable container.+Rootless Docker uses its supported `slirp4netns` driver inside the outer+`--network none` container only; an unsupported `host` RootlessKit driver or+an outer default route invalidates the proof.Its standalone `secure-runtime-rootless-v1` receipt must bind the exactqualification, collector, helper, installer, source-manifest, socket,fresh-install, legacy-migration, restart, fallback, recovery, ambiguity,@@ -270,6 +273,9 @@ local artifact-bound self-attestation. Checking in the harness or passing itsordinary contract tests is not live qualification. Until a completesecret-free receipt and attestation are retained, this surface remainsimplemented-but-unqualified and cannot change the opt-in safe-profile default.+Failed runtime tests must retain the disposable systemd journal and container+log before nonce-bound cleanup; absence of a receipt is not a replacement for+the causal failure record.Release builds and archives carry both helper and runner binaries for the fiveLinux targets (`amd64`, `arm64`, `armv7`, `armv6`, and `386`) with checksum,diff --git a/scripts/installtests/secure_runtime_rootless_qualification_test.go b/scripts/installtests/secure_runtime_rootless_qualification_test.goindex d4c0b11562..decdb1ad33 100644--- a/scripts/installtests/secure_runtime_rootless_qualification_test.go+++ b/scripts/installtests/secure_runtime_rootless_qualification_test.go@@ -566,10 +566,7 @@ func rootlessQualStartRootless(t *testing.T, d rootlessQualDaemon) {t.Helper()rootlessQualBestEffortStop(d.rootlessUnit)if d.runtime == "docker" {- args := []string{"--quiet", "--collect", "--unit", d.rootlessUnit, "--property=Type=exec", "--property=User=pulse-agent", "--property=Group=pulse-agent", "--",- "/usr/bin/env", "HOME=" + d.home, "XDG_RUNTIME_DIR=" + filepath.Dir(d.rootlessSock), "DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host", "DOCKERD_ROOTLESS_ROOTLESSKIT_PORT_DRIVER=none",- "/usr/bin/dockerd-rootless.sh", "--host=unix://" + d.rootlessSock, "--data-root=" + filepath.Join(d.home, "docker", "data"), "--exec-root=" + filepath.Join(d.home, "docker", "exec"), "--pidfile=" + filepath.Join(d.home, "docker", "dockerd.pid"), "--storage-driver=vfs", "--iptables=false", "--bridge=none"}- rootlessQualCommand(t, 20*time.Second, "systemd-run", args...)+ rootlessQualCommand(t, 20*time.Second, "systemd-run", rootlessQualDockerStartArgs(d)...)} else {rootlessQualCommand(t, 20*time.Second, "install", "-d", "-o", "pulse-agent", "-g", "pulse-agent", "-m", "0700", filepath.Dir(d.rootlessSock))rootlessQualCommand(t, 20*time.Second, "systemd-run", "--quiet", "--collect", "--unit", d.rootlessUnit, "--property=Type=exec", "--property=User=pulse-agent", "--property=Group=pulse-agent", "--",@@ -581,6 +578,12 @@ func rootlessQualStartRootless(t *testing.T, d rootlessQualDaemon) {rootlessQualCaptureIdentity(t, d)}+func rootlessQualDockerStartArgs(d rootlessQualDaemon) []string {+ return []string{"--quiet", "--collect", "--unit", d.rootlessUnit, "--property=Type=exec", "--property=User=pulse-agent", "--property=Group=pulse-agent", "--",+ "/usr/bin/env", "HOME=" + d.home, "XDG_RUNTIME_DIR=" + filepath.Dir(d.rootlessSock), "DOCKERD_ROOTLESS_ROOTLESSKIT_NET=slirp4netns", "DOCKERD_ROOTLESS_ROOTLESSKIT_PORT_DRIVER=none",+ "/usr/bin/dockerd-rootless.sh", "--host=unix://" + d.rootlessSock, "--data-root=" + filepath.Join(d.home, "docker", "data"), "--exec-root=" + filepath.Join(d.home, "docker", "exec"), "--pidfile=" + filepath.Join(d.home, "docker", "dockerd.pid"), "--storage-driver=vfs", "--iptables=false", "--bridge=none"}+}+func rootlessQualStartRootful(t *testing.T, d rootlessQualDaemon) {t.Helper()rootlessQualBestEffortStop(d.rootfulUnit)@@ -1363,6 +1366,7 @@ func TestRootlessQualificationGuardAndWrapperInvariants(t *testing.T) {`pulse-secure-runtime-rootless-qualification`, `qualification result != \"passed\"`,`openssl pkeyutl -sign -rawin -inkey`, `qualification output directory must have exact mode 0700`,`install -d -m 0700 /opt/pulse/packet`,+ `capture_qualification_container_diagnostics`, `journalctl --no-pager -n 2000`,`302a300506032b6570032100`, `len(spki) != len(prefix) + 32`,} {if !strings.Contains(script, required) {@@ -1389,6 +1393,21 @@ func TestRootlessQualificationGuardAndWrapperInvariants(t *testing.T) {}}+func TestRootlessQualificationDockerCommandUsesSupportedNetworkDriver(t *testing.T) {+ d := rootlessQualDaemon{+ rootlessUnit: "pulse-rootless-docker",+ rootlessSock: "/run/user/996/docker.sock",+ home: "/var/lib/pulse-rootless",+ }+ command := strings.Join(rootlessQualDockerStartArgs(d), "\x00")+ if !strings.Contains(command, "DOCKERD_ROOTLESS_ROOTLESSKIT_NET=slirp4netns") || !strings.Contains(command, "DOCKERD_ROOTLESS_ROOTLESSKIT_PORT_DRIVER=none") {+ t.Fatalf("rootless Docker command does not select the supported contained drivers: %q", command)+ }+ if strings.Contains(command, "DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host") {+ t.Fatalf("rootless Docker command selected the unsupported host network driver: %q", command)+ }+}+func runRootlessQualificationWithFakeDocker(t *testing.T, mode string) (string, string, error) {t.Helper()if _, err := exec.LookPath("python3"); err != nil {diff --git a/scripts/run-secure-runtime-rootless-qualification.sh b/scripts/run-secure-runtime-rootless-qualification.shindex 979e1afedf..b2560cee6c 100755--- a/scripts/run-secure-runtime-rootless-qualification.sh+++ b/scripts/run-secure-runtime-rootless-qualification.sh@@ -209,6 +209,14 @@ EOFdocker build --pull --no-cache --network default -t "${IMAGE_TAG}" -f "${PACKET_DIR}/Dockerfile" "${PACKET_DIR}" | tee "${OUTPUT_DIR}/image-build.log"docker image inspect "${IMAGE_TAG}" >"${OUTPUT_DIR}/qualification-image-inspect.json"+capture_qualification_container_diagnostics() {+ local runtime_name="$1"+ local container_id="$2"+ docker logs "${container_id}" >"${OUTPUT_DIR}/${runtime_name}-container.log" 2>&1 || true+ docker exec "${container_id}" journalctl --no-pager -n 2000 >"${OUTPUT_DIR}/${runtime_name}-journal.log" 2>&1 || true+ chmod 0600 "${OUTPUT_DIR}/${runtime_name}-container.log" "${OUTPUT_DIR}/${runtime_name}-journal.log"+}+run_runtime() {local runtime_name="$1"local container_name="pulse-rootless-qual-${runtime_name}-${SOURCE_COMMIT:0:8}-$$"@@ -227,7 +235,7 @@ run_runtime() {local deadline=$((SECONDS + 60))until docker exec "${container_id}" systemctl is-system-running --wait >/dev/null 2>&1; doif (( SECONDS >= deadline )); then- docker logs "${container_id}" >"${OUTPUT_DIR}/${runtime_name}-container.log" 2>&1 || true+ capture_qualification_container_diagnostics "${runtime_name}" "${container_id}"echo "ERROR: ${runtime_name} disposable systemd container did not become ready" >&2return 1fi@@ -242,23 +250,27 @@ run_runtime() {return 1fi- docker exec \- -e PULSE_SECURE_RUNTIME_ROOTLESS_QUALIFICATION=disposable-v1 \- -e "PULSE_ROOTLESS_RUNTIME=${runtime_name}" \- -e PULSE_ROOTLESS_RECEIPT=/run/rootless-receipt.json \- -e PULSE_ROOTLESS_SOURCE_HASHES=/opt/pulse/packet/source-hashes.json \- -e "PULSE_ROOTLESS_SOURCE_COMMIT=${SOURCE_COMMIT}" \- -e PULSE_SECURE_RUNTIME_COLLECTOR=/opt/pulse/packet/pulse-agent \- -e PULSE_SECURE_RUNTIME_COLLECTOR_SIGNATURE=/opt/pulse/packet/pulse-agent.sig \- -e PULSE_SECURE_RUNTIME_HELPER=/opt/pulse/packet/pulse-agent-helper \- -e PULSE_SECURE_RUNTIME_INSTALLER=/opt/pulse/packet/install.sh \- "${container_id}" /opt/pulse/packet/dockeragent.test \- -test.run '^TestSecureRuntimeRootlessQualification$' -test.count=1 -test.v -test.timeout=45m \- | tee "${OUTPUT_DIR}/${runtime_name}-test.log"+ if ! docker exec \+ -e PULSE_SECURE_RUNTIME_ROOTLESS_QUALIFICATION=disposable-v1 \+ -e "PULSE_ROOTLESS_RUNTIME=${runtime_name}" \+ -e PULSE_ROOTLESS_RECEIPT=/run/rootless-receipt.json \+ -e PULSE_ROOTLESS_SOURCE_HASHES=/opt/pulse/packet/source-hashes.json \+ -e "PULSE_ROOTLESS_SOURCE_COMMIT=${SOURCE_COMMIT}" \+ -e PULSE_SECURE_RUNTIME_COLLECTOR=/opt/pulse/packet/pulse-agent \+ -e PULSE_SECURE_RUNTIME_COLLECTOR_SIGNATURE=/opt/pulse/packet/pulse-agent.sig \+ -e PULSE_SECURE_RUNTIME_HELPER=/opt/pulse/packet/pulse-agent-helper \+ -e PULSE_SECURE_RUNTIME_INSTALLER=/opt/pulse/packet/install.sh \+ "${container_id}" /opt/pulse/packet/dockeragent.test \+ -test.run '^TestSecureRuntimeRootlessQualification$' -test.count=1 -test.v -test.timeout=45m \+ | tee "${OUTPUT_DIR}/${runtime_name}-test.log"; then+ capture_qualification_container_diagnostics "${runtime_name}" "${container_id}"+ chmod 0600 "${OUTPUT_DIR}/${runtime_name}-test.log"+ return 1+ fidocker cp "${container_id}:/run/rootless-receipt.json" "${local_receipt}"- docker logs "${container_id}" >"${OUTPUT_DIR}/${runtime_name}-container.log" 2>&1 || true- chmod 0600 "${local_receipt}" "${OUTPUT_DIR}/${runtime_name}-test.log" "${OUTPUT_DIR}/${runtime_name}-container.log"+ capture_qualification_container_diagnostics "${runtime_name}" "${container_id}"+ chmod 0600 "${local_receipt}" "${OUTPUT_DIR}/${runtime_name}-test.log"remove_qualification_container_strict "${container_id}"}