1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-10-23 11:19:19 +02:00
juanfont.headscale/hscontrol/types
Andrey Bobelev c4a8c038cd fix: return valid AuthUrl in followup request on expired reg id
- tailscale client gets a new AuthUrl and sets entry in the regcache
- regcache entry expires
- client doesn't know about that
- client always polls followup request а gets error

When user clicks "Login" in the app (after cache expiry), they visit
invalid URL and get "node not found in registration cache". Some clients
on Windows for e.g. can't get a new AuthUrl without restart the app.

To fix that we can issue a new reg id and return user a new valid
AuthUrl.

RegisterNode is refactored to be created with NewRegisterNode() to
autocreate channel and other stuff.
2025-10-11 05:57:39 +02:00
..
change mapper: send change instead of full update (#2775) 2025-09-17 14:23:21 +02:00
testdata Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
api_key.go
common_test.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
common.go fix: return valid AuthUrl in followup request on expired reg id 2025-10-11 05:57:39 +02:00
config_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
config.go chore: make reg cache expiry tunable 2025-10-11 05:57:39 +02:00
const.go
node_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
node.go {policy, node}: allow return paths in route reduction (#2767) 2025-09-12 11:47:51 +02:00
policy.go
preauth_key_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
preauth_key.go lint and leftover 2025-09-09 09:40:00 +02:00
routes.go
types_clone.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
types_view.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
users_test.go users: harden, test, and add cleaner of identifier (#2593) 2025-05-14 16:45:14 +02:00
users.go lint and leftover 2025-09-09 09:40:00 +02:00
version.go cli: use gobuild version handling (#2770) 2025-09-12 11:47:31 +02:00