Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
9714621d
authored
Jul 30, 2026
by
Jon
Committed by
GitHub
Jul 30, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add AGENT_SANDBOX_OPENSANDBOX_DISABLE_NETWORK_POLICY env var (#7406)
parent
9bb6b82c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
packages/service/core/ai/sandbox/infrastructure/provider/runtimeProfile/opensandbox.ts
+2
-1
packages/service/env.ts
+6
-0
No files found.
packages/service/core/ai/sandbox/infrastructure/provider/runtimeProfile/opensandbox.ts
View file @
9714621d
...
...
@@ -79,7 +79,8 @@ export function buildOpenSandboxRuntimeProfile(): SandboxRuntimeProfile {
// Docker 模式下默认拒绝常见宿主机别名;公网默认保持放行,私网 CIDR 需依赖部署网络边界。
const
networkPolicy
=
createConfig
.
networkPolicy
??
(
serviceEnv
.
AGENT_SANDBOX_OPENSANDBOX_RUNTIME
===
'docker'
(
!
serviceEnv
.
AGENT_SANDBOX_OPENSANDBOX_DISABLE_NETWORK_POLICY
&&
serviceEnv
.
AGENT_SANDBOX_OPENSANDBOX_RUNTIME
===
'docker'
?
OPEN_SANDBOX_DOCKER_LOCAL_NETWORK_POLICY
:
undefined
);
...
...
packages/service/env.ts
View file @
9714621d
...
...
@@ -115,6 +115,12 @@ export const serviceEnv = createEnv({
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY
:
BoolSchema
.
default
(
true
),
AGENT_SANDBOX_OPENSANDBOX_VOLUME_MANAGER_URL
:
UrlSchema
.
optional
(),
AGENT_SANDBOX_OPENSANDBOX_VOLUME_MANAGER_TOKEN
:
z
.
string
().
optional
(),
AGENT_SANDBOX_OPENSANDBOX_DISABLE_NETWORK_POLICY
:
BoolSchema
.
default
(
false
).
meta
({
description
:
'Disable the default outbound network policy for OpenSandbox Docker runtime. '
+
'Set to true when the OpenSandbox server uses a user-defined Docker network (not bridge), '
+
'as networkPolicy is only supported with network_mode=bridge.'
}),
AGENT_SANDBOX_DISK_MB
:
NumSchema
.
min
(
1
).
default
(
1024
).
meta
({
description
:
'Agent sandbox 磁盘大小基准(MB)。冷归档包上限等于该值,Skill 包和 IDE 单文件上限按该值的一半四舍五入计算。'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment