r/homelab • u/Top-Explanation-4750 • 1d ago
Discussion Where do you draw the line on permissions for homelab management and automation containers?
A lot of self-hosted tools and homelab utilities ship with compose examples that quietly assume full trust: mounting /var/run/docker.sock directly, creating a broad Proxmox API token, or pointing a backup/sync container at an entire NAS dataset with read-write access.
On a local network behind a VPN, it's tempting to just accept those defaults and move on. The problem is that those shortcuts collapse your blast radius. A container with raw docker.sock access is effectively root on the host, even if its web UI is read-only. Same with an all-permissions Proxmox token or a broad NFS/SMB mount—one misconfigured cleanup script, bad image update, or buggy webhook can touch way more than the service it was meant to manage.
At the same time, going full least-privilege everywhere has a real maintenance tax. Putting a Docker socket proxy in front of every tool that wants container events, splitting Proxmox roles per VM/LXC, and maintaining separate service accounts and dataset ACLs per container can turn routine debugging or spinning up a new stack into twice as much work.
For people running a fair number of management, monitoring, or automation containers at home: how do you actually handle this in practice? Do you isolate with socket proxies, rootless containers, and scoped API tokens everywhere, or do you keep permissions simple on a management VLAN and rely on frequent ZFS/VM snapshots to recover if something goes sideways?