feat: enable Taildrive via ACL policy (full-mesh preserved)

新增 config/policy.hujson 並啟用 policy.path:
- acls 保留 allow-all,維持原本全互通行為
- nodeAttrs 授予所有節點 drive:share / drive:access
- grants 開放 tailscale.com/cap/drive(所有 share, rw)

已部署至伺服器並驗證:policy valid、14 節點 online、peer ping 正常、
drive 能力出現在 netmap。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-18 18:33:08 +08:00
parent e404dd9036
commit 5e48016852
2 changed files with 53 additions and 1 deletions

View File

@@ -151,7 +151,7 @@ policy:
# mode: ACL 政策儲存方式(可選 file 或 database
mode: file
# path: 當 mode=file 時ACL HuJSON 檔案的路徑
path: ""
path: /etc/headscale/policy.hujson
dns: