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/cmd
Brad Fitzpatrick 4511e7d64e ipn/ipnstate: add PeerStatus.AltSharerUserID, stop mangling Node.User
In b987b2ab18 (2021-01-12) when we introduced sharing we mapped
the sharer to the userid at a low layer, mostly to fix the display of
"tailscale status" and the client UIs, but also some tests.

The commit earlier today, 7dec09d169, removed the 2.5yo option
to let clients disable that automatic mapping, as clearly we were never
getting around to it.

This plumbs the Sharer UserID all the way to ipnstatus so the CLI
itself can choose to print out the Sharer's identity over the node's
original owner.

Then we stop mangling Node.User and let clients decide how they want
to render things.

To ease the migration for the Windows GUI (which currently operates on
tailcfg.Node via the NetMap from WatchIPNBus, instead of PeerStatus),
a new method Node.SharerOrUser is added to do the mapping of
Sharer-else-User.

Updates #1909
Updates tailscale/corp#1183

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
addlicense all: update tools that manage copyright headers 3 years ago
cloner tailcfg,ipn/ipnlocal,wgengine: add values to PeerCapabilities 2 years ago
containerboot cmd/containerboot,kube: consolidate the two kube clients 3 years ago
derper all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
derpprobe prober: migrate to Prometheus metric library 3 years ago
dist cmd/dist,release/dist: expose RPM signing hook (#8789) 2 years ago
get-authkey all: use cmpx.Or where it made sense 3 years ago
gitops-pusher cmd/gitops-pusher: re-use existing types from acl package 2 years ago
hello all: update copyright and license headers 3 years ago
k8s-operator all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
mkmanifest cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 3 years ago
mkpkg go.mod: upgrade nfpm to v2 (#8786) 2 years ago
mkversion version/mkversion: open-source version generation logic 3 years ago
nardump all: update copyright and license headers 3 years ago
netlogfmt all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
nginx-auth tailcfg,all: add and use Node.IsTagged() 3 years ago
pgproxy various: add golangci-lint, fix issues (#7905) 3 years ago
printdep cmd/printdep: print correct toolchain URL 3 years ago
proxy-to-grafana tailcfg,all: add and use Node.IsTagged() 3 years ago
sniproxy cmd/sniproxy: add client metrics 2 years ago
speedtest all: update copyright and license headers 3 years ago
ssh-auth-none-demo all: update copyright and license headers 3 years ago
stunc all: update copyright and license headers 3 years ago
sync-containers cmd/sync-containers: update latest and stable tags 3 years ago
tailscale ipn/ipnstate: add PeerStatus.AltSharerUserID, stop mangling Node.User 2 years ago
tailscaled all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
testcontrol all: update copyright and license headers 3 years ago
testwrapper all: import x/exp/maps as xmaps to distinguish from Go 1.21 "maps" 2 years ago
tsconnect types/netmap, all: use read-only tailcfg.NodeView in NetworkMap 2 years ago
tsshd all: update copyright and license headers 3 years ago
viewer cmd/viewer, types/views, all: un-special case slice of netip.Prefix 2 years ago