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
M. J. Fromberger 127a967207
appc,*: publish events for route updates and storage (#17392)
Add and wire up event publishers for these two event types in the AppConnector.
Nothing currently subscribes to them, so this is harmless. Subscribers for
these events will be added in a near-future commit.

As part of this, move the appc.RouteInfo type to the types/appctype package.
It does not contain any package-specific details from appc. Beside it, add
appctype.RouteUpdate to carry route update event state, likewise not specific
to appc.  Update all usage of the appc.* types throughout to use appctype.*
instead, and update depaware files to reflect these changes.

Add a Close method to the AppConnector to make sure the client gets cleaned up
when the connector is dropped (we re-create connectors).

Update the unit tests in the appc package to also check the events published
alongside calls to the RouteAdvertiser.

For now the tests still rely on the RouteAdvertiser for correctness; this is OK
for now as the two methods are always performed together.  In the near future,
we need to rework the tests so not require that, but that will require building
some more test fixtures that we can handle separately.

Updates #15160
Updates #17192

Change-Id: I184670ba2fb920e0d2cb2be7c6816259bca77afe
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
3 months ago
..
auditlog ipn/ipnext: remove some interface indirection to add hooks 8 months ago
conffile feature/featuretags, ipn/conffile: make HuJSON support in config files optional 3 months ago
desktop util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 4 months ago
ipnauth feature/featuretags, all: add build features, use existing ones in more places 3 months ago
ipnext feature/portlist: pull portlist service porting into extension, use eventbus 3 months ago
ipnlocal appc,*: publish events for route updates and storage (#17392) 3 months ago
ipnserver feature/featuretags, all: add build features, use existing ones in more places 3 months ago
ipnstate cmd/tailscale, ipn/ipnstate, wgengine/magicsock: update ping output for peer relay (#16515) 6 months ago
lapitest various: allow tailscaled shutdown via LocalAPI 3 months ago
localapi appc,*: publish events for route updates and storage (#17392) 3 months ago
policy ipn,tailconfig: clean up unreleased and removed app connector service 2 years ago
store ipn/store, feature/condregister: permit callers to empty import optonal ipn stores 3 months ago
backend.go ipn: fix the string representation of an empty ipn.Notify 4 months ago
backend_test.go ipn: fix the string representation of an empty ipn.Notify 4 months ago
conf.go ipn: ensure that conffile is source of truth for advertised services. (#15361) 10 months ago
doc.go ipn: generate LoginProfileView and use it instead of *LoginProfile where appropriate 11 months ago
ipn_clone.go cmd/tailscale/cli,ipn,ipn/ipnlocal: add AutoExitNode preference for automatic exit node selection 6 months ago
ipn_test.go all: do not depend on the testing package 2 years ago
ipn_view.go util/linuxfw, feature/buildfeatures: add ts_omit_iptables to make IPTables optional 3 months ago
prefs.go util/linuxfw, feature/buildfeatures: add ts_omit_iptables to make IPTables optional 3 months ago
prefs_test.go ipn: warn about self as the exit node if backend is running (#17018) 4 months ago
serve.go cmd/tailscale/cli: revert key for web config for services to FQDN (#16627) 6 months ago
serve_test.go cmd/tailscale/cli: Add service flag to serve command (#16191) 6 months ago
store.go tailcfg: report StateEncrypted in Hostinfo (#16434) 6 months ago
store_test.go ipn/store: automatically migrate between plaintext and encrypted state (#16318) 6 months ago