Skip to main content

LocalSandboxConfig

@forge/monorepo


@forge/monorepo / backend/src / LocalSandboxConfig

Type Alias: LocalSandboxConfig

LocalSandboxConfig = object

Defined in: backend/src/toolkit/sandbox.ts:276

Properties

allowUnsafeLocalExecution

readonly allowUnsafeLocalExecution: true

Defined in: backend/src/toolkit/sandbox.ts:284

Required, and named to be uncomfortable to type.

There is no safe default here. A shell on the runtime's own host has no isolation at all: the command runs as the runtime user, with its filesystem, its network and its credentials. That is a remote code execution endpoint reachable through content the model merely read.


shell?

readonly optional shell?: string

Defined in: backend/src/toolkit/sandbox.ts:286


timeoutMs?

readonly optional timeoutMs?: number

Defined in: backend/src/toolkit/sandbox.ts:285