headscale/.github/workflows
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
..
build.yml update gh workflow actions (#1809) 2024-03-13 13:43:06 +01:00
check-tests.yaml update gh workflow actions (#1809) 2024-03-13 13:43:06 +01:00
docs-test.yml fix prettier 2024-04-21 17:32:41 +02:00
docs.yml update docs workflow (#1832) 2024-03-22 19:50:35 +01:00
gh-actions-updater.yaml update gh workflow actions (#1809) 2024-03-13 13:43:06 +01:00
lint.yml update gh workflow actions (#1809) 2024-03-13 13:43:06 +01:00
release.yml update gh workflow actions (#1809) 2024-03-13 13:43:06 +01:00
stale.yml update gh workflow actions (#1809) 2024-03-13 13:43:06 +01:00
test-integration.yaml validate policy against nodes, error if not valid (#2089) 2024-08-30 16:58:29 +02:00
test.yml fix route table migration wiping routes 0.22 -> 0.23 (#2076) 2024-08-27 18:54:28 +02:00
update-flake.yml update gh workflow actions (#1809) 2024-03-13 13:43:06 +01:00