ipn/ipnlocal: add start of inter-user Taildrop

Controlled by server-sent capability policy.

To be initially used for SSH servers to record sessions to other
nodes. Not yet productized into something user-accessible. (Notably,
the list of Taildrop targets from the sender side isn't augmented
yet.) This purely permits expanding the set of expands a node will
accept a drop from.

Updates #3802
Updates #4217

Change-Id: Id7a5bccd686490f8ef2cdc7dae7c07c440dc0085
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-04-17 08:45:49 -07:00
committed by Brad Fitzpatrick
parent f4f76eb275
commit cd916b728b
3 changed files with 33 additions and 3 deletions
+8
View File
@@ -1577,8 +1577,16 @@ type Oauth2Token struct {
}
const (
// MapResponse.Node self capabilities.
CapabilityFileSharing = "https://tailscale.com/cap/file-sharing"
CapabilityAdmin = "https://tailscale.com/cap/is-admin"
// Inter-node capabilities.
// CapabilityFileSharingSend grants the ability to receive files from a
// node that's owned by a different user.
CapabilityFileSharingSend = "https://tailscale.com/cap/file-send"
)
// SetDNSRequest is a request to add a DNS record.