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

+6
View File
@@ -44,6 +44,12 @@ log:
level: info
format: text
# ACL policy, loaded from a HuJSON file (see policy.hujson, mounted into the
# container). headscale uses Tailscale's legacy "acls" format, not "grants".
policy:
mode: file
path: /etc/headscale/policy.hujson
# Magic DNS for the tailnet. base_domain becomes the suffix for node
# DNS names (e.g. laptop.__TAILNET_DOMAIN__).
dns: