headscale/hscontrol
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
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
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 feat: derpmap field in config (#1823) 2024-10-17 05:34:20 -06:00
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.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
auth_test.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
grpcv1.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
handlers.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
metrics.go Handle /derp/latency-check (#2227) 2024-11-06 15:59:38 +01:00
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 Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
tailsql.go Use result of fmt.Errorf call (#1668) 2024-02-15 11:02:54 +01:00