Diese Seite wurde maschinell übersetzt. Englisches Original lesen.

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.

Herkunft

OffiziellSigniert von einer Signaturidentität, die dieser Katalog als offiziellen Herausgeber anerkennt.
Inhalts-Digest
sha256:457e2d21d1c0853760d64559febbcee389ac554df89109de937f5e6556c05981
Veröffentlicht
2026-11-10T10:07:50Z
Signaturidentität
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

Signatur

  • Offiziellapplication/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

Referenz zu dieser Version

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

Entwicklerparameter

Werte, die der Entwickler im Aggregate festlegt.

NameTypStandardwertErforderlichBeschreibung
enable_networkbooleantrueneinWhether 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)15neinHow long, in seconds, one execution may run before the sandbox stops it.
python_packagesarray—neinExtra 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.

Dimensionierung durch den Operator

Infrastrukturdimensionierung, die der Operator pro Umgebung anpasst.

NameTypStandardwertErforderlichBeschreibung
portinteger (min 1024, max 65535)8194neinHTTP listen port the execution API is served on.
engine_versionstring0.2.15neinDify sandbox container image tag. The sandbox is released on its own cadence, so this tag moves independently of the API server's.
computeobject—nein—
overridesobject (open)—neinProvider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads.

Ausgabevertrag

Werte, die diese Komponente über die uses-Topologie an Konsumenten veröffentlicht.

NameTypStandardwertErforderlichBeschreibung
hoststring—jaIn-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—jaTCP 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—neinURL scheme to reach `host` and `port` over, which a consumer composes its base URL on.

uses-Sockets

Die Abhängigkeits-Sockets, über die sich diese Komponente verbindet. Das Ziel jeder über einen Socket verdrahteten Verbindung muss dessen Label-Selektor erfüllen, und jede Verbindung kann in den Slots, die der Socket deklariert, eine Anbindung tragen. Einen erforderlichen Slot muss jede Verbindung füllen, die das Aggregate oder das Release über den Socket verdrahtet.

ssrf_proxy

Selektor
component.aggrega.ai/category=ai-agent
Injektion
env

Dieser Socket deklariert keine Anbindungs-Slots, daher trägt eine Verbindung über ihn keine Anbindung.

Anbindungs-Slots

Benannte Bindungspunkte, an denen ein Feature an diese Komponente angebunden wird. Der Selektor eines Slots schränkt ein, welches Feature ihn füllen darf, und seine inject-Liste benennt, wie das Feature sein Material liefern darf. Ein erforderlicher Slot muss auf jeder Instanz gebunden sein, durch eine Anbindung an der Instanz oder in einem darüberliegenden Geltungsbereich, und ein sensibler Slot ist für den Umgang mit geheimem Material deklariert. Ein Feature kann auch unter einem Namen angebunden werden, den kein Slot deklariert.

SlotSelektorErforderlichInjektionSensibelBeschreibung
code_execution_keyfeature.aggrega.ai/kind=secretneinenvjaOptional 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.

Zulassungsliste für Selbstinjektion

env

Beziehungen

Typisierte Kanten zu und von anderen veröffentlichten Entitäten. Eine Referenz ohne veröffentlichtes Ziel wird als unterbrochene Kante statt als Link dargestellt.

Verwendet

Verwendet von

Konzeptreferenz zu Component →

Der Aggrega-Katalog — ein offener Index von Komponenten, Funktionen, Rezepten und den Plugins, die sie rendern.

Erstellt mit dem gemeinsamen Aggrega-Designsystem.

Datenschutz