Commit Graph
2100 Commits
Author SHA1 Message Date
Brad Fitzpatrick bf1a9cd7dc lanscaping: remove more taildrop/file sharing
-rwxr-xr-x@ 1 bradfitz  staff  12810322 Jan 10 22:21 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  13566104 Jan 10 22:22 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: Id21dc502e58a407ace166d6836311685fb47fbc6
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 22:22:12 -08:00
Brad Fitzpatrick b50bfa231b lanscaping: remove osshare dep since file sharing is already gone
-rwxr-xr-x@ 1 bradfitz  staff  13047314 Jan 10 22:17 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  13697176 Jan 10 22:17 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: Ia8e69dcb89162446b9f5f1b8ef6a1c621aba984f
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 22:17:21 -08:00
Brad Fitzpatrick 202014a534 lanscaping: remove http/socks5 proxy
-rwxr-xr-x@ 1 bradfitz  staff  13047314 Jan 10 22:15 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  13697176 Jan 10 22:15 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I429c56f61b61263c4a63aebb4833ce84feedaa58
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 22:15:33 -08:00
Brad Fitzpatrick 253bf1b360 lanscaping: remove logtail, network logs, stats, packet capture
-rwxr-xr-x@ 1 bradfitz  staff  13098514 Jan 10 22:11 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  13762712 Jan 10 22:11 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I9df1ba86ff080b78d320cb03b075f16b91a51f92
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 22:11:54 -08:00
Brad Fitzpatrick 501fd9f508 lanscaping: delete more GRO, netkernelconf
-rwxr-xr-x@ 1 bradfitz  staff  13535298 Jan 10 21:56 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  14221464 Jan 10 21:56 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: Ic06c3c29a3d7e6a2a0d1272e0d0268be7b58b4d3
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:56:41 -08:00
Brad Fitzpatrick e47cc6bee2 lanscaping: remove more ssh
-rwxr-xr-x@ 1 bradfitz  staff  13535330 Jan 10 21:54 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  14221464 Jan 10 21:54 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: Ib037903218ff7446df1f8f105fe05ba505bf65f7
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:54:29 -08:00
Brad Fitzpatrick b132a59f74 lanscaping: remove acme cert stuff (missed earlier in removing serve)
-rwxr-xr-x@ 1 bradfitz  staff  13756530 Jan 10 21:52 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  14418072 Jan 10 21:52 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I0136a2ae976a5792f2e2ed7cf902abc22cd88475
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:52:11 -08:00
Brad Fitzpatrick 26985cf12a lanscaping: remove doctor
-rwxr-xr-x@ 1 bradfitz  staff  13925522 Jan 10 21:49 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  14614680 Jan 10 21:49 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: Ic5434d746958f2d3d26bbb47eaead446872b7a7f
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:49:53 -08:00
Brad Fitzpatrick 5d793c0003 lanscaping: drop dbus users (mostly Linux DNS modes)
-rwxr-xr-x@ 1 bradfitz  staff  13976098 Jan 10 21:47 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  14614680 Jan 10 21:47 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: Id4af509b717f847c5004cee86b6bd6a8f7113a69
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:47:39 -08:00
Brad Fitzpatrick 9bf8966c26 lanscaping: remove proxymap (a userspace mode thing)
-rwxr-xr-x@ 1 bradfitz  staff  13976098 Jan 10 21:41 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  14942360 Jan 10 21:41 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I35a1ff01fba619839c1e5671b8c06ed722a05948
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:42:00 -08:00
Brad Fitzpatrick d086f952b9 lanscaping: remove appconnectors, more posture
-rwxr-xr-x@ 1 bradfitz  staff  13992850 Jan 10 21:35 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  14942360 Jan 10 21:35 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I63b6a8d459e0b88d092b2c793f8b88d3c976889a
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:35:51 -08:00
Brad Fitzpatrick ccd498f266 lanscaping: disable derp server (!!) verify clients for now
to get tailscale.com/client/tailscale out of the tailscaled build dep tree

even if it's not linked. hopefully.

-rwxr-xr-x@ 1 bradfitz  staff  13759346 Jan 10 21:31 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  15007896 Jan 10 21:31 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I6096a1a57be529a2fd3e9fdb264433109b7c4564
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:30:42 -08:00
Brad Fitzpatrick 51491012ec lanscaping: omit h2c
-rwxr-xr-x@ 1 bradfitz  staff  13759346 Jan 10 21:26 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  15007896 Jan 10 21:26 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I523522c71deaeb4f7c2f6e81630109337682931c
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:26:39 -08:00
Brad Fitzpatrick 2a4a7f2fc7 lanscaping: remove portmapper (goupnp, xml, ...)
-rwxr-xr-x@ 1 bradfitz  staff  13941426 Jan 10 21:24 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  15204504 Jan 10 21:24 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I3c324d4203ba8543295e0503b84874710b8afeb6
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:24:37 -08:00
Brad Fitzpatrick 414e1e1238 lanscaping: remove wol
Change-Id: I5df0363e1883ea0b2f390cb843f2dc72130132a4
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:17:42 -08:00
Brad Fitzpatrick 0dac8dfb94 lanscaping: remove taildrop
-rwxr-xr-x@ 1 bradfitz  staff  14288706 Jan 10 21:14 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  15532184 Jan 10 21:15 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I751977df320e6c77bd403a7bbcc329a50e3ef443
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:15:06 -08:00
Brad Fitzpatrick 55587d3156 lanscaping: remove serve, webclient
-rwxr-xr-x@ 1 bradfitz  staff  14338354 Jan 10 21:12 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  15532184 Jan 10 21:12 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I075670f96610e55b7adaacb105fe4d749ed6cfd8
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:12:16 -08:00
Brad Fitzpatrick 5b4d3207b0 lanscaping: remove TKA
-rwxr-xr-x@ 1 bradfitz  staff  15297778 Jan 10 21:03 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  16515224 Jan 10 21:03 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I297e3d82d5763019ab6fb1f2a1bc3f3369d10d9c
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 21:03:14 -08:00
Brad Fitzpatrick 2348da8980 lanscaping: remove dnsfallback's recursive resolver + its miekg/dns dep
-rwxr-xr-x@ 1 bradfitz  staff  15876722 Jan 10 20:47 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  17039512 Jan 10 20:47 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I5e6b54545ac61d98e5075de57c3a020eab52956e
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 20:48:18 -08:00
Brad Fitzpatrick f86f0f793a lanscaping: remove captive portal detection
-rwxr-xr-x@ 1 bradfitz  staff  16456050 Jan 10 20:41 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  17563800 Jan 10 20:41 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I5efa774e33662fb6d66a4caa2f086eb03a95fde3
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 20:41:39 -08:00
Brad Fitzpatrick ce2d6d4665 lanscaping: remove drive
-rwxr-xr-x@ 1 bradfitz  staff  16489138 Jan 10 20:24 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  17629336 Jan 10 20:24 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I35e07abf8856c5ffa7e43abb6db430f41675a8a7
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 20:24:46 -08:00
Brad Fitzpatrick aa0ec3e4a5 lanscaping: add missing ts_omit_ssh
-rwxr-xr-x@ 1 bradfitz  staff  16935810 Jan 10 20:21 /Users/bradfitz/bin/tailscaled.min
-rwxr-xr-x@ 1 bradfitz  staff  18153624 Jan 10 20:21 /Users/bradfitz/bin/tailscaled.minlinux

Change-Id: I1f94b576a0fe03b1a853f4261d85288934f29b39
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 20:21:47 -08:00
Brad Fitzpatrick cdcf8d51cf lanscaping: omit nftables
Change-Id: I5ce60ade4ec0c818ce83a08950847f7a4baaeabf
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 20:20:57 -08:00
Brad Fitzpatrick 30d682899b lanscaping: butcher out gvisor; 16MB
Change-Id: I8185f5bdfe080e33910a8224de66c97f10e2ed40
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 20:04:36 -08:00
Brad Fitzpatrick 515d9689d5 lanscaping: start adding ts_omit_netstack
Change-Id: Iefa404306db4eaaaedbaaf7aaad85a241aff2ae1
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-10 19:39:32 -08:00
Brad Fitzpatrick 45a2d139a1 lanscaping: baseline
Change-Id: I551c241a499602929c7bba437c11a65c913e2d5e
2025-01-10 19:14:08 -08:00
Percy Wegmann cd795d8a7f prober: support filtering regions by region ID in addition to code
Updates tailscale/corp#25758

Signed-off-by: Percy Wegmann <[email protected]>
2025-01-10 12:33:19 -06:00
Irbe Krumina 77017bae59 cmd/containerboot: load containerboot serve config that does not contain HTTPS endpoint in tailnets with HTTPS disabled (#14538)
cmd/containerboot: load containerboot serve config that does not contain HTTPS endpoint in tailnets with HTTPS disabled

Fixes an issue where, if a tailnet has HTTPS disabled, no serve config
set via TS_SERVE_CONFIG was loaded, even if it does not contain an HTTPS endpoint.
Now for tailnets with HTTPS disabled serve config provided to containerboot is considered invalid
(and therefore not loaded) only if there is an HTTPS endpoint defined in the config.

Fixes tailscale/tailscale#14495

Signed-off-by: Irbe Krumina <[email protected]>
2025-01-10 07:31:28 +00:00
Irbe Krumina 48a95c422a cmd/containerboot,cmd/k8s-operator: reload tailscaled config (#14342)
cmd/{k8s-operator,containerboot}: reload tailscaled configfile when its contents have changed

Instead of restarting the Kubernetes Operator proxies each time
tailscaled config has changed, this dynamically reloads the configfile
using the new reload endpoint.
Older annotation based mechanism will be supported till 1.84
to ensure that proxy versions prior to 1.80 keep working with
operator 1.80 and newer.

Updates tailscale/tailscale#13032
Updates tailscale/corp#24795

Signed-off-by: Irbe Krumina <[email protected]>
2025-01-10 07:29:11 +00:00
Nahum Shalman 9373a1b902 all: illumos/solaris userspace only support
Updates #14565

Change-Id: I743148144938794db0a224873ce76c10dbe6fa5f
Signed-off-by: Nahum Shalman <[email protected]>
2025-01-09 14:46:23 -08:00
Irbe Krumina 68997e0dfa cmd/k8s-operator,k8s-operator: allow users to set custom labels for the optional ServiceMonitor (#14475)
* cmd/k8s-operator,k8s-operator: allow users to set custom labels for the optional ServiceMonitor

Updates tailscale/tailscale#14381

Signed-off-by: Irbe Krumina <[email protected]>
2025-01-09 07:15:19 +00:00
Irbe Krumina 8d4ca13cf8 cmd/k8s-operator,k8s-operator: support ingress ProxyGroup type (#14548)
Currently this does not yet do anything apart from creating
the ProxyGroup resources like StatefulSet.

Updates tailscale/corp#24795

Signed-off-by: Irbe Krumina <[email protected]>
2025-01-08 13:43:17 +00:00
Will Norris 60daa2adb8 all: fix golangci-lint errors
These erroneously blocked a recent PR, which I fixed by simply
re-running CI. But we might as well fix them anyway.
These are mostly `printf` to `print` and a couple of `!=` to `!Equal()`

Updates #cleanup

Signed-off-by: Will Norris <[email protected]>
2025-01-07 13:05:37 -08:00
James Tucker 6e45a8304e cmd/derper: improve logging on derp mesh connect
Include the mesh log prefix in all mesh connection setup.

Updates tailscale/corp#25653

Signed-off-by: James Tucker <[email protected]>
2025-01-07 09:47:07 -08:00
Will Norris b36984cb16 cmd/systray: add cmd/systray back as a small client/systray wrapper
Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2025-01-06 16:49:34 -08:00
Will Norris 82e99fcf84 client/systray: move cmd/systray to client/systray
Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2025-01-06 16:49:34 -08:00
Brad Fitzpatrick 5da772c670 cmd/tailscale/cli: fix TestUpdatePrefs on macOS
It was failing about an unaccepted risk ("mac-app-connector") because
it was checking runtime.GOOS ("darwin") instead of the test's env.goos
string value ("linux", which doesn't have the warning).

Fixes #14544

Change-Id: I470d86a6ad4bb18e1dd99d334538e56556147835
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-06 10:46:57 -08:00
Brad Fitzpatrick 1e2e319e7d util/slicesx: add MapKeys and MapValues from golang.org/x/exp/maps
Importing the ~deprecated golang.org/x/exp/maps as "xmaps" to not
shadow the std "maps" was getting ugly.

And using slices.Collect on an iterator is verbose & allocates more.

So copy (x)maps.Keys+Values into our slicesx package instead.

Updates #cleanup
Updates #12912
Updates #14514 (pulled out of that change)

Change-Id: I5e68d12729934de93cf4a9cd87c367645f86123a
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-01-03 10:48:31 -08:00
Will Norris c43c5ca003 cmd/systray: properly set tooltip on different platforms
On Linux, systray.SetTitle actually seems to set the tooltip on all
desktops I've tested on.  But on macOS, it actually does set a title
that is always displayed in the systray area next to the icon. This
change should properly set the tooltip across platforms.

Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-27 12:45:51 -08:00
Will Norris 5a4148e7e8 cmd/systray: update state management and initialization
Move a number of global state vars into the Menu struct, keeping things
better encapsulated. The systray package still relies on its own global
state, so only a single Menu instance can run at a time.

Move a lot of the initialization logic out of onReady, in particular
fetching the latest tailscale state. Instead, populate the state before
calling systray.Run, which fixes a timing issue in GNOME (#14477).

This change also creates a separate bgContext for actions not tied menu
item clicks. Because we have to rebuild the entire menu regularly, we
cancel that context as needed, which can cancel subsequent updateState
calls.

Also exit cleanly on SIGINT and SIGTERM.

Updates #1708
Fixes #14477

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-27 11:05:26 -08:00
Will Norris 86f273d930 cmd/systray: set app icon and title consistently
Refactor code to set app icon and title as part of rebuild, rather than
separately in eventLoop. This fixes several cases where they weren't
getting updated properly. This change also makes use of the new exit
node icons.

Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-23 17:43:44 -08:00
Will Norris 2bdbe5b2ab cmd/systray: add icons for exit node online and offline
restructure tsLogo to allow setting a mask to be used when drawing the
logo dots, as well as add an overlay icon, such as the arrow when
connected to an exit node.

The icon is still renders as white on black, but this change also
prepare for doing a black on white version, as well a fully transparent
icon. I don't know if we can consistently determine which to use, so
this just keeps the single icon for now.

Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-23 17:43:44 -08:00
James TuckerandAndrew Dunham 68b12a74ed metrics,syncs: add ShardedInt support to metrics.LabelMap
metrics.LabelMap grows slightly more heavy, needing a lock to ensure
proper ordering for newly initialized ShardedInt values. An Add method
enables callers to use .Add for both expvar.Int and syncs.ShardedInt
values, but retains the original behavior of defaulting to initializing
expvar.Int values.

Updates tailscale/corp#25450

Co-Authored-By: Andrew Dunham <[email protected]>
Signed-off-by: James Tucker <[email protected]>
2024-12-23 13:10:18 -08:00
Will Norris 3837b6cebc cmd/systray: rebuild menu on pref change, assorted other fixes
- rebuild menu when prefs change outside of systray, such as setting an
  exit node
- refactor onClick handler code
- compare lowercase country name, the same as macOS and Windows (now
  sorts Ukraine before USA)
- fix "connected / disconnected" menu items on stopped status
- prevent nil pointer on "This Device" menu item

Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-23 09:01:30 -08:00
Will Norris 10d4057a64 cmd/systray: add visual workarounds for gnome, mac, and windows
Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-20 17:57:42 -08:00
Will Norris cb59943501 cmd/systray: add exit nodes menu
This commit builds the exit node menu including the recommended exit
node, if available, as well as tailnet and mullvad exit nodes.

This does not yet update the menu based on changes in exit node outside
of the systray app, which will come later.  This also does not include
the ability to run as an exit node.

Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-20 17:32:48 -08:00
Will Norris 256da8dfb5 cmd/systray: remove new menu delay on KDE
The new menu delay added to fix libdbusmenu systrays causes problems
with KDE. Given the state of wildly varying systray implementations, I
suspect we may need more desktop-specific hacks, so I'm setting this up
to accommodate that.

Updates #1708
Updates #14431

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-20 10:12:07 -08:00
Tom Proctor 3adad364f1 cmd/k8s-operator,k8s-operator: include top-level CRD descriptions (#14435)
When reading https://doc.crds.dev/github.com/tailscale/tailscale/tailscale.com/ProxyGroup/[email protected]
I noticed there is no top-level description for ProxyGroup and Recorder. Add
one to give some high-level direction.

Updates #cleanup

Change-Id: I3666c5445be272ea5a1d4d02b6d5ad4c23afb09f

Signed-off-by: Tom Proctor <[email protected]>
2024-12-20 16:12:56 +00:00
Will Norris 89adcd853d cmd/systray: improve profile menu
Bring UI closer to macOS and windows:
- split login and tailnet name over separate lines
- render profile picture (with very simple caching)
- use checkbox to indicate active profile. I've not found any desktops
  that can't render checkboxes, so I'd like to explore other options
  if needed.

Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-19 15:23:02 -08:00
Will Norris 2d4edd80f1 cmd/systray: add extra padding around notification icon
Some notification managers crop the application icon to a circle, so
ensure we have enough padding to account for that.

Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
2024-12-19 13:31:54 -08:00