Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Your authentication has expired" in main branch #226

Closed
kradalby opened this issue Nov 14, 2021 · 8 comments
Closed

"Your authentication has expired" in main branch #226

kradalby opened this issue Nov 14, 2021 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@kradalby
Copy link
Collaborator

#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.

@kradalby kradalby added the bug Something isn't working label Nov 14, 2021
@juanfont juanfont self-assigned this Nov 15, 2021
@paralin
Copy link

paralin commented 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

@kradalby
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

@kradalby
Copy link
Collaborator Author

@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.

@paralin
Copy link

paralin commented 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.

@cure
Copy link
Contributor

cure commented 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?

@paralin
Copy link

paralin commented Nov 27, 2021

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

@kradalby
Copy link
Collaborator Author

Closing as resolved, please reopen if not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants