Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(ssh): isolate managed tunnel processes #4347

MergednateEc(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/4347/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 11 additions and 0 deletions.

x
0 of 2 viewed, 2 left
5 additions and 0 deletionspackages/ssh/src/tunnel.test.tsModified
View file
@@ -381,6 +381,11 @@
​
const first = yield* manager.ensureEnvironment(target);
assert.equal(first.httpBaseUrl, "http://127.0.0.1:41773/");
+ const firstTunnelArgs = spawnedCommands.find((args) => args.includes("-N"));
+ assert.isDefined(firstTunnelArgs);
+ assert.include(firstTunnelArgs, "ControlMaster=no");
+ assert.include(firstTunnelArgs, "ControlPath=none");
+ assert.include(firstTunnelArgs, "ControlPersist=no");
​
yield* manager.disconnectEnvironment(target);
assert.equal(tunnelKillCount, 1);
6 additions and 0 deletionspackages/ssh/src/tunnel.tsModified
View file
@@ -963,6 +963,12 @@
"-o",
"ExitOnForwardFailure=yes",
"-o",
+ "ControlMaster=no",
+ "-o",
+ "ControlPath=none",
+ "-o",
+ "ControlPersist=no",
+ "-o",
"ServerAliveInterval=15",
"-o",
"ServerAliveCountMax=3",