mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-19 20:04:32 +09:00
cli: check policies offline
tests and sshTests run against stand-in users and nodes built from the policy. --database, --server and the policy check stub are gone. Fixes #3355
This commit is contained in:
1 parent
f8158a0a66
commit
e815fc244d
10 files changed
+575
-257
No files matched your search
+1
-1
@@ -153,7 +153,7 @@ Headscale checks if the policy is valid during startup and refuses to start if i
|
||||
indicates which part of the policy is invalid. Follow these steps to fix your policy:
|
||||
|
||||
- Dump the policy to a file: `headscale policy get --bypass-server-and-access-database-directly > policy.json`
|
||||
- Edit and fixup `policy.json`. Use the command `headscale policy check --file policy.json` to validate the policy.
|
||||
- Edit and fixup `policy.json`. Use the command `headscale check policy --file policy.json` to validate the policy.
|
||||
- Load the modified policy: `headscale policy set --bypass-server-and-access-database-directly --file policy.json`
|
||||
- Start Headscale as usual.
|
||||
|
||||
|
||||
Reference in new issue
Block a user