headscale/.github
Kristoffer Dalby ea53078dde
Some checks failed
Tests / test (push) Has been cancelled
integration: add test for tagged→user-owned conversion panic
Add TestTagsAuthKeyConvertToUserViaCLIRegister that reproduces the
exact panic from #3038: register a node with a tags-only PreAuthKey
(no user), force reauth with empty tags, then register via CLI with
a user. The mapper panics on node.Owner().Model().ID when User is nil.

The critical detail is using a tags-only PreAuthKey (User: nil). When
the key is created under a user, the node inherits the User pointer
from createAndSaveNewNode and the bug is masked.

Also add Owner() validity assertions to the existing unit test
TestTaggedNodeWithoutUserToDifferentUser to catch the nil pointer
at the unit test level.

Updates #3038
2026-02-02 14:53:27 +00:00
..
ISSUE_TEMPLATE .github/ISSUE_TEMPLATE: add node number to environment 2025-09-09 19:04:23 +02:00
workflows integration: add test for tagged→user-owned conversion panic 2026-02-02 14:53:27 +00:00
CODEOWNERS add nblock to doc owners (#2207) 2024-11-04 10:12:50 -06: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