You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logging in a node with a preauthkey logs in as the previous user that was logged in on the same node, i.e. after performing the following three steps on the same node:
Login with user A's key
Logout A
Login with user B's key
the result is that user A is logged in even though user B's key is used. See full terminal session with the steps to reproduce below. I noticed this with release 0.22.3 when changing the user for some nodes and although the new key was used the same old user was still logged in. The MWE below is with v0.23.0-alpha7.
Environment
OS: Ubuntu 22.04
Headscale version: v0.23.0-alpha7
Tailscale version: 1.64.0
To Reproduce
Install headscale on a clean machine (i.e. no existing config or database)
Bug description
Logging in a node with a preauthkey logs in as the previous user that was logged in on the same node, i.e. after performing the following three steps on the same node:
the result is that user A is logged in even though user B's key is used. See full terminal session with the steps to reproduce below. I noticed this with release 0.22.3 when changing the user for some nodes and although the new key was used the same old user was still logged in. The MWE below is with v0.23.0-alpha7.
Environment
To Reproduce
Install headscale on a clean machine (i.e. no existing config or database)
Create users
foo
andbar
with associated keys:Login using
foo
's key works as expected:Logout
foo
and login withbar
's key:Even though the key belongs to
bar
we are logged in asfoo
according to both client and server:Both keys are marked as used:
Logs and attachments
/etc/headscale/config.yml
installed with .deb.The text was updated successfully, but these errors were encountered: