headscale/hscontrol
Kristoffer Dalby 9b8949727d db: treat unknown pre-auth key as not found
An unknown or deleted key returned a bare error matching neither the
not-found nor pre-auth-key checks, so registration returned a server error
instead of 401. Wrap gorm.ErrRecordNotFound.

Updates #3312
2026-06-15 20:29:15 +02:00
..
assets assets: fix logo alignment and error icon centering 2026-04-13 17:23:47 +01:00
capver capver, types: bump to tailscale v1.98, drop LegacyDERPString 2026-05-22 11:22:01 +02:00
db db: treat unknown pre-auth key as not found 2026-06-15 20:29:15 +02:00
derp derp: clone regions when merging DERP maps 2026-06-08 10:04:49 +02:00
dns dns: release lock before extra-records channel send 2026-06-08 10:04:49 +02:00
mapper mapper: gate broadcast sends until a connection's initial map is delivered 2026-06-11 16:28:25 +02:00
policy policy: read pm.pol under the mutex 2026-06-11 16:28:25 +02:00
servertest servertest: add logout/relogin storm repro with poll churn 2026-06-11 16:28:25 +02:00
state state: update node in place on pre-auth-key re-registration 2026-06-15 20:29:15 +02:00
templates all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
types types/change: add NodeKeyRotated for relogin peer patch 2026-06-15 12:02:39 +02:00
util util: check RNG error before slicing url-safe random string 2026-06-08 10:04:49 +02:00
app.go types: lock tailcfg DNS config access for extra-records updates 2026-06-08 10:04:49 +02:00
app_test.go app: add security headers middleware 2026-04-17 16:31:49 +01:00
auth.go auth: clamp logout expiry to now 2026-06-11 16:28:25 +02:00
auth_tags_test.go test: assert NodeKey hijack is rejected on re-auth 2026-06-09 15:21:18 +02:00
auth_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
debug.go all: mechanical lint fixes 2026-05-19 09:55:22 +02:00
grpcv1.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
grpcv1_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
handlers.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
handlers_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
metrics.go metrics, policy/v2: drop unused scaffolding + nil-error returns 2026-05-19 09:55:22 +02:00
noise.go noise: re-delegate SSH check when the auth session is missing (#3306) 2026-06-10 11:48:02 +02:00
noise_test.go noise: re-delegate SSH check when the auth session is missing (#3306) 2026-06-10 11:48:02 +02:00
oidc.go oidc: set SameSite=Lax on state/nonce CSRF cookies 2026-06-09 15:21:18 +02:00
oidc_confirm_test.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +02:00
oidc_cookiename_test.go oidc: avoid slice panic in getCookieName for short values 2026-06-08 10:04:49 +02:00
oidc_template_test.go oidc: render HTML error pages for browser-facing failures 2026-04-13 17:23:47 +01:00
oidc_test.go hscontrol: satisfy golangci-lint on changed lines 2026-06-09 15:21:18 +02:00
platform_config.go hscontrol: read Apple platform via chi.URLParam, not mux.Vars 2026-06-05 15:00:59 +02:00
platform_config_test.go hscontrol: read Apple platform via chi.URLParam, not mux.Vars 2026-06-05 15:00:59 +02:00
poll.go state, poll: refcount poll sessions, mark offline only on last release 2026-06-11 16:28:25 +02:00
poll_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
realip.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
realip_test.go hscontrol: gate proxy header trust on trusted_proxies 2026-05-18 17:17:55 +02:00
tailsql.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +02:00
templates_consistency_test.go Update links to Tailscale documentation 2026-04-18 09:33:41 +02:00