Skip to content

Serve dump and media as guest-writable SMB shares - #517

Merged
edgard merged 1 commit into
masterfrom
codex-samba-file-services
Nov 21, 2026
Merged

edgard merged 1 commit into
masterfrom
codex-samba-file-services

Conversation

@edgard

@edgard edgard commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Run one standalone Samba server in the existing selfhosted namespace. Forward the NAS LAN interface’s TCP port 445 to the pod. Restrict connections to permitted LAN sources and loopback.
  • Mount only the two named datasets and the read-only storage marker. Check the enrolled boot and both writable ZFS roots before listening. Guests use the existing writer UID with no supplementary root group.
  • Keep the guest server identity reproducible on pod replacement. Cross-namespace recovery fencing accounts for direct writable mounts of the data pool. Snapshot and Restic schedules continue to cover application data.

Validation

  • Ran task fmt, task test -- validation/test_wiki.py, task check, and git diff --check. Coverage included 43 applications, 65 raw manifests, and 28 offline tests.
  • Rendered the pinned Helm chart and passed the exact Deployment and both ConfigMaps through the live API server’s dry run in selfhosted. Confirmed the host IP and port, exact mounts, service-account token setting and two capabilities.
  • Tested the pinned image on a disposable Talos/OpenEBS system with two real ZFS filesystems. Guest and application UID 1000 could create, read, update, rename and delete one another’s files. Pod replacement preserved the server SID and data. A mismatched mount stopped startup. Guest access to the snapshot directory was denied.
  • macOS mounted both disposable shares as Guest and exercised file creation, byte verification, rename and deletion. The Samba client listed exactly two disk shares. The Mac’s share-list RPC returned a broken pipe on the forwarded nonstandard test port. Direct mounts passed. Production TCP 445 will be checked after rollout.
  • Kept one offline regression test because an ordinary Kubernetes schema check cannot detect a writable host-path consumer missed during cold recovery. It fails against the previous filter. Temporary fixtures and recovery data stayed outside the repository.

Wiki review

Updated the Samba app page, storage and networking architecture, Restic runbook, index, wiki log, README and validation guide. Reviewed the shared-media ownership decision and the GitOps namespace discovery path. November’s semantic review is already recorded.

@edgard
edgard merged commit 9ce0904 into master Nov 21, 2026
4 checks passed
@edgard
edgard deleted the codex-samba-file-services branch November 21, 2026 22:18
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