1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-02-20 00:18:41 +01:00
juanfont.headscale/hscontrol
Kristoffer Dalby 45752db0f6
Return better web errors to the user (#2398)
* add dedicated http error to propagate to user

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

* classify user errors in http handlers

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

* move validation of pre auth key out of db

This move separates the logic a bit and allow us to
write specific errors for the caller, in this case the web
layer so we can present the user with the correct error
codes without bleeding web stuff into a generic validate.

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

* update changelog

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

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-01 15:25:18 +01:00
..
assets
capver initial capver packet tracking version (#2391) 2025-01-30 21:49:09 +00:00
db Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
derp
dns fixes to extra-record file watcher (#2298) 2024-12-16 11:26:56 +01:00
mapper use headscale server url as domain instead of base_domain (#2338) 2025-01-16 18:05:20 +01:00
notifier Fix typos 2025-01-09 10:38:25 +01:00
policy simplify findUserByToken in ACL, add missing testcases (#2388) 2025-01-30 11:35:49 +01:00
templates use dedicated registration ID for auth flow (#2337) 2025-01-26 22:20:11 +01:00
types do not allow preauth keys to be deleted if assigned to node (#2396) 2025-02-01 10:31:13 +01:00
util no edit of oidc users, minimum hostname length (#2393) 2025-02-01 09:40:37 +00:00
app.go Rewrite authentication flow (#2374) 2025-02-01 09:16:51 +00:00
auth_test.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
auth.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
grpcv1_test.go
grpcv1.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
handlers.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
metrics.go
noise.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
oidc.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
platform_config.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
poll.go Fix typos 2025-01-09 10:38:25 +01:00
suite_test.go
tailsql.go