1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-04-30 01:19:47 +02:00
juanfont.headscale/hscontrol/policy
Kristoffer Dalby 5a18e91317
fix auto approver on register and new policy (#2506)
* fix issue auto approve route on register bug

This commit fixes an issue where routes where not approved
on a node during registration. This cause the auto approval
to require the node to readvertise the routes.

Fixes #2497
Fixes #2485

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

* hsic: only set db policy if exist

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

* policy: calculate changed based on policy and filter

v1 is a bit simpler than v2, it does not pre calculate the auto approver map
and we cannot tell if it is changed.

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

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-03-31 15:55:07 +02:00
..
matcher Redo route code (#2422) 2025-02-26 16:22:55 +01:00
v1 fix auto approver on register and new policy (#2506) 2025-03-31 15:55:07 +02:00
v2 Experimental implementation of Policy v2 (#2214) 2025-03-10 16:20:29 +01:00
pm.go Experimental implementation of Policy v2 (#2214) 2025-03-10 16:20:29 +01:00
policy_test.go allow users to be defined with @ in v1 (#2495) 2025-03-30 11:19:05 +00:00
policy.go Experimental implementation of Policy v2 (#2214) 2025-03-10 16:20:29 +01:00