1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/.github/workflows
Kristoffer Dalby ea53078dde 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
..
build.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
check-generated.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
check-tests.yaml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
docs-deploy.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
docs-test.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
gh-action-integration-generator.go .github/workflows: split long TestAutoApproveMultiNetwork into multiple jobs 2025-12-17 09:32:05 +01:00
gh-actions-updater.yaml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
integration-test-template.yml .github/workflows: split long TestAutoApproveMultiNetwork into multiple jobs 2025-12-17 09:32:05 +01:00
lint.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
nix-module-test.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
release.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
stale.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
test-integration.yaml integration: add test for tagged→user-owned conversion panic 2026-02-02 14:53:27 +00:00
test.yml .github/workflows: prebuilt integration test artifacts (#2954) 2025-12-12 23:01:52 +01:00
update-flake.yml cmd/hi: fixes and qol (#2649) 2025-06-23 13:43:14 +02:00