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

handle register auth errors #2435

Merged
merged 2 commits into from
Feb 23, 2025
Merged

Conversation

kradalby
Copy link
Collaborator

This commit handles register auth errors as the
Tailscale clients expect. It returns the error as
part of a tailcfg.RegisterResponse and not as a
http error.

In addition it fixes a nil pointer panic triggered by not handling the errors as part of this chain.

Fixes #2434

This commit handles register auth errors as the
Tailscale clients expect. It returns the error as
part of a tailcfg.RegisterResponse and not as a
http error.

In addition it fixes a nil pointer panic triggered
by not handling the errors as part of this chain.

Fixes juanfont#2434

Signed-off-by: Kristoffer Dalby <[email protected]>
@kradalby kradalby requested a review from juanfont as a code owner February 18, 2025 19:52
Signed-off-by: Kristoffer Dalby <[email protected]>
@kradalby kradalby merged commit bcff0ea into juanfont:main Feb 23, 2025
135 of 141 checks passed
kradalby added a commit to kradalby/headscale that referenced this pull request Feb 25, 2025
* handle register auth errors

This commit handles register auth errors as the
Tailscale clients expect. It returns the error as
part of a tailcfg.RegisterResponse and not as a
http error.

In addition it fixes a nil pointer panic triggered
by not handling the errors as part of this chain.

Fixes juanfont#2434

Signed-off-by: Kristoffer Dalby <[email protected]>

* changelog

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants