build: integrate OpenSandbox as Agent Execution Sandbox#6490
Merged
c121914yu merged 5 commits intolabring:v4.14.9-devfrom Mar 16, 2026
Merged
build: integrate OpenSandbox as Agent Execution Sandbox#6490c121914yu merged 5 commits intolabring:v4.14.9-devfrom
c121914yu merged 5 commits intolabring:v4.14.9-devfrom
Conversation
Preview sandbox Image: |
Preview mcp_server Image: |
Docs Preview:🚀 FastGPT Document Preview Ready! |
Preview fastgpt Image: |
61ed709 to
f8d334b
Compare
Contributor
Author
|
the latest opensandbox has support all-in-one helm chart, the docke-compose also support custom the container-networker-namespace |
2381648 to
aaa7d17
Compare
c121914yu
reviewed
Mar 16, 2026
c121914yu
reviewed
Mar 16, 2026
d48454f to
6d6422d
Compare
a79ad3d to
c2a4c31
Compare
c2a4c31 to
e4f32b5
Compare
e4f32b5 to
806afa6
Compare
806afa6 to
3ecac66
Compare
* action * action * action
# Conflicts: # deploy/args.json # deploy/dev/docker-compose.cn.yml # deploy/dev/docker-compose.yml # deploy/docker/cn/docker-compose.milvus.yml # deploy/docker/cn/docker-compose.oceanbase.yml # deploy/docker/cn/docker-compose.pg.yml # deploy/docker/cn/docker-compose.seekdb.yml # deploy/docker/cn/docker-compose.zilliz.yml # deploy/docker/global/docker-compose.milvus.yml # deploy/docker/global/docker-compose.oceanbase.yml # deploy/docker/global/docker-compose.pg.yml # deploy/docker/global/docker-compose.seekdb.yml # deploy/docker/global/docker-compose.ziliiz.yml # deploy/templates/docker-compose.prod.yml # document/public/deploy/docker/cn/docker-compose.milvus.yml # document/public/deploy/docker/cn/docker-compose.oceanbase.yml # document/public/deploy/docker/cn/docker-compose.pg.yml # document/public/deploy/docker/cn/docker-compose.seekdb.yml # document/public/deploy/docker/cn/docker-compose.zilliz.yml # document/public/deploy/docker/global/docker-compose.milvus.yml # document/public/deploy/docker/global/docker-compose.oceanbase.yml # document/public/deploy/docker/global/docker-compose.pg.yml # document/public/deploy/docker/global/docker-compose.seekdb.yml # document/public/deploy/docker/global/docker-compose.ziliiz.yml
3ecac66 to
f5d3029
Compare
Docs Preview Deployment FailedFailed to deploy docs preview. Please check workflow logs. |
c121914yu
added a commit
that referenced
this pull request
Mar 16, 2026
* action * action * action * build: integrate OpenSandbox as Agent Execution Sandbox (#6490) * Update action (#6571) * action * action * action * action * action * build: integrate OpenSandbox as Agent Execution Sandbox # Conflicts: # deploy/args.json # deploy/dev/docker-compose.cn.yml # deploy/dev/docker-compose.yml # deploy/docker/cn/docker-compose.milvus.yml # deploy/docker/cn/docker-compose.oceanbase.yml # deploy/docker/cn/docker-compose.pg.yml # deploy/docker/cn/docker-compose.seekdb.yml # deploy/docker/cn/docker-compose.zilliz.yml # deploy/docker/global/docker-compose.milvus.yml # deploy/docker/global/docker-compose.oceanbase.yml # deploy/docker/global/docker-compose.pg.yml # deploy/docker/global/docker-compose.seekdb.yml # deploy/docker/global/docker-compose.ziliiz.yml # deploy/templates/docker-compose.prod.yml # document/public/deploy/docker/cn/docker-compose.milvus.yml # document/public/deploy/docker/cn/docker-compose.oceanbase.yml # document/public/deploy/docker/cn/docker-compose.pg.yml # document/public/deploy/docker/cn/docker-compose.seekdb.yml # document/public/deploy/docker/cn/docker-compose.zilliz.yml # document/public/deploy/docker/global/docker-compose.milvus.yml # document/public/deploy/docker/global/docker-compose.oceanbase.yml # document/public/deploy/docker/global/docker-compose.pg.yml # document/public/deploy/docker/global/docker-compose.seekdb.yml # document/public/deploy/docker/global/docker-compose.ziliiz.yml * remove invalid action --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: xqvvu <whoeverimf5@gmail.com> * action --------- Co-authored-by: chanzany <chenzhi@sangfor.com.cn> Co-authored-by: xqvvu <whoeverimf5@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Integrate OpenSandbox as FastGPT's code execution sandbox solution, providing a more secure and scalable code execution environment. This PR includes complete Docker Compose and Kubernetes (Helm) deployment support.
Key Changes:
What's Changed
1. OpenSandbox Helm Chart (
deploy/helm/opensandbox/)Complete Kubernetes deployment solution including:
Core Components
BatchSandboxesandPoolscustom resource definitionsConfiguration & Documentation
Kubernetes Resources
2. Docker Compose Integration
Updated deployment configurations for all database variants:
New Service:
opensandbox-serverSecurity Configuration
no_new_privilegesNetwork Configuration
host.docker.internalOPENSANDBOX_SERVER_URLenvironment variable3. Image & Version Management (
deploy/args.json)New Images
opensandbox-server:v0.1.4opensandbox-execd:v1.0.6opensandbox-egress:v1.0.1Container Registries
sandbox-registry.cn-zhangjiakou.cr.aliyuncs.comopensandbox/*Version Upgrades
fastgpt-sandbox: v4.14.7.1 → v4.14.7.24. Affected Configuration Files
Development Environment
deploy/dev/docker-compose.cn.ymldeploy/dev/docker-compose.ymlProduction Environment (All Database Variants)
deploy/docker/{cn,global}/docker-compose.{pg,milvus,oceanbase,seekdb,zilliz}.ymldeploy/templates/docker-compose.prod.ymlDocumentation Site
document/public/deploy/docker/Technical Details
OpenSandbox Architecture
Configuration Example
Testing Checklist
Breaking Changes
/var/run/docker.sock)OPENSANDBOX_SERVER_URLMigration Guide
For Existing Docker Compose Users
For Kubernetes Users
Documentation
New documentation added:
deploy/helm/opensandbox/README.md- Helm Chart usage guidedeploy/helm/opensandbox/examples/README.md- Deployment examplesdeploy/helm/opensandbox/scripts/README.md- Scripts documentationRelated Links
Checklist
Statistics
Files Changed Summary
New Files (52 files)
deploy/helm/opensandbox/)Modified Files (12 files)
deploy/args.json- Image registry and version configurationDeployment Topology
Docker Compose Deployment
Kubernetes Deployment
Environment Variables
FastGPT New Environment Variable
OpenSandbox Server Configuration
Set via TOML config file (
/etc/opensandbox/config.toml):SANDBOX_CONFIG_PATH=/etc/opensandbox/config.tomlSecurity Considerations
Docker Socket Access: The opensandbox-server requires Docker socket access to manage containers. Ensure proper security measures are in place.
Capability Dropping: The following capabilities are dropped for security:
Resource Limits:
no_new_privilegesenabledNetwork Isolation:
Performance Impact
Rollback Plan
If issues occur, you can rollback by:
Docker Compose:
# Revert to previous version git checkout main docker-compose down docker-compose up -dKubernetes:
Future Improvements