headscale/hscontrol/db
Kristoffer Dalby 45752db0f6
Some checks are pending
Build / build-nix (push) Waiting to run
Build / build-cross (GOARCH=386 GOOS=linux) (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=5) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=6) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=7) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Waiting to run
Tests / test (push) Waiting to run
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.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
api_key_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
db.go do not allow preauth keys to be deleted if assigned to node (#2396) 2025-02-01 10:31:13 +01:00
db_test.go use dedicated registration ID for auth flow (#2337) 2025-01-26 22:20:11 +01:00
ip.go use tsaddr library and cleanups (#2150) 2024-10-02 09:06:09 +02:00
ip_test.go more linter fixups (#2212) 2024-11-22 15:54:58 +00:00
node.go Rewrite authentication flow (#2374) 2025-02-01 09:16:51 +00:00
node_test.go Rewrite authentication flow (#2374) 2025-02-01 09:16:51 +00:00
policy.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
preauth_keys.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
preauth_keys_test.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
routes.go Fix typos 2025-01-09 10:38:25 +01:00
routes_test.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.go no edit of oidc users, minimum hostname length (#2393) 2025-02-01 09:40:37 +00:00
users_test.go fix tags not resolving to username if email is present (#2309) 2024-12-19 13:10:10 +01:00