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/ipn/ipnauth
Nick Khyl c3c4c96489 ipn/{ipnauth,ipnlocal,ipnserver}, client/tailscale: make ipnserver.Server testable
We update client/tailscale.LocalClient to allow specifying an optional Transport
(http.RoundTripper) for LocalAPI HTTP requests, and implement one that injects
an ipnauth.TestActor via request headers. We also add several functions and types
to make testing an ipn/ipnserver.Server possible (or at least easier).

We then use these updates to write basic tests for ipnserver.Server,
ensuring it works on non-Windows platforms and correctly sets and unsets
the LocalBackend's current user when a Windows user connects and disconnects.

We intentionally omit tests for switching between different OS users
and will add them in follow-up commits.

Updates tailscale/corp#25804

Signed-off-by: Nick Khyl <nickk@tailscale.com>
11 months ago
..
actor.go ipn/{ipnauth,ipnlocal,ipnserver}, client/tailscale: make ipnserver.Server testable 11 months ago
ipnauth.go go.mod, all: move away from inet.af domain seized by Taliban 2 years ago
ipnauth_notwindows.go ipn/{ipnauth,ipnlocal,ipnserver}: send the auth URL to the user who started interactive login 1 year ago
ipnauth_windows.go ipn/ipnserver: always allow Windows SYSTEM user to connect 2 years ago
test_actor.go ipn/{ipnauth,ipnlocal,ipnserver}: send the auth URL to the user who started interactive login 1 year ago