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/ipnlocal
Brad Fitzpatrick 8570f82c8b ipn/ipnlocal: finish/fix up filename validation & encoding on disk
It used to just store received files URL-escaped on disk, but that was
a half done lazy implementation, and pushed the burden to callers to
validate and write things to disk in an unescaped way.

Instead, do all the validation in the receive handler and only
accept filenames that are UTF-8 and in the intersection of valid
names that all platforms support.

Fixes tailscale/corp#1594

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
local.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 3 years ago
local_test.go ipn/localapi: add API for getting file targets 3 years ago
loglines_test.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 3 years ago
peerapi.go ipn/ipnlocal: finish/fix up filename validation & encoding on disk 3 years ago
peerapi_macios_ext.go ipn/{ipnlocal,localapi}: add localapi handler to dial/proxy file PUTs 3 years ago
peerapi_test.go ipn/ipnlocal: finish/fix up filename validation & encoding on disk 3 years ago