headscale/.github
Kristoffer Dalby 2b5e52b08b
validate policy against nodes, error if not valid (#2089)
* validate policy against nodes, error if not valid

this commit aims to improve the feedback of "runtime" policy
errors which would only manifest when the rules are compiled to
filter rules with nodes.

this change will in;

file-based mode load the nodes from the db and try to compile the rules on
start up and return an error if they would not work as intended.

database-based mode prevent a new ACL being written to the database if
it does not compile with the current set of node.

Fixes #2073
Fixes #2044

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* ensure stderr can be used in err checks

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* test policy set validation

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* add new integration test to ghaction

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* add back defer for cli tst

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-08-30 16:58:29 +02:00
..
ISSUE_TEMPLATE Issue 2045, Feature Request (#2071) 2024-08-27 11:03:51 +02:00
workflows validate policy against nodes, error if not valid (#2089) 2024-08-30 16:58:29 +02:00
CODEOWNERS CODEOWNER: add renovate config ohdearaugustin 2022-02-19 20:28:08 +01:00
FUNDING.yml Add ko-fi sponsor button 2022-12-22 17:25:49 +01:00
pull_request_template.md Add contributing document 2024-04-29 23:04:02 +02:00
renovate.json update readme and templates to clarify scope (#1437) 2023-05-10 08:03:13 +01:00