tailscale/ipn/ipnlocal
salman eec734a578 ipn/{ipnlocal,localapi}: ensure watcher is installed before /watch-ipn-bus/ responds with 200
This change delays the first flush in the /watch-ipn-bus/ handler
until after the watcher has been successfully installed on the IPN
bus. It does this by adding a new onWatchAdded callback to
LocalBackend.WatchNotifications().

Without this, the endpoint returns a 200 almost immediatly, and
only then installs a watcher for IPN events.  This means there's a
small window where events could be missed by clients after calling
WatchIPNBus().

Fixes tailscale/corp#8594.

Signed-off-by: salman <salman@tailscale.com>
2023-01-17 22:59:39 +00:00
..
c2n.go ipn/ipnlocal: add c2n handler to flush logtail for support debugging 2023-01-05 12:06:07 -08:00
cert.go
cert_js.go
cert_test.go
dnsconfig_test.go
expiry.go ipn/ipnlocal: move handling of expired nodes to LocalBackend 2023-01-14 16:35:02 -05:00
expiry_test.go ipn/ipnlocal: move handling of expired nodes to LocalBackend 2023-01-14 16:35:02 -05:00
local.go ipn/{ipnlocal,localapi}: ensure watcher is installed before /watch-ipn-bus/ responds with 200 2023-01-17 22:59:39 +00:00
local_test.go ipn/{ipnlocal,localapi}: ensure watcher is installed before /watch-ipn-bus/ responds with 200 2023-01-17 22:59:39 +00:00
loglines_test.go
network-lock.go health,ipn/ipnlocal: report the node being locked out as a health issue 2023-01-04 16:20:47 -08:00
network-lock_test.go cmd/tailscale,tka: make KeyID return an error instead of panicking 2023-01-04 09:51:31 -08:00
peerapi.go ipn/ipnlocal: disallow unsigned peers from WoL 2023-01-10 15:54:48 -08:00
peerapi_h2c.go
peerapi_macios_ext.go
peerapi_test.go ipn/ipnlocal: improve redactErr to handle more cases 2022-12-06 19:37:15 -05:00
profiles.go ipn/profiles: set default prefs based on Windows registry (#6803) 2023-01-04 18:34:31 +01:00
profiles_test.go ipn/profiles: set default prefs based on Windows registry (#6803) 2023-01-04 18:34:31 +01:00
serve.go ipn/ipnlocal: maintain a proxy handler per backend (#6804) 2022-12-21 18:36:58 +00:00
serve_test.go
ssh.go ssh/tailssh: add OpenBSD support for Tailscale SSH 2023-01-09 12:58:15 -08:00
ssh_stub.go ssh/tailssh: add OpenBSD support for Tailscale SSH 2023-01-09 12:58:15 -08:00
ssh_test.go
state_test.go ipn,types/persist: add DisallowedTKAStateIDs, refactor as view type 2022-11-29 12:29:42 -08:00