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
Bug description
I have two preauth keys A and B, and a new client. I first use A to join headscale and this client successfully joins user A. After that I use B on the client and the client does not switch to user B, it is still on A. Is this correct?
Furthermore fast account switching with multiple users on the same headscale instance is currently not working (afaict).
I suspect the same reason under the hood, headscale might be using the machine id/key for a more unique identifier than it should be.
I tested:
joining via preauth key, subsequent login via preauth key for second user -> no user switch, no second account, just a renegotiation of node key
joining via preauth key, subsequent login via OIDC -> oidc fails, in the log i see could not register machine error="machine was previously registered with a different user"
Activity
ItsShadowCone commentedon Apr 7, 2023
Furthermore fast account switching with multiple users on the same headscale instance is currently not working (afaict).
I suspect the same reason under the hood, headscale might be using the machine id/key for a more unique identifier than it should be.
I tested:
login
via preauth key for second user -> no user switch, no second account, just a renegotiation of node keylogin
via OIDC -> oidc fails, in the log i seecould not register machine error="machine was previously registered with a different user"
login
via preauth key -> same as Bump websocket-extensions from 0.1.3 to 0.1.4 in /frontend #1. preauth key changes nothing, except for the node key.pallabpain commentedon Apr 16, 2023
You should be able to fast-switch users seamlessly if you do the following after logging in with preauth key A.
I've written an implementation that does exactly this in one of the projects that I am working on.
ItsShadowCone commentedon Apr 17, 2023
I tried it today on headscale 0.21.0 and it does not work.
tailscale switch --list
only shows a single user.Carseason commentedon Apr 28, 2023
me to
github-actions commentedon Oct 26, 2023
This issue is stale because it has been open for 180 days with no activity.
ItsShadowCone commentedon Oct 29, 2023
i believe it is still relevant however
github-actions commentedon Jan 28, 2024
This issue is stale because it has been open for 90 days with no activity.
ItsShadowCone commentedon Feb 1, 2024
Did anyone test this for v0.23.0?
21 remaining items