"Your authentication has expired" in main branch #77

Closed
opened 2025-12-29 01:21:45 +01:00 by adam · 8 comments
Owner

Originally created by @kradalby on GitHub (Nov 14, 2021).

Originally assigned to: @juanfont on GitHub.

#126 seem to have broken part of the registration work flow, making the authentication expire and continuously returning that the clients authentication has expired.

The two clients I am experiencing this issue with has been registered with the "old" machine key workflow, which now seem to be broken due to the new "expiry" logic:

I wonder if there is something here:
https://github.com/juanfont/headscale/blob/main/api.go#L141-L166

But I need to dig a bit deeper to be able to replicate properly.

Hosts added with preauthkey does not seem to be affected.

Originally created by @kradalby on GitHub (Nov 14, 2021). Originally assigned to: @juanfont on GitHub. #126 seem to have broken part of the registration work flow, making the authentication expire and continuously returning that the clients authentication has expired. The two clients I am experiencing this issue with has been registered with the "old" machine key workflow, which now seem to be broken due to the new "expiry" logic: I wonder if there is something here: https://github.com/juanfont/headscale/blob/main/api.go#L141-L166 But I need to dig a bit deeper to be able to replicate properly. Hosts added with preauthkey does not seem to be affected.
adam added the bug label 2025-12-29 01:21:45 +01:00
adam closed this issue 2025-12-29 01:21:45 +01:00
Author
Owner

@paralin commented on GitHub (Nov 17, 2021):

Not sure if this is related, but I'm having a issue on "master" similarly:

  • Register a machine successfully
  • Reboot that machine
  • Now it shows "Logged out."
  • When using "tailscale up" it hangs, and I see repeated (one every second or so) POST to /machine/machine-id-here.

0.11 does not have the issue

@paralin commented on GitHub (Nov 17, 2021): Not sure if this is related, but I'm having a issue on "master" similarly: - Register a machine successfully - Reboot that machine - Now it shows "Logged out." - When using "tailscale up" it hangs, and I see repeated (one every second or so) POST to /machine/machine-id-here. 0.11 does not have the issue
Author
Owner

@kradalby commented on GitHub (Nov 18, 2021):

I think it is, I started to work on it yesterday, and I have a draft PR that has some work, but it's mostly refactor to get a better overview for now.

Will continue when I have some more time.

@kradalby commented on GitHub (Nov 18, 2021): I think it is, I started to work on it yesterday, and I have a draft PR that has some work, but it's mostly refactor to get a better overview for now. Will continue when I have some more time.
Author
Owner

@kradalby commented on GitHub (Nov 18, 2021):

@paralin in your steps above, do you use an authkey or the web flow?

@kradalby commented on GitHub (Nov 18, 2021): @paralin in your steps above, do you use an authkey or the web flow?
Author
Owner

@kradalby commented on GitHub (Nov 18, 2021):

@paralin Could you give the build on the tip of that draft PR a go?

https://github.com/juanfont/headscale/actions/runs/1475591575

It focuses on a fix for AuthKeys.

@kradalby commented on GitHub (Nov 18, 2021): @paralin Could you give the build on the tip of that draft PR a go? https://github.com/juanfont/headscale/actions/runs/1475591575 It focuses on a fix for AuthKeys.
Author
Owner

@paralin commented on GitHub (Nov 19, 2021):

@kradalby While that fixes re-connecting existing nodes, when adding a new node, it just hangs on the "tailscale up" command.

Using auth key.

@paralin commented on GitHub (Nov 19, 2021): @kradalby While that fixes re-connecting existing nodes, when adding a new node, it just hangs on the "tailscale up" command. Using auth key.
Author
Owner

@cure commented on GitHub (Nov 26, 2021):

@kradalby While that fixes re-connecting existing nodes, when adding a new node, it just hangs on the "tailscale up" command.

Using auth key.

@paralin that may have been caused by a different bug for which I just a merged a fix in #237. Can you confirm?

@cure commented on GitHub (Nov 26, 2021): > @kradalby While that fixes re-connecting existing nodes, when adding a new node, it just hangs on the "tailscale up" command. > > Using auth key. @paralin that may have been caused by a different bug for which I just a merged a fix in #237. Can you confirm?
Author
Owner

@paralin commented on GitHub (Nov 27, 2021):

@cure Seems to be working now, thanks. Will continue to test.

@paralin commented on GitHub (Nov 27, 2021): @cure Seems to be working now, thanks. Will continue to test.
Author
Owner

@kradalby commented on GitHub (Mar 20, 2022):

Closing as resolved, please reopen if not

@kradalby commented on GitHub (Mar 20, 2022): Closing as resolved, please reopen if not
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#77