tailscale/cmd/tailscaled
Brad Fitzpatrick 692f84df8d wgengine,wgcfg,feature/netlog: move network flow logging behind a feature hook
wgcfg.Config.NetworkLogging carried the network flow logging identity
inside the WireGuard config, where it was unrelated to WireGuard; it
lived there mainly so that identity changes would defeat Reconfig's
ErrNoChanges check and reach the netlog startup/shutdown logic.

Remove the field and move the whole netlog lifecycle into a new
feature/netlog package, installed on the engine via the new
wgengine.HookNewNetLogger hook, like other feature/* packages. The
logging identity now comes from LocalBackend's current netmap via the
widened NetLogSource interface (replacing Engine.SetNetLogNodeSource),
so nmcfg no longer parses audit log IDs into the config. The engine
still calls the hook before its ErrNoChanges return and before
router.Set (to capture initial packets), and again after router.Set
(to capture final packets), preserving the previous ordering.

Core wgengine no longer imports wgengine/netlog, so minimal builds
drop it entirely. tailscaled keeps netlog via feature/condregister,
and tsnet imports feature/condregister/netlog explicitly to keep
netlog enabled by default in tsnet-based binaries (tsidp,
k8s-operator).

This is pulled out of a future change that removes wgcfg.Config.Peers,
to make that PR smaller.

Updates #12542
Updates #12614

Change-Id: I41ca7dfe43c51e977c41b5f8e934bd1f0e6e6e24
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2026-07-09 12:56:37 -07:00
..
childproc all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tailscaledhooks all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
debug_forcereflect.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
debug.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
depaware-min.txt wgengine,wgcfg,feature/netlog: move network flow logging behind a feature hook 2026-07-09 12:56:37 -07:00
depaware-minbox.txt wgengine,wgcfg,feature/netlog: move network flow logging behind a feature hook 2026-07-09 12:56:37 -07:00
depaware.txt wgengine,wgcfg,feature/netlog: move network flow logging behind a feature hook 2026-07-09 12:56:37 -07:00
deps_test.go ipn/ipnlocal: use routecheck reports to make exit node suggestions 2026-07-02 20:26:27 -07:00
flag.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
generate.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
install_darwin.go all: fix typos where we repeat repeat ourselves 2026-07-03 16:09:03 +01:00
install_windows.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manifest_windows_386.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2022-11-21 18:15:51 -05:00
manifest_windows_amd64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2022-11-21 18:15:51 -05:00
manifest_windows_arm64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2022-11-21 18:15:51 -05:00
netstack.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
proxy.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
required_version.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
sigpipe.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ssh.go ipn/ipnlocal, feature/ssh: move SSH code out of LocalBackend to feature 2026-03-10 17:27:17 -07:00
syspolicy.go cmd/tailscaled, util/syspolicy: add JSON syspolicy file support 2026-06-30 13:10:16 -07:00
tailscale-online.target cmd/tailscaled/*.{target,unit}: add systemd online target 2026-02-26 18:39:28 -08:00
tailscale-wait-online.service cmd/tailscaled/*.{target,unit}: add systemd online target 2026-02-26 18:39:28 -08:00
tailscaled_bird.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tailscaled_drive.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tailscaled_notwindows.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tailscaled_test.go cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
tailscaled_windows.go ipn/desktop: move behind feature/condregister 2026-04-07 11:37:47 -07:00
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 2020-03-13 14:38:04 -07:00
tailscaled.go cmd/tailscaled, util/syspolicy: add JSON syspolicy file support 2026-06-30 13:10:16 -07:00
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 2021-07-08 14:39:45 -04:00
tailscaled.service cmd/tailscaled: update documentation url 2026-02-09 07:09:11 -05:00
webclient.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
windows-manifest.xml cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2022-11-21 18:15:51 -05:00
with_cli.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00