이 페이지는 기계 번역되었습니다. 영어 원문 읽기.

Component

core/ai-agent/dify-sandbox

The Dify code sandbox — the isolated execution service that runs the Python and JavaScript of a workflow's code nodes. The API server and the task worker hand it a snippet over HTTP and receive the result; the snippet never runs inside either of them, which is what keeps a workflow author's code out of the platform's own process. It holds an authentication key that its callers present, so a workload that merely reaches its port cannot execute code through it, and its own outbound traffic leaves through the forward proxy wired on the `ssrf_proxy` uses-socket rather than going out directly. Keeps no state between calls — each execution is independent and its working directory is discarded — so it renders as a stateless server. Exports its host, port and protocol to consumers via the uses topology.

출처

공식이 카탈로그가 공식 게시자로 인정하는 서명 ID로 서명되었습니다.
콘텐츠 다이제스트
sha256:457e2d21d1c0853760d64559febbcee389ac554df89109de937f5e6556c05981
게시일
2026-11-10T10:07:50Z
서명 ID
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

서명

  • 공식application/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:6fae2a03c5a52639882ca1ca355bcf880c9bed148ddd77f11d550e63e7fdd840

이 버전의 참조

oci://hub.aggrega.ai/component/core/ai-agent/dify-sandbox:1.0.0

개발자 매개변수

개발자가 Aggregate에서 설정하는 값입니다.

이름타입기본값필수설명
enable_networkbooleantrue아니요Whether executed code may make network calls at all. Left at the default, calls are permitted and leave through the wired forward proxy, which is what lets a code node fetch a URL while still being unable to reach a private address. Set it false to refuse network access outright, which suits an installation whose code nodes only transform data they were given.
worker_timeoutinteger (min 1)15아니요How long, in seconds, one execution may run before the sandbox stops it.
python_packagesarray—아니요Extra Python package requirements the sandbox installs before it accepts work, each written as one requirement line. Left unset, executed code sees the sandbox's built-in package set only.

운영자 사이징

운영자가 환경별로 조정하는 인프라 사이징입니다.

이름타입기본값필수설명
portinteger (min 1024, max 65535)8194아니요HTTP listen port the execution API is served on.
engine_versionstring0.2.15아니요Dify sandbox container image tag. The sandbox is released on its own cadence, so this tag moves independently of the API server's.
computeobject—아니요—
overridesobject (open)—아니요Provider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads.

출력 계약

이 컴포넌트가 uses 토폴로지를 통해 소비자에게 게시하는 값입니다.

이름타입기본값필수설명
hoststring—예In-cluster DNS name of the Service fronting the code sandbox. The API server and the worker dial this name to have a snippet executed away from their own process.
portinteger—예TCP port that Service accepts execution requests on. It follows the port an operator set in the Release, so a consumer reads it rather than assuming a default.
protocolstring—아니요URL scheme to reach `host` and `port` over, which a consumer composes its base URL on.

uses 소켓

이 컴포넌트가 연결에 사용하는 의존성 소켓입니다. 소켓을 통해 배선되는 모든 연결의 대상은 해당 소켓의 레이블 셀렉터를 충족해야 하며, 각 연결은 소켓이 선언한 슬롯에 첨부를 전달할 수 있습니다. 필수 슬롯은 Aggregate 또는 Release가 해당 소켓을 통해 배선하는 각 연결이 채워야 합니다.

ssrf_proxy

셀렉터
component.aggrega.ai/category=ai-agent
주입
env

이 소켓은 첨부 슬롯을 선언하지 않으므로 이 소켓을 통한 연결은 첨부를 전달하지 않습니다.

첨부 슬롯

Feature가 이 컴포넌트에 첨부되는 이름 있는 바인딩 지점입니다. 슬롯의 셀렉터는 어떤 Feature가 슬롯을 채울 수 있는지를 제한하고, 슬롯의 inject 목록은 Feature의 자료를 어떻게 전달할 수 있는지를 지정합니다. 필수 슬롯은 인스턴스의 첨부 또는 그 위 범위의 첨부를 통해 모든 인스턴스에서 바인딩되어야 하며, 민감 슬롯은 비밀 자료를 처리하도록 선언됩니다. Feature는 어떤 슬롯도 선언하지 않은 이름으로 첨부될 수도 있습니다.

슬롯셀렉터필수주입민감설명
code_execution_keyfeature.aggrega.ai/kind=secret아니요env예Optional execution key the sandbox checks on every request it receives. Each service that calls the sandbox presents the same key, as the credential on the connection it reaches the sandbox through, so the sandbox and its callers hold one value. Unattached, the Recipe uses the pinned development literal `dify-sandbox`, suitable for evaluation only and published in this catalog, so every Release that leaves the slot unattached shares it.

자체 주입 허용 목록

env

관계

게시된 다른 엔터티와 주고받는 타입 지정 에지입니다. 게시된 대상이 없는 참조는 링크가 아닌 끊어진 에지로 표시됩니다.

사용함

사용됨

Component 개념 레퍼런스 →

Aggrega 카탈로그 — 컴포넌트, 기능, 레시피, 그리고 이를 렌더링하는 플러그인의 공개 인덱스입니다.

공유 Aggrega 디자인 시스템으로 구축되었습니다.

개인정보 보호