tailscale/feature/buildfeatures
Brad Fitzpatrick 1b5b43787c ipn/localapi, cli, clientmetric: add ipnbus feature tag; fix omit.go stub
Add a new "ipnbus" build feature tag so the watch-ipn-bus LocalAPI
endpoint can be independently controlled, rather than being gated
behind HasDebug || HasServe. Minimal/embedded builds that omit both
debug and serve were getting 404s on watch-ipn-bus, breaking
"tailscale up --authkey=..." and other CLI flows that depend on
WatchIPNBus.

In the CLI, check buildfeatures.HasIPNBus before attempting to watch
the IPN bus in "tailscale up"/"tailscale login", and exit early with
an informational message when the feature is omitted.

Also add the missing NewCounterFunc stub to clientmetric/omit.go,
which caused compilation errors when building with
ts_omit_clientmetrics and netstack enabled.

Fixes #19240

Change-Id: I2e3c69a72fc50fa02542b91b8a54859618a463d1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2026-04-07 10:22:37 -07:00
..
buildfeatures.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_ace_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_ace_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_acme_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_acme_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_advertiseexitnode_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_advertiseexitnode_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_advertiseroutes_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_advertiseroutes_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_appconnectors_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_appconnectors_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_aws_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_aws_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_bakedroots_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_bakedroots_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_bird_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_bird_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_c2n_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_c2n_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_cachenetmap_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_cachenetmap_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_captiveportal_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_captiveportal_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_capture_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_capture_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_cliconndiag_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_cliconndiag_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_clientmetrics_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_clientmetrics_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_clientupdate_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_clientupdate_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_cloud_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_cloud_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_colorable_disabled.go cmd/tailscale,feature/featuretags: make webbrowser and colorable deps omittable 2026-02-08 10:04:04 -08:00
feature_colorable_enabled.go cmd/tailscale,feature/featuretags: make webbrowser and colorable deps omittable 2026-02-08 10:04:04 -08:00
feature_completion_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_completion_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_completion_scripts_disabled.go feature/featuretags: add test that all ts_omit_foo tags are declared 2026-02-04 13:15:41 -08:00
feature_completion_scripts_enabled.go feature/featuretags: add test that all ts_omit_foo tags are declared 2026-02-04 13:15:41 -08:00
feature_conn25_disabled.go cmd/tailscaled,feature/conn25,feature/featuretags: add conn25 to featuretags 2026-02-04 12:52:08 -08:00
feature_conn25_enabled.go cmd/tailscaled,feature/conn25,feature/featuretags: add conn25 to featuretags 2026-02-04 12:52:08 -08:00
feature_dbus_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_dbus_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_debug_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_debug_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_debugeventbus_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_debugeventbus_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_debugportmapper_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_debugportmapper_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_desktop_sessions_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_desktop_sessions_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_dns_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_dns_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_doctor_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_doctor_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_drive_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_drive_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_gro_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_gro_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_health_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_health_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_hujsonconf_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_hujsonconf_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_identityfederation_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_identityfederation_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_ipnbus_disabled.go ipn/localapi, cli, clientmetric: add ipnbus feature tag; fix omit.go stub 2026-04-07 10:22:37 -07:00
feature_ipnbus_enabled.go ipn/localapi, cli, clientmetric: add ipnbus feature tag; fix omit.go stub 2026-04-07 10:22:37 -07:00
feature_iptables_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_iptables_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_kube_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_kube_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_lazywg_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_lazywg_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_linkspeed_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_linkspeed_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_linuxdnsfight_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_linuxdnsfight_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_listenrawdisco_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_listenrawdisco_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_logtail_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_logtail_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_netlog_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_netlog_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_netstack_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_netstack_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_networkmanager_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_networkmanager_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_oauthkey_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_oauthkey_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_osrouter_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_osrouter_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_outboundproxy_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_outboundproxy_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_peerapiclient_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_peerapiclient_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_peerapiserver_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_peerapiserver_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_portlist_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_portlist_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_portmapper_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_portmapper_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_posture_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_posture_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_qrcodes_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_qrcodes_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_relayserver_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_relayserver_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_resolved_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_resolved_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_sdnotify_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_sdnotify_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_serve_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_serve_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_ssh_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_ssh_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_synology_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_synology_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_syspolicy_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_syspolicy_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_systray_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_systray_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_taildrop_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_taildrop_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_tailnetlock_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_tailnetlock_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_tap_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_tap_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_tpm_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_tpm_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_tundevstats_disabled.go feature/*,net/tstun: add tundev_txq_drops clientmetric on Linux 2026-03-24 09:44:58 -07:00
feature_tundevstats_enabled.go feature/*,net/tstun: add tundev_txq_drops clientmetric on Linux 2026-03-24 09:44:58 -07:00
feature_unixsocketidentity_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_unixsocketidentity_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_useexitnode_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_useexitnode_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_useproxy_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_useproxy_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_usermetrics_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_usermetrics_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_useroutes_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_useroutes_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_wakeonlan_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_wakeonlan_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_webbrowser_disabled.go cmd/tailscale,feature/featuretags: make webbrowser and colorable deps omittable 2026-02-08 10:04:04 -08:00
feature_webbrowser_enabled.go cmd/tailscale,feature/featuretags: make webbrowser and colorable deps omittable 2026-02-08 10:04:04 -08:00
feature_webclient_disabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature_webclient_enabled.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
gen.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00