Owner's decision: hard where Sharestead owns the filesystem, shown when set outside, otherwise soft (measured by Sharestead, enforced over SMB, weaknesses labelled, red bar when exceeded another way). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6.0 KiB
6.0 KiB
Sharestead — kickoff package
A web UI for Samba users, groups, shares, permissions, quotas and discovery. It lives entirely inside one LXC/VM or a plain Debian system, needs nothing on the Proxmox host, and keeps smb.conf as the source of truth, with hand edits shown in the UI.
Status: reviewed with the owner (2026-11-28). Name and repo decided; open decisions/questions below.
How to review (≈ 45 min)
| # | Document | What to check | Time |
|---|---|---|---|
| 1 | 01-discovery | existing projects, the gap, technical limits | 10 min |
| 2 | 02-requirements | is anything missing or wrongly prioritised? The MVP checklist at the end is the acceptance test | 10 min |
| 3 | mockups/index.html + 04-ux | Gitea shows the mockup's source: download it (Download button on the file page) and open the file in a browser, then click through. Do the screens and words feel right? | 10 min |
| 4 | 03-solution-design | architecture, stack, access mapping, quota approach, ADRs | 10 min |
| 5 | 05-project-plan | phases, test CT, risks | 5 min |
| 6 | 06-outlook | what could come later, what we won't do | 2 min |
| 7 | 07-security-and-testing | threat model, API security + keys, test levels, quality gates | 10 min |
Summary
- Gap confirmed: no existing project is native in an LXC and edits
smb.confboth ways and covers users + groups + permissions + quotas with a NAS-style UX. Community scripts only offer Cockpit and OMV. - Vision is feasible, with one honest limit: inside an LXC on mounted storage, quotas are soft (read-only when over the limit, checked periodically). Hard quotas work in VMs / bare metal.
- Proposed stack: one Go binary with a built-in Svelte UI, shipped as a
.deb. The community script installs it into a fresh LXC. - Extensible from day one: module system with capability detection, adapter layer for the OS, versioned REST API.
- The riskiest part (comment-preserving
smb.confround-trip) is tackled first, in phase 1b.
Decisions needed for kickoff
| # | Decision | Proposal | Alternatives |
|---|---|---|---|
| D1 | Project name | ✅ decided: Sharestead (2026-11-28) — no software with this name found; .dev/.org/.de free; Debian package name free |
— |
| D2 | Licence | ✅ decided: GPL-3.0 (2026-11-28) | — |
| D3 | Repo | ✅ decided: private on the owner's Gitea (nico.stoerzbach/sharestead); public on GitHub from the first stable release |
— |
| D4 | Stack | Go + Svelte, single binary (ADR-3) | Python + htmx |
| D5 | Source of truth | smb.conf round-trip (ADR-2) |
own include file only (simpler, but no "hand edits show up") |
| D6 | Packaging | native .deb, no Docker (ADR-1) |
— |
| D7 | Test CT | new privileged CT 151 sharestead-test (512 MB, small test dataset) — privileged so the kernel NFS server runs, like CT 110. Creating it needs your approval |
other ID / a VM |
| D8 | CT 110 after migration | Ansible keeps only the [global] base. The app owns shares, users and NFS exports (today Ansible-managed /etc/exports + an empty Cockpit file in exports.d). decisions.md gets updated |
Ansible keeps owning everything, and the app runs in include mode |
| D9 | ACLs on your share datasets (homelab only) | today acltype=off on all 4 datasets → mode A only (different access = separate share). Later, if you want different access for subfolders inside a share: zfs set acltype=posixacl via Ansible (host change, needs approval, no restart needed) |
stay with mode A |
| D10 | Protocols | SMB + NFS fully in the MVP (decided) → SFTP (v1) → WebDAV (v1.x) → FTP only for legacy devices (later). No AFP | all at once in v1 |
| D11 | Privilege separation | in v1, before going public (MVP: one root process with systemd sandboxing) | already in the MVP (slower start) |
| D12 | Versioning | SemVer, start with 0.1.0 as pre-release (no separate alpha), -rc.N before releases, channels dev/beta/stable, 1.0.0 = first stable + public (05 §2b) |
alpha/beta suffixes on every version |
Open questions
| # | Question | Why it matters |
|---|---|---|
| Q1 | TV: which model? How does it find media today: a "media server / DLNA" source, or an app (Kodi, VLC, Plex/Jellyfin client) that opens SMB? | DLNA module in the MVP vs NetBIOS/SMB settings. Some TVs need SMB1 (insecure) |
| Q2 | Quota: one limit per user across all shares, or limits per folder? → decided (2026-11-29): folder limits only. Personal folders: soft limit (built). Shares: hard limits shown (MVP) and managed where the filesystem is local (v1); elsewhere a soft limit (MVP). The per-user limit across shares was removed | data model + UI |
| Q3 | Cockpit: what specifically bothers you? | becomes UX requirements, so we don't rebuild the same problems |
| Q4 | NFS: which Linux devices mount it, and does your user there have UID 1000 (same as nico on the NAS)? Any non-Linux NFS clients (Proxmox storage, media players)? |
NFS trusts the client's UID — matching UIDs make "one user for everything" work |
| Q5 | QNAP: which features do you use today (recycle bin, snapshots/previous versions, Time Machine, media server, sync, photo app…)? | everything the new NAS must replace goes into the MVP or v1 |
| Q6 | Users: how many people, which devices (Windows / Mac / phones / TV)? | presets, Time Machine priority, mobile UI |
| Q7 | — |
After your review
- You answer Q1–Q7 and decide D1–D12, here or in chat.
- I update the docs (requirements, plan, ADRs) accordingly.
- ✅ Repo created. This package lives in
docs/planning/; issues and milestones follow. - You approve the test CT. Phase 1 starts.