security(pty,sftp): fix PTY cwd injection/recording/crashes & harden + upgrade SFTP manager
This commit is contained in:
parent
716627afdd
commit
838e69ba4e
6 changed files with 605 additions and 94 deletions
|
|
@ -177,7 +177,7 @@ export async function createGCoordinatorServer(
|
|||
const knownHosts = new KnownHostsService(db, auditService);
|
||||
const sshPool = new SSHPool(configManager, vaultService, knownHosts);
|
||||
const keyManager = new KeyManager(sshPool, vaultService, configManager, auditService);
|
||||
const ptyManager = new PTYManager(sshPool, configManager, wsHub);
|
||||
const ptyManager = new PTYManager(sshPool, configManager, wsHub, getRuntimeLimits);
|
||||
const sftpService = new SftpService(sshPool);
|
||||
const tunnelManager = new TunnelManager(sshPool, configManager, vaultService, authService);
|
||||
const customSystemsEngine = new CustomSystemsEngine(
|
||||
|
|
@ -564,7 +564,7 @@ export async function createGCoordinatorServer(
|
|||
app.use('/api/ai', createAiRouter({ authService, aiService }));
|
||||
app.use(
|
||||
'/api/servers/:id/sftp',
|
||||
createSftpRouter({ authService, configManager, auditService, sftpService }),
|
||||
createSftpRouter({ authService, configManager, auditService, sftpService, stepUpGuard }),
|
||||
);
|
||||
app.use(
|
||||
'/api/servers',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue