tailscale/ipn/localapi
Andrew Lytvynov 55cd5c575b
ipn/localapi: only perform local-admin check in serveServeConfig (#10163)
On unix systems, the check involves executing sudo, which is slow.
Instead of doing it for every incoming request, move the logic into
localapi serveServeConfig handler and do it as needed.

Updates tailscale/corp#15405

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2023-11-09 12:55:46 -08:00
..
cert.go ipn/ipnlocal: do unexpired cert renewals in the background 2023-10-12 16:02:45 -07:00
debugderp.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
disabled_stubs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
localapi_test.go ipn/localapi: only perform local-admin check in serveServeConfig (#10163) 2023-11-09 12:55:46 -08:00
localapi.go ipn/localapi: only perform local-admin check in serveServeConfig (#10163) 2023-11-09 12:55:46 -08:00
pprof.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00