ssh/tailssh: add support for agent forwarding.

Updates #3802

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2022-03-14 13:26:06 -07:00
committed by Maisem Ali
parent 6e86bbcb06
commit 98b45ef12c
3 changed files with 63 additions and 5 deletions

View File

@@ -1615,6 +1615,10 @@ type SSHAction struct {
// before being forcefully terminated.
SesssionDuration time.Duration `json:"sessionDuration,omitempty"`
// AllowAgentForwarding, if true, allows accepted connections to forward
// the ssh agent if requested.
AllowAgentForwarding bool `json:"allowAgentForwarding,omitempty"`
// HoldAndDelegate, if non-empty, is a URL that serves an
// outcome verdict. The connection will be accepted and will
// block until the provided long-polling URL serves a new