feat: py sandbox for workflow

* chore: update Dockerfile and sandbox.py
* feat: py sandbox for workflow
* feat: py sandbox for workflow

See merge request: !885
This commit is contained in:
徐兆楠
2025-07-25 07:17:25 +00:00
parent e8686379b2
commit 3749abdea0
20 changed files with 521 additions and 79 deletions

View File

@@ -65,6 +65,17 @@ const (
SessionDataKeyInCtx = "session_data_key_in_ctx"
OpenapiAuthKeyInCtx = "openapi_auth_key_in_ctx"
CodeRunnerType = "CODE_RUNNER_TYPE"
CodeRunnerAllowEnv = "CODE_RUNNER_ALLOW_ENV"
CodeRunnerAllowRead = "CODE_RUNNER_ALLOW_READ"
CodeRunnerAllowWrite = "CODE_RUNNER_ALLOW_WRITE"
CodeRunnerAllowNet = "CODE_RUNNER_ALLOW_NET"
CodeRunnerAllowRun = "CODE_RUNNER_ALLOW_RUN"
CodeRunnerAllowFFI = "CODE_RUNNER_ALLOW_FFI"
CodeRunnerNodeModulesDir = "CODE_RUNNER_NODE_MODULES_DIR"
CodeRunnerTimeoutSeconds = "CODE_RUNNER_TIMEOUT_SECONDS"
CodeRunnerMemoryLimitMB = "CODE_RUNNER_MEMORY_LIMIT_MB"
)
const (