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 ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2022-11-07 21:50:04 -08:00
cert_js.go ipn/ipnlocal, wgengine/netstack: start handling ports for future serving 2022-11-08 19:39:07 -08:00
cert_test.go ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2022-11-07 21:50:04 -08:00
dnsconfig_test.go ipn/ipnlocal: use ipn.PrefsView 2022-10-24 15:57:00 -07:00
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 ipn/ipnlocal: add support for multiple user profiles 2022-11-11 10:45:47 +05:00
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 all: remove old +build tags 2022-11-04 07:25:42 -07:00
peerapi_macios_ext.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
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 ipn/ipnlocal: support serving files/directories too 2022-11-10 18:09:35 -08:00
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 ipn/ipnlocal: add support for multiple user profiles 2022-11-11 10:45:47 +05:00
state_test.go ipn,types/persist: add DisallowedTKAStateIDs, refactor as view type 2022-11-29 12:29:42 -08:00