tailscale/control/controlclient
Gesa Stupperich 5be05f2c0d control/controlclient: discard stale auth results in authRoutine
authRoutine snapshots c.loginGoal, runs TryLogin without the lock,
then writes back loggedIn/loginGoal under the lock. If a concurrent
Login() or Logout() changes the goal during the in-flight request,
the write-back overwrites the new intent: the more recent login goal
is silently dropped, or a logout is reverted to logged-in.

Gate both the URL-followup and success commits on c.loginGoal still
matching the goal we were processing. Stale results are ignored and
the next iteration runs with the current goal.

Updates #19326

Signed-off-by: Gesa Stupperich <gesa@tailscale.com>
2026-06-11 19:21:09 +01:00
..
auto_test.go control/controlclient: fix map context race 2026-06-01 13:44:19 -07:00
auto.go control/controlclient: discard stale auth results in authRoutine 2026-06-11 19:21:09 +01:00
client.go control,health,ipn: move IP forwarding check to health tracker (#19007) 2026-03-18 16:24:12 -04:00
controlclient_test.go control/controlclient: handle 429 responses during node registration 2026-04-15 18:54:08 +01:00
direct_test.go control/controlclient: handle 429 responses during node registration 2026-04-15 18:54:08 +01:00
direct.go net/netutil: add NewDefaultTransport to avoid http.DefaultTransport panics 2026-06-01 12:28:36 -07:00
errors.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
key_expiry_test.go control/controlclient: continue map poll during key expiry to receive extensions 2026-06-11 19:21:09 +01:00
map_debug.go control/controlclient: add patchify miss stats 2026-04-15 08:05:57 -07:00
map_test.go cmd/containerboot: track peers from IPN bus updates, stop using netmap.NetworkMap 2026-05-27 14:12:48 -07:00
map.go control/controlclient: fix deadlock in map session change queue processing (#19828) 2026-05-22 07:13:18 -07:00
sign_supported_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
sign_supported.go control/controlclient: enable request signatures on macOS (#19317) 2026-04-15 14:11:14 -04:00
sign_unsupported.go control/controlclient: enable request signatures on macOS (#19317) 2026-04-15 14:11:14 -04:00
sign.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
status.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00