Dify Plugin Daemon, Sandbox, and SSRF Proxy Boundaries

langgenius/dify @ 8394eb1 · fixed-commit static source & Compose wiring

Dify Plugin Daemon, Sandbox, and SSRF Proxy Boundaries langgenius/dify @ 8394eb1 · fixed-commit static source & Compose wiring Nginx Edge · /console/api, /api, /v1 → api; /e/ → plugin_daemon · Core control plane · default + ssrf_proxy_network Nginx Edge /console/api, /api, /v1 → api; /e/ → plugin_daemon Plugin Daemon · plugin_daemon:5002 · ssrf_proxy_network + default · Core control plane · default + ssrf_proxy_network · dual-network Plugin Daemon plugin_daemon:5002 · ssrf_proxy_network + default dual-network Dify API & Celery Workers · api:5001 · ssrf_proxy_network + default · Core control plane · default + ssrf_proxy_network · dual-network Dify API & Celery Workers api:5001 · ssrf_proxy_network + default dual-network Dify Code Sandbox · sandbox:8194 · ssrf_proxy_network only (internal: true) · ssrf_proxy_network (internal: true) · Code execution egress gate · isolated network Dify Code Sandbox sandbox:8194 · ssrf_proxy_network only (internal: true) isolated network Squid SSRF Proxy · ssrf_proxy:3128 · denies to_private_networks · ssrf_proxy_network (internal: true) · Code execution egress gate Squid SSRF Proxy ssrf_proxy:3128 · denies to_private_networks Agent Local Sandbox · local_sandbox:5004 (shellctl) · separate proxy plane · Dedicated Agent shell sandbox plane · separate sandbox Agent Local Sandbox local_sandbox:5004 (shellctl) · separate proxy plane separate sandbox Agent SSRF Proxy · agent_ssrf_proxy:3128 · dedicated Squid for shellctl · Dedicated Agent shell sandbox plane Agent SSRF Proxy agent_ssrf_proxy:3128 · dedicated Squid for shellctl /e/ bypasses API (Dify-Hook-Url) /console/api, /api, /v1 → api:5001 PLUGIN_DAEMON_URL (trust_env=False) DIFY_INNER_API_URL callback POST /v1/sandbox/run (env proxy active) HTTP(S)_PROXY :3128 HTTP(S)_PROXY :3128 Core control plane · default + ssrf_proxy_network ssrf_proxy_network (internal: true) · Code execution egress gate Dedicated Agent shell sandbox plane Legend Frontend Backend Security

Architecture Diagnosis

Built into Archify, runs locally

Ask your AI assistant:

Use Archify to create an architecture diagram for this project and start Architecture Diagnosis.