headscale/hscontrol
Kristoffer Dalby 77ba225cdb db: treat Go module pseudo-versions as dev builds
Untagged main-sha builds inherit a Go module pseudo-version from
runtime/debug.BuildInfo (vX.Y.Z-<timestamp>-<hash>). isDev only
filtered "", "dev", and "(devel)", so the pseudo-version was stored
in database_versions and the next real release tripped the
multi-minor upgrade guard:

    headscale version v0.29.0-beta.1 cannot be used with a database
    last used by v0.0.0-20260520093041-e4e742c776ee, upgrading more
    than one minor version at a time is not supported

Add pseudoVersionTime, a regex + time.Parse predicate covering all
three Go pseudo-version forms (v0.0.0 base, pre-release ancestor,
release ancestor), and delegate from isDev. The dev gate at
db.go:790 already prevents pseudo-versions from being written, so
already-poisoned databases self-heal on the next real-release start.

Fixes #3281
2026-05-26 17:29:13 +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 Go module pseudo-versions as dev builds 2026-05-26 17:29:13 +02:00
derp all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
dns all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
mapper capver, types: bump to tailscale v1.98, drop LegacyDERPString 2026-05-22 11:22:01 +02:00
policy all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
servertest all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
state all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
templates all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
types capver, types: bump to tailscale v1.98, drop LegacyDERPString 2026-05-22 11:22:01 +02:00
util all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
app.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +02:00
app_test.go app: add security headers middleware 2026-04-17 16:31:49 +01:00
auth.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
auth_tags_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +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: pin outer RemoteAddr onto tunnel requests 2026-05-20 11:30:41 +02:00
noise_test.go noise: pin outer RemoteAddr onto tunnel requests 2026-05-20 11:30:41 +02:00
oidc.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +02:00
oidc_confirm_test.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +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 oidc: make email verification configurable 2025-12-18 11:42:32 +00:00
platform_config.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
poll.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +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