تمت ترجمة هذه الصفحة آليًا. اقرأ الأصل الإنجليزي.

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.

المنشأ

رسميموقَّع بهوية توقيع يعترف بها هذا الكتالوج بوصفها جهة طارحة رسمية.
ملخّص المحتوى
sha256:457e2d21d1c0853760d64559febbcee389ac554df89109de937f5e6556c05981
تاريخ الطرح
2026-11-10T10:07:50Z
هوية التوقيع
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.

عقد الإخراج

قيم يطرحها هذا Component للمستهلكين عبر طوبولوجيا 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

مقابس التبعية التي يتصل عبرها هذا Component. يجب أن يلبّي هدف كل اتصال موصَّل عبر مقبس محدِّد التسميات الخاص به، ويمكن أن يحمل كل اتصال إرفاقًا في الخانات التي يعلنها المقبس. والخانة المطلوبة مستحقة على كل اتصال يوصله Aggregate أو Release عبر المقبس.

ssrf_proxy

المحدِّد
component.aggrega.ai/category=ai-agent
Inject
env

لا يعلن هذا المقبس أي خانات إرفاق، لذا لا يحمل الاتصال عبره أي إرفاق.

خانات الإرفاق

نقاط ربط مسمّاة يُرفق عندها Feature بهذا Component. يقيّد محدِّد الخانة أي Feature يجوز له ملأها، وتسمّي قائمة inject الخاصة بها كيف يجوز تسليم مواد Feature. يجب ربط الخانة المطلوبة في كل مثيل، بإرفاق على المثيل أو على نطاق أعلى منه، وتُعلن الخانة الحساسة بأنها تتعامل مع مواد سرية. ويجوز أيضًا أن يُرفق Feature تحت اسم لا تعلنه أي خانة.

الخانةالمحدِّدمطلوبInjectحساسالوصف
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.

قائمة سماح self-inject

env

العلاقات

حواف مصنَّفة بالنوع من الكيانات المطروحة الأخرى وإليها. المرجع الذي لا هدف مطروحًا له يُعرض بوصفه حافة مكسورة لا رابطًا.

يستخدم

يستخدمه

مرجع مفاهيم Component

كتالوج Aggrega — فهرس مفتوح يضم Components و Features و Recipes و Plugins التي تصيّرها.

بُني بنظام التصميم المشترك الخاص بمشروع Aggrega.

الخصوصية