You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn
Andrew Dunham fe33b17db3 ipn/ipnlocal: handle more edge cases in netmap expiry timer
We now handle the case where the NetworkMap.SelfNode has already expired
and do not return an expiry time in the past (which causes an ~infinite
loop of timers to fire).

Additionally, we now add an explicit check to ensure that the next
expiry time is never before the current local-to-the-system time, to
ensure that we don't end up in a similar situation due to clock skew.

Finally, we add more tests for this logic to ensure that we don't
regress on these edge cases.

Fixes #7193

Change-Id: Iaf8e3d83be1d133a7aab7f8d62939e508cc53f9c
Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
(cherry picked from commit 6d84f3409b)
3 years ago
..
ipnauth all: use named pipes on windows 3 years ago
ipnlocal ipn/ipnlocal: handle more edge cases in netmap expiry timer 3 years ago
ipnserver ipn/ipnserver: propagate http.Serve error 3 years ago
ipnstate ipn/ipnstate: add PeerStatus.KeyExpiry for tailscale status --json 3 years ago
localapi cmd/tailscale/cli: add debug set-expire command for testing 3 years ago
policy ipn/policy: treat DNS service as interesting so it's not filtered out 4 years ago
store go.mod: bump AWS SDK past a breaking API change of theirs 3 years ago
backend.go cmd/tailscale/cli: redact private key in debug netmap output by default 3 years ago
doc.go ipn: add WebServerConfig, add views 3 years ago
fake_test.go ipn/ipnlocal: add support for multiple user profiles 3 years ago
ipn_clone.go ipn,types/persist: add DisallowedTKAStateIDs, refactor as view type 3 years ago
ipn_view.go ipn,types/persist: add DisallowedTKAStateIDs, refactor as view type 3 years ago
prefs.go ipn: update comments that refer to Options.Prefs 3 years ago
prefs_test.go ipn: add ability to name profiles 3 years ago
serve.go cmd/tailscale/cli, ipn/localapi: add funnel status to status command (#6402) 3 years ago
store.go cmd/tailscale/cli, ipn: move serve CLI funcs on to ServeConfig (#6401) 3 years ago