Skip to content

Refactor CodeCanvas execution environment over sandbox primitives#136

Open
camerondurham wants to merge 8 commits intomainfrom
feat/sandbox-redesign
Open

Refactor CodeCanvas execution environment over sandbox primitives#136
camerondurham wants to merge 8 commits intomainfrom
feat/sandbox-redesign

Conversation

@camerondurham
Copy link
Owner

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cef204af86

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 97 to 98
sandbox.DebugPrintf("sandbox fallback to direct run after isolation error: %v", err)
return runDirect(ctx, input.Command, workDir)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fail closed when isolation setup errors

When runIsolated fails (for example on hosts where unshare/user namespaces are not permitted), this path silently falls back to runDirect, which executes the user command as the server process. Because RuntimeAgent now uses linuxsandbox.NewRunner() by default, this non-strict fallback is active in normal execution and bypasses the previous process wrapper’s UID/GID and rlimit enforcement, so unsupported sandbox environments run code effectively unsandboxed instead of failing safely.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant