handle register auth errors (#2435)

* 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 #2434

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* changelog

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby
2025-02-23 08:02:46 -08:00
committed by GitHub
parent b220fb7d51
commit bcff0eaae7
3 changed files with 132 additions and 30 deletions

View File

@@ -14,6 +14,13 @@
- View of config, policy, filter, ssh policy per node, connected nodes and
DERPmap
## 0.25.1 (2025-02-18)
### Changes
- Fix issue where registration errors are sent correctly
[#2435](https://github.com/juanfont/headscale/pull/2435)
## 0.25.0 (2025-02-11)
### BREAKING