tailscale/ipn/ipnlocal
Sonia Appasamy e1cdcf7708 ipn/ipnlocal: add identity headers to HTTP serve proxy
Adds two new headers to HTTP serve proxy:
- `Tailscale-User-Login`: Filled with requester's login name.
- `Tailscale-User-Name`: Filled with requester's display name.

These headers only get filled when the SrcAddr is associated with
a non-tagged (i.e. user-owned) node within the client's Tailnet.

The headers are passed through empty when the request originated
from another tailnet, or the public internet (via funnel).

Updates https://github.com/tailscale/tailscale/issues/6954

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
2023-06-14 14:20:28 -04:00
..
testdata ipn/ipnlocal: fix the path for writing cert files (#7203) 2023-02-07 14:34:04 -08:00
c2n.go net/sockstats: expose debug info 2023-04-19 14:33:12 -07:00
cert.go ipn/ipnlocal: renew certificates based on lifetime 2023-06-02 12:36:32 -04:00
cert_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert_test.go ipn/ipnlocal: renew certificates based on lifetime 2023-06-02 12:36:32 -04:00
dnsconfig_test.go all: use cmpx.Or where it made sense 2023-06-07 22:06:24 -07:00
expiry.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
expiry_test.go ci: add more lints (#7909) 2023-04-19 21:54:19 -04:00
local.go ipn/ipnlocal,wgengine/netstack: move LocalBackend specifc serving logic to LocalBackend 2023-06-12 12:56:07 -07:00
local_test.go tsd: add package with System type to unify subsystem init, discovery 2023-05-04 14:21:59 -07:00
loglines_test.go tsd: add package with System type to unify subsystem init, discovery 2023-05-04 14:21:59 -07:00
network-lock.go tka: provide verify-deeplink local API endpoint (#8303) 2023-06-13 11:39:23 -07:00
network-lock_test.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
peerapi.go ipn/ipnlocal,wgengine/netstack: move LocalBackend specifc serving logic to LocalBackend 2023-06-12 12:56:07 -07:00
peerapi_h2c.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_macios_ext.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
profiles.go ipn/ipnlocal: add more logging during profile migration 2023-06-01 21:00:55 -04:00
profiles_notwindows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2023-04-03 14:41:46 -07:00
profiles_test.go ipn/ipnlocal: reenable profile tests on Windows 2023-04-26 11:33:38 -07:00
profiles_windows.go ipn/ipnlocal: add more logging during profile migration 2023-06-01 21:00:55 -04:00
serve.go ipn/ipnlocal: add identity headers to HTTP serve proxy 2023-06-14 14:20:28 -04:00
serve_test.go ipn/ipnlocal: add identity headers to HTTP serve proxy 2023-06-14 14:20:28 -04:00
ssh.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_stub.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
state_test.go tsd: add package with System type to unify subsystem init, discovery 2023-05-04 14:21:59 -07:00