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/feature/taildrop
Nick Khyl 824985afe1 feature/taildrop,ipn/ipn{ext,local}: initialize taildrop for initial profile
Currently, LocalBackend/ExtensionHost doesn't invoke the profile change callback for the initial profile.
Since the initial profile may vary depending on loaded extensions and applied policy settings,
it can't be reliably determined until all extensions are initialized. Additionally, some extensions
may asynchronously trigger a switch to the "best" profile (based on system state and policy settings) during
initialization.

We intended to address these issues as part of the ongoing profileManager/LocalBackend refactoring,
but the changes didn't land in time for the v1.84 release and the Taildrop refactoring.

In this PR, we update the Taildrop extension to retrieve the current profile at initialization time
and handle it as a profile change.

We also defer extension initialization until LocalBackend has started, since the Taildrop extension
already relies on this behavior (e.g., it requires clients to call SetDirectFileRoot before Init).

Fixes #15970
Updates #15812
Updates tailscale/corp#28449

Signed-off-by: Nick Khyl <nickk@tailscale.com>
7 months ago
..
delete.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
delete_test.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
doc.go feature/taildrop: start moving Taildrop out of LocalBackend 8 months ago
ext.go feature/taildrop,ipn/ipn{ext,local}: initialize taildrop for initial profile 7 months ago
integration_test.go feature/taildrop,ipn/ipn{ext,local}: initialize taildrop for initial profile 7 months ago
localapi.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
paths.go feature/taildrop: move rest of Taildrop out of LocalBackend 7 months ago
peerapi.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
peerapi_test.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
resume.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
resume_test.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
retrieve.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
send.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
taildrop.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
taildrop_test.go taildrop: merge taildrop and feature/taildrop packages together 7 months ago
target_test.go feature/taildrop: move rest of Taildrop out of LocalBackend 7 months ago