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:
6 files changed
+167
-64
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user