tailscale/ipn/ipnlocal
Maisem Ali dd50dcd067 ipn/ipnlocal: handle untagging nodes better
We would end up with duplicate profiles for the node as the UserID
would have chnaged. In order to correctly deduplicate profiles, we
need to look at both the UserID and the NodeID. A single machine can
only ever have 1 profile per NodeID and 1 profile per UserID.

Note: UserID of a Node can change when the node is tagged/untagged,
and the NodeID of a device can change when the node is deleted so we
need to check for both.

Updates #713

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-11-18 14:00:19 +05:00
..
c2n.go wgengine/magicsock: make debug-level stuff not logged by default 2022-10-04 11:05:50 -07:00
cert.go ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2022-11-07 21:50:04 -08:00
cert_js.go ipn/ipnlocal, wgengine/netstack: start handling ports for future serving 2022-11-08 19:39:07 -08:00
cert_test.go ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2022-11-07 21:50:04 -08:00
dnsconfig_test.go ipn/ipnlocal: use ipn.PrefsView 2022-10-24 15:57:00 -07:00
local.go ipn/ipnlocal: handle untagging nodes better 2022-11-18 14:00:19 +05:00
local_test.go ipn/ipnlocal: add support for multiple user profiles 2022-11-11 10:45:47 +05:00
loglines_test.go ipn/ipnlocal: add support for multiple user profiles 2022-11-11 10:45:47 +05:00
network-lock.go all: store NL keys per profile 2022-11-15 19:51:52 +00:00
network-lock_test.go all: store NL keys per profile 2022-11-15 19:51:52 +00:00
peerapi.go ipn/ipnlocal: move selfNode from peerAPIServer to peerAPIHandler 2022-11-17 01:02:03 +05:00
peerapi_h2c.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
peerapi_macios_ext.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
peerapi_test.go ipn/ipnlocal: move selfNode from peerAPIServer to peerAPIHandler 2022-11-17 01:02:03 +05:00
profiles.go ipn/ipnlocal: handle untagging nodes better 2022-11-18 14:00:19 +05:00
profiles_test.go ipn/ipnlocal: handle untagging nodes better 2022-11-18 14:00:19 +05:00
serve.go cmd/tailscale/cli: flesh out serve CLI and tests (#6304) 2022-11-17 16:09:43 -05:00
serve_test.go ipn/ipnlocal: support serving files/directories too 2022-11-10 18:09:35 -08:00
ssh.go ssh/tailssh: add Tailscale SSH (server) support on FreeBSD 2022-11-10 20:25:23 -08:00
ssh_stub.go ssh/tailssh: add Tailscale SSH (server) support on FreeBSD 2022-11-10 20:25:23 -08:00
ssh_test.go ipn/ipnlocal: add support for multiple user profiles 2022-11-11 10:45:47 +05:00
state_test.go ipn/ipnlocal: handle untagging nodes better 2022-11-18 14:00:19 +05:00