1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-02-20 00:18:41 +01:00
juanfont.headscale/hscontrol/db
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
..
testdata fix postgres migration issue with 0.24 (#2367) 2025-01-23 14:58:42 +01:00
api_key_test.go
api_key.go
db_test.go use dedicated registration ID for auth flow (#2337) 2025-01-26 22:20:11 +01:00
db.go do not allow preauth keys to be deleted if assigned to node (#2396) 2025-02-01 10:31:13 +01:00
ip_test.go more linter fixups (#2212) 2024-11-22 15:54:58 +00:00
ip.go
node_test.go Rewrite authentication flow (#2374) 2025-02-01 09:16:51 +00:00
node.go Rewrite authentication flow (#2374) 2025-02-01 09:16:51 +00:00
policy.go
preauth_keys_test.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
preauth_keys.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
routes_test.go Fix typos 2025-01-09 10:38:25 +01:00
routes.go Fix typos 2025-01-09 10:38:25 +01:00
suite_test.go fix postgres migration issue with 0.24 (#2367) 2025-01-23 14:58:42 +01:00
text_serialiser.go use gorm serialiser instead of custom hooks (#2156) 2024-10-02 11:41:58 +02:00
users_test.go fix tags not resolving to username if email is present (#2309) 2024-12-19 13:10:10 +01:00
users.go no edit of oidc users, minimum hostname length (#2393) 2025-02-01 09:40:37 +00:00