feat(headscale): add file-based ACL policy

Ship policy.hujson (mounted + installed on first deploy, edits preserved) and
wire policy.mode=file / policy.path in config.yaml. Translate the Tailscale
"grants" default into headscale's legacy "acls" format (self-access, tag:shared,
Tailscale SSH), since headscale 0.28 doesn't support grants. Embed in deploy.sh
and document `headscale policy check`.
This commit is contained in:
57_Wolve committed 2026-06-12 16:04:24 -05:00
1 parent 25f20037e9
commit 573785f2cc
6 files changed
+167 -64

No files matched your search

+1
View File
@@ -55,6 +55,7 @@ services:
- /var/run/headscale
volumes:
- ./config.yaml:/etc/headscale/config.yaml:ro
- ./policy.hujson:/etc/headscale/policy.hujson:ro
- headscale-data:/var/lib/headscale
healthcheck:
test: ["CMD", "headscale", "health"]