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/cmd/tailscale/cli
Andrew Lytvynov fbfc3b7e51
cmd/tailscale/cli: run Watch with NotifyNoPrivateKeys (#10950)
When running as non-root non-operator user, you get this error:
```
$ tailscale serve 8080
Access denied: watch IPN bus access denied, must set ipn.NotifyNoPrivateKeys when not running as admin/root or operator

Use 'sudo tailscale serve 8080' or 'tailscale up --operator=$USER' to not require root.
```

It should fail, but the error message is confusing.

With this fix:
```
$ tailscale serve 8080
sending serve config: Access denied: serve config denied

Use 'sudo tailscale serve 8080' or 'tailscale up --operator=$USER' to not require root.
```

Updates #cleanup

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2 years ago
..
bugreport.go all: update copyright and license headers 3 years ago
cert.go all: update copyright and license headers 3 years ago
cli.go cmd/tailscale/cli: add whois subcommand 2 years ago
cli_test.go net/netutil: allow 16-bit 4via6 site IDs 2 years ago
configure-kube.go all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
configure-kube_test.go cmd/tailscale/cli: add "configure kubeconfig" subcommand 3 years ago
configure-synology.go all: replace /kb/ links with /s/ equivalents 3 years ago
configure.go cmd/tailscale/cli: update docs and unhide configure 3 years ago
debug.go net/netutil: allow 16-bit 4via6 site IDs 2 years ago
diag.go various: add detection and Taildrop for Unraid 3 years ago
diag_other.go all: update copyright and license headers 3 years ago
down.go all: update copyright and license headers 3 years ago
exitnode.go cmd/tailscale/cli: add description to exit-node CLI command 2 years ago
exitnode_test.go cli: introduce exit-node subcommand to list and filter exit nodes 2 years ago
file.go cmd/tailscale: improve taildrop progress printer on Linux (#9878) 2 years ago
funnel.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
id-token.go all: update copyright and license headers 3 years ago
ip.go all: update copyright and license headers 3 years ago
licenses.go cmd/tailscale: refactor shared utility methods 2 years ago
login.go all: update copyright and license headers 3 years ago
logout.go all: update copyright and license headers 3 years ago
nc.go all: update copyright and license headers 3 years ago
netcheck.go net/netcheck: use DERP frames as a signal for home region liveness 2 years ago
network-lock.go all: implement lock revoke-keys command 2 years ago
ping.go wgengine,ipn,cmd/tailscale: add size option to ping (#8739) 2 years ago
risks.go util/testenv: add new package to hold InTest 2 years ago
serve_legacy.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
serve_legacy_test.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
serve_v2.go cmd/tailscale/cli: run Watch with NotifyNoPrivateKeys (#10950) 2 years ago
serve_v2_test.go all: cleanup unused code, part 2 (#10670) 2 years ago
set.go cli/set: add printout when web client started 2 years ago
set_test.go all: update copyright and license headers 3 years ago
ssh.go all: update copyright and license headers 3 years ago
ssh_exec.go all: update copyright and license headers 3 years ago
ssh_exec_js.go all: update copyright and license headers 3 years ago
ssh_exec_windows.go all: update copyright and license headers 3 years ago
ssh_unix.go types/logger, cmd/tailscale/cli: flesh out, simplify some non-unix build tags 2 years ago
status.go cmd/tailscale,ipn/ipnlocal: pass available update as health message (#10420) 2 years ago
switch.go ipn/ipnlocal,cmd/tailscale: persist tailnet name in user profile 2 years ago
up.go all: cleanup unused code, part 2 (#10670) 2 years ago
update.go clientupdate: add explicit Track to Arguments (#10548) 2 years ago
version.go cmd/tailscale/cli,clientupdate: extract new clientupdate package (#8827) 2 years ago
web.go client/web: remove DebugMode from GET /api/data 2 years ago
web_test.go client/web: extract web client from cli package 2 years ago
whois.go cmd/tailscale/cli: document usage more clearly (#10681) 2 years ago