-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make acl_policy_path fatal if policy.path is not set
The alias manager in Cobra has some sharp edges and it seem to not work as we expect, causing it to have some silent failures with both config files and ENV. This commits makes the new policy.path variable mandatory and fixes the issue where the config file would not load. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
- Loading branch information
Showing
6 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
noise: | ||
private_key_path: "private_key.pem" | ||
|
||
prefixes: | ||
v6: fd7a:115c:a1e0::/48 | ||
v4: 100.64.0.0/10 | ||
|
||
database: | ||
type: sqlite3 | ||
|
||
server_url: "https://derp.no" | ||
|
||
acl_policy_path: "/etc/acl_policy.yaml" | ||
policy: | ||
type: file | ||
path: "/etc/policy.hujson" | ||
|
||
dns.magic_dns: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters