1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/hscontrol/mapper
Kristoffer Dalby 80a34ec3c1 state: set User pointer during tagged→user-owned conversion
processReauthTags sets UserID when converting a tagged node to
user-owned, but does not set the User pointer. When the node was
registered with a tags-only PreAuthKey (User: nil), the in-memory
NodeStore cache holds a node with User=nil. The mapper's
generateUserProfiles then calls node.Owner().Model().ID, which
dereferences the nil pointer and panics.

Set node.User alongside node.UserID in processReauthTags. Also add
defensive nil checks in generateUserProfiles to gracefully handle
nodes with invalid owners rather than panicking.

Fixes #3038
2026-02-02 14:52:47 +00:00
..
batcher_lockfree.go oidc: make email verification configurable 2025-12-18 11:42:32 +00:00
batcher_test.go db: use PolicyManager for RequestTags migration 2026-01-21 15:10:29 +01:00
batcher.go hscontrol: fix tag updates not propagating to node self view 2026-01-20 10:13:47 +01:00
builder_test.go bunch of qol (#2748) 2025-08-27 17:09:13 +02:00
builder.go change: smarter change notifications 2025-12-16 10:12:36 +01:00
mapper_test.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
mapper.go state: set User pointer during tagged→user-owned conversion 2026-02-02 14:52:47 +00:00
tail_test.go types: add option to disable taildrop, improve tests (#2955) 2025-12-12 11:35:16 +01:00