headscale nodes list does not always show user #1176

Open
opened 2025-12-29 02:28:43 +01:00 by adam · 2 comments
Owner

Originally created by @kradalby on GitHub (Dec 18, 2025).

Using 0.28.0-beta.1, I am not seeing a user owning my devices when issuing headscale nodes list:

[root@headscale:~]# headscale node list
ID | Hostname    | Name        | MachineKey | NodeKey | User | IP addresses                                             | Ephemeral | Last seen           | Expiration          | Connected | Expired
2  | main        | main        | [4naEc]    | [YY2B8] |      | 100.109.78.169, fd7a:115c:a1e0:6591:35c2:779d:10f4:6f63  | false     | 2025-12-18 13:10:27 | 0001-01-01 00:00:00 | online    | no

In this setup, I am using a Google OIDC setup.

Originally created by @kradalby on GitHub (Dec 18, 2025). Using `0.28.0-beta.1`, I am not seeing a user owning my devices when issuing `headscale nodes list`: ``` [root@headscale:~]# headscale node list ID | Hostname | Name | MachineKey | NodeKey | User | IP addresses | Ephemeral | Last seen | Expiration | Connected | Expired 2 | main | main | [4naEc] | [YY2B8] | | 100.109.78.169, fd7a:115c:a1e0:6591:35c2:779d:10f4:6f63 | false | 2025-12-18 13:10:27 | 0001-01-01 00:00:00 | online | no ``` In this setup, I am using a Google OIDC setup.
adam added the bughelp wantedgood first issueno-stale-botCLI labels 2025-12-29 02:28:43 +01:00
Author
Owner

@rittycat commented on GitHub (Dec 18, 2025):

I noticed this occurs with OIDC owners in v0.27.1/2 as well. They just don't appear in the user column at all (I presume because they're "Email" users instead of users with usernames?)

@rittycat commented on GitHub (Dec 18, 2025): I noticed this occurs with OIDC owners in v0.27.1/2 as well. They just don't appear in the user column at all (I presume because they're "Email" users instead of users with usernames?)
Author
Owner

@kradalby commented on GitHub (Dec 18, 2025):

Yes that make sense, I suspect we just look at .Name, when we should be calling .Username()

@kradalby commented on GitHub (Dec 18, 2025): Yes that make sense, I suspect we just look at `.Name`, when we should be calling [`.Username()`](https://github.com/juanfont/headscale/blob/main/hscontrol/types/users.go#L109)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1176