[Bug] headscale server + user credentials are not memorized by Tailscale client (macOS) #1138

Open
opened 2025-12-29 02:28:30 +01:00 by adam · 1 comment
Owner

Originally created by @ndx1905-github on GitHub (Nov 8, 2025).

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Headscale server seems to work well.
This is a problem with the Tailscale client on a machine with MacOS. However, Tailscale does not take bug requests unless you are connected to the Tailscale server, not a head scale server.

Also, headscale is only usable if the Tailscale clients work properly, so I share this with you.

Problem is pretty simple : each time I want to connect with the macOS client, it forgets the head scale configuration and reverts back to Tailscale server, which means I need to reauthenticate completely every time I connect : add the head scale ODIC server name again in the debug options and authenticate on the OIDC webpage.

If I disconnect from headscale, even without exiting the Tailscale client, then all head scale credentials are immediately lost and I need to add the OIDC server again in the debug options, to reauthenticate again.

As a consequence, every new connection appears in headscale server side as a new client and is assigned a new ip on the talent. So the same mac appears multiple times, each new session is seen as a new machine
Mac 100.64.0.18 05/11/2025 18:50:22
Mac-rxu03fzh 100.64.0.19 06/11/2025 18:30:28
Mac-xdjaux5o 100.64.0.20 07/11/2025 09:41:19
Mac-e1ai0wtk 100.64.0.21 07/11/2025 15:23:34
Mac-tea2r3mg 100.64.0.22 08/11/2025 18:46:17
and so forth

See screen recording here :

https://github.com/user-attachments/assets/f7ed41ae-9dc5-4e49-b496-169796ec8c94

Expected Behavior

Headscale OIDC server address and user credentials should be memorized by the Tailscale client.

Steps To Reproduce

On MacOS ventura 13.7.8, with Tailscale 1.90.6 standalone variant, set up a head scale server instead of Tailscale server, connect to it.
Disconnect from it.
Next time you want to connect you have to set up the head scale server again.

Environment

- OS: debian 12, installation of headscale + OIDC managed by yunohost
- Headscale version: 0.26.1~ynh3
- Tailscale version: macOS 1.90.6 standalone variant

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Debug information

don't have access to debug info that can help. And again, Tailscale does not take bug submissions if you're not connected to their servers.

Image
Originally created by @ndx1905-github on GitHub (Nov 8, 2025). ### Is this a support request? - [x] This is not a support request ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior **Headscale server seems to work well. This is a problem with the Tailscale client on a machine with MacOS. However, Tailscale does not take bug requests unless you are connected to the Tailscale server, not a head scale server.** Also, headscale is only usable if the Tailscale clients work properly, so I share this with you. Problem is pretty simple : each time I want to connect with the macOS client, it forgets the head scale configuration and reverts back to Tailscale server, which means I need to reauthenticate completely every time I connect : add the head scale ODIC server name again in the debug options and authenticate on the OIDC webpage. If I disconnect from headscale, even without exiting the Tailscale client, then all head scale credentials are immediately lost and I need to add the OIDC server again in the debug options, to reauthenticate again. As a consequence, every new connection appears in headscale server side as a new client and is assigned a new ip on the talent. So the same mac appears multiple times, each new session is seen as a new machine Mac 100.64.0.18 05/11/2025 18:50:22 Mac-rxu03fzh 100.64.0.19 06/11/2025 18:30:28 Mac-xdjaux5o 100.64.0.20 07/11/2025 09:41:19 Mac-e1ai0wtk 100.64.0.21 07/11/2025 15:23:34 Mac-tea2r3mg 100.64.0.22 08/11/2025 18:46:17 and so forth See screen recording here : https://github.com/user-attachments/assets/f7ed41ae-9dc5-4e49-b496-169796ec8c94 ### Expected Behavior Headscale OIDC server address and user credentials should be memorized by the Tailscale client. ### Steps To Reproduce On MacOS ventura 13.7.8, with Tailscale 1.90.6 standalone variant, set up a head scale server instead of Tailscale server, connect to it. Disconnect from it. Next time you want to connect you have to set up the head scale server again. ### Environment ```markdown - OS: debian 12, installation of headscale + OIDC managed by yunohost - Headscale version: 0.26.1~ynh3 - Tailscale version: macOS 1.90.6 standalone variant ``` ### Runtime environment - [ ] Headscale is behind a (reverse) proxy - [ ] Headscale runs in a container ### Debug information don't have access to debug info that can help. And again, Tailscale does not take bug submissions if you're not connected to their servers. <img width="884" height="392" alt="Image" src="https://github.com/user-attachments/assets/10c0b61c-8997-4fdb-9996-acbdb8a888c3" />
adam added the bug label 2025-12-29 02:28:30 +01:00
Author
Owner

@pidlug commented on GitHub (Dec 14, 2025):

I have the same behavior.
Disconnecting or just laptop restart loses connection and requires new registration.
It happens only with MacOS client. Other clients (Linux, Windows) behave normally with the same Headscale server.

Runtime environment

Headscale + Headplane running in docker with reverse proxy (HAProxy)

headscale version v0.27.1+dirty
commit: f658a8eacd
build time: 2025-11-11T19:17:02Z
built with: go1.25.1 linux/amd64

Tailscale version: 1.92.2

macOS: 12.7.6 (21H1320), Darwin 21.6.0

@pidlug commented on GitHub (Dec 14, 2025): I have the same behavior. Disconnecting or just laptop restart loses connection and requires new registration. It happens only with MacOS client. Other clients (Linux, Windows) behave normally with the same Headscale server. ### Runtime environment Headscale + Headplane running in docker with reverse proxy (HAProxy) headscale version v0.27.1+dirty commit: f658a8eacd4d86edc65424b50635afed46ca4b2a build time: 2025-11-11T19:17:02Z built with: go1.25.1 linux/amd64 Tailscale version: 1.92.2 macOS: 12.7.6 (21H1320), Darwin 21.6.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1138