headscale/hscontrol/types
Kristoffer Dalby 3689f05407
Some checks failed
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled
NixOS Module Tests / nix-module-check (push) Has been cancelled
Tests / test (push) Has been cancelled
types: use Username() in User.Proto() when Name is empty
User.Proto() was returning u.Name directly, which is empty for OIDC
users who have their identifier in the Email field instead. This caused
"headscale nodes list" to show empty user names for OIDC-authenticated
nodes.

Only fall back to Username() when Name is empty, which provides a
display-friendly identifier (Email > ProviderIdentifier > ID). This
ensures OIDC users display their email while CLI users retain their
original Name.

Fixes #2972
2026-01-14 13:16:51 +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.go modernize: run gopls modernize to bring up to 1.25 (#2920) 2025-12-01 19:40:25 +01:00
common_test.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
config.go oidc: make email verification configurable 2025-12-18 11:42:32 +00:00
config_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
const.go improve testing of route failover logic 2024-04-15 12:31:53 +02:00
node.go gen: regenerate protobuf code 2026-01-14 09:32:46 +01:00
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
policy.go feat: implements apis for managing headscale policy (#1792) 2024-07-18 07:38:25 +02:00
preauth_key.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
preauth_key_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
routes.go Redo route code (#2422) 2025-02-26 16:22:55 +01:00
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.go types: use Username() in User.Proto() when Name is empty 2026-01-14 13:16:51 +01:00
users_test.go oidc: make email verification configurable 2025-12-18 11:42:32 +00:00
version.go cli: use gobuild version handling (#2770) 2025-09-12 11:47:31 +02:00