1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/hscontrol/types
Kristoffer Dalby 5767ca5085 change: smarter change notifications
This commit replaces the ChangeSet with a simpler bool based
change model that can be directly used in the map builder to
build the appropriate map response based on the change that
has occured. Previously, we fell back to sending full maps
for a lot of changes as that was consider "the safe" thing to
do to ensure no updates were missed.

This was slightly problematic as a node that already has a list
of peers will only do full replacement of the peers if the list
is non-empty, meaning that it was not possible to remove all
nodes (if for example policy changed).

Now we will keep track of last seen nodes, so we can send remove
ids, but also we are much smarter on how we send smaller, partial
maps when needed.

Fixes #2389

Signed-off-by: Kristoffer Dalby <kristoffer@dalby.cc>
2025-12-16 10:12:36 +01:00
..
change change: smarter change notifications 2025-12-16 10:12:36 +01:00
testdata Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
api_key.go types: make pre auth key use bcrypt (#2853) 2025-11-12 16:36:36 +01:00
common_test.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
common.go modernize: run gopls modernize to bring up to 1.25 (#2920) 2025-12-01 19:40:25 +01:00
config_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
config.go types: add option to disable taildrop, improve tests (#2955) 2025-12-12 11:35:16 +01:00
const.go
node_tags_test.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
node_test.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
node.go policy: more accurate node change 2025-12-16 10:12:36 +01:00
policy.go
preauth_key_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
preauth_key.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
routes.go
types_clone.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
types_view.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
users_test.go users: harden, test, and add cleaner of identifier (#2593) 2025-05-14 16:45:14 +02:00
users.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
version.go cli: use gobuild version handling (#2770) 2025-09-12 11:47:31 +02:00