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
Aaron Klotz f8a4df66de cmd/tailscale/cli, ipn: move exit node IP parsing and validation from cli into prefs.
We need to be able to provide the ability for the GUI clients to resolve and set
the exit node IP from an untrusted string, thus enabling the ability to specify
that information via enterprise policy.

This patch moves the relevant code out of the handler for `tailscale up`,
into a method on `Prefs` that may then be called by GUI clients.

We also update tests accordingly.

Updates https://github.com/tailscale/corp/issues/4239

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
3 years ago
..
ipnlocal ipn/ipnlocal: migrate all platforms to controlplane.tailscale.com 3 years ago
ipnserver ipn/store: add common package for instantiating ipn.StateStores 3 years ago
ipnstate ipn/ipnlocal: use views for Peer.PrimaryRoutes and Peer.Tags 3 years ago
localapi control/controlclient, localapi: shorten expiry time via localapi (#4112) 3 years ago
policy ipn/policy: treat DNS service as interesting so it's not filtered out 3 years ago
store ipn/store: [TestNewStore] do not use an empty file 3 years ago
backend.go ipn: use key.NodePublic instead of tailcfg.NodeKey 3 years ago
doc.go Move Linux client & common packages into a public repo. 5 years ago
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 4 years ago
handle.go ipn: another controlplane synonym 3 years ago
message.go ipn: don't log IPN messages that may contain an authkey. 3 years ago
message_test.go ipn: allow b to be nil in NewBackendServer 4 years ago
prefs.go cmd/tailscale/cli, ipn: move exit node IP parsing and validation from cli into prefs. 3 years ago
prefs_clone.go wgengine/netstack: add an SSH server experiment 3 years ago
prefs_test.go cmd/tailscale/cli, ipn: move exit node IP parsing and validation from cli into prefs. 3 years ago
store.go ipn/store: add common package for instantiating ipn.StateStores 3 years ago