tailscale/feature/condregister
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
..
awsparamstore cmd/tailscale/cli: allow fetching keys from AWS Parameter Store 2026-01-29 18:09:56 -05:00
identityfederation all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netlog wgengine,wgcfg,feature/netlog: move network flow logging behind a feature hook 2026-07-09 12:56:37 -07:00
oauthkey all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
portmapper all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
useproxy all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
condregister.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_ace.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_acme.go feature/acme, ipn/ipnlocal: start moving ACME/cert state into an extension 2026-06-26 09:48:24 -07:00
maybe_appconnectors.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_c2n.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_capture.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_clientupdate.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_conn25.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_debugportmapper.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_desktop_sessions.go ipn/desktop: move behind feature/condregister 2026-04-07 11:37:47 -07:00
maybe_doctor.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_drive.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_linkspeed.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_linuxdnsfight.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_netlog.go wgengine,wgcfg,feature/netlog: move network flow logging behind a feature hook 2026-07-09 12:56:37 -07:00
maybe_osrouter.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_portlist.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_posture.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_relayserver.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_remoteconfig.go cmd/tailscale, ipn, feature/remoteconfig: add remote-config support 2026-07-07 12:10:34 -07:00
maybe_routecheck.go feature/routecheck: add ts_omit_routecheck feature flag (#19638) 2026-05-15 15:50:50 -07:00
maybe_runtimemetrics.go control/controlknobs,feature/*,ipn/ipnlocal,tailcfg: add runtimemetrics 2026-05-26 16:02:01 -07:00
maybe_sdnotify.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_store_aws.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_store_kube.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_syspolicy.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_taildrop.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_tailnetlock.go ipn/ipnlocal,tailcfg: add /debug/tka c2n endpoint (#19198) 2026-04-20 16:00:03 +01:00
maybe_tap.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_tpm.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
maybe_tundevstats.go feature/*,net/tstun: add tundev_txq_drops clientmetric on Linux 2026-03-24 09:44:58 -07:00
maybe_wakeonlan.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00