summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2025-02-07 15:27:31 -0600
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2025-02-10 10:23:10 -0600
commit122255765a95b3af8b4e382bcad89ac7cccb37ce (patch)
tree9718a7384991295296c646434ef76d5b7ce5026a /control/controlhttp/controlhttpserver/controlhttpserver.go
parent532e38bdc82cd61d0e72cdca89093fd92baa1db2 (diff)
downloadtailscale-122255765a95b3af8b4e382bcad89ac7cccb37ce.tar.xz
tailscale-122255765a95b3af8b4e382bcad89ac7cccb37ce.zip
ipn/ipnlocal: fix (*profileManager).DefaultUserProfileID for users other than current
Currently, profileManager filters profiles based on their creator/owner and the "current user"'s UID. This causes DefaultUserProfileID(uid) to work incorrectly when the UID doesn't match the current user. While we plan to remove the concept of the "current user" completely, we're not there yet. In this PR, we fix DefaultUserProfileID by updating profileManager to allow checking profile access for a given UID and modifying helper methods to accept UID as a parameter when returning matching profiles. Updates #14823 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions