From 93f61aa4cc2cc5c78ca45339b34fded5c476f931 Mon Sep 17 00:00:00 2001 From: Mario Minardi Date: Thu, 12 Sep 2024 16:18:14 -0600 Subject: [PATCH] tailcfg: add node attr for SSH environment variables (#13450) Add a node attr for enabling SSH environment variable handling logic. Updates https://github.com/tailscale/corp/issues/22775 Signed-off-by: Mario Minardi --- tailcfg/tailcfg.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 3cf486b0dee56..0d4fae3d5cdf7 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -2342,6 +2342,10 @@ const ( // NodeAttrDisableCaptivePortalDetection instructs the client to not perform captive portal detection // automatically when the network state changes. NodeAttrDisableCaptivePortalDetection NodeCapability = "disable-captive-portal-detection" + + // NodeAttrSSHEnvironmentVariables enables logic for handling environment variables sent + // via SendEnv in the SSH server and applying them to the SSH session. + NodeAttrSSHEnvironmentVariables NodeCapability = "ssh-env-vars" ) // SetDNSRequest is a request to add a DNS record.