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/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>
1 year ago
..
c2n.go ipn/ipnlocal: add c2n handler to flush logtail for support debugging 1 year ago
cert.go ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2 years ago
cert_js.go ipn/ipnlocal, wgengine/netstack: start handling ports for future serving 2 years ago
cert_test.go ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2 years ago
dnsconfig_test.go ipn/ipnlocal: use ipn.PrefsView 2 years ago
expiry.go ipn/ipnlocal: move handling of expired nodes to LocalBackend 1 year ago
expiry_test.go ipn/ipnlocal: move handling of expired nodes to LocalBackend 1 year ago
local.go ipn/{ipnlocal,localapi}: ensure watcher is installed before /watch-ipn-bus/ responds with 200 1 year ago
local_test.go ipn/{ipnlocal,localapi}: ensure watcher is installed before /watch-ipn-bus/ responds with 200 1 year ago
loglines_test.go ipn/ipnlocal: add support for multiple user profiles 2 years ago
network-lock.go health,ipn/ipnlocal: report the node being locked out as a health issue 1 year ago
network-lock_test.go cmd/tailscale,tka: make KeyID return an error instead of panicking 1 year ago
peerapi.go ipn/ipnlocal: disallow unsigned peers from WoL 1 year ago
peerapi_h2c.go all: remove old +build tags 2 years ago
peerapi_macios_ext.go all: remove old +build tags 2 years ago
peerapi_test.go ipn/ipnlocal: improve redactErr to handle more cases 2 years ago
profiles.go ipn/profiles: set default prefs based on Windows registry (#6803) 1 year ago
profiles_test.go ipn/profiles: set default prefs based on Windows registry (#6803) 1 year ago
serve.go ipn/ipnlocal: maintain a proxy handler per backend (#6804) 1 year ago
serve_test.go ipn/ipnlocal: support serving files/directories too 2 years ago
ssh.go ssh/tailssh: add OpenBSD support for Tailscale SSH 1 year ago
ssh_stub.go ssh/tailssh: add OpenBSD support for Tailscale SSH 1 year ago
ssh_test.go ipn/ipnlocal: add support for multiple user profiles 2 years ago
state_test.go ipn,types/persist: add DisallowedTKAStateIDs, refactor as view type 2 years ago