Skip to content

Update sdk run as sandbox#69

Merged
Dingway98 merged 3 commits intomainfrom
update-sdk-runAs-sandbox
Apr 7, 2026
Merged

Update sdk run as sandbox#69
Dingway98 merged 3 commits intomainfrom
update-sdk-runAs-sandbox

Conversation

@Dingway98
Copy link
Copy Markdown
Contributor

@Dingway98 Dingway98 commented Apr 7, 2026

Note

Medium Risk
Adds privilege-selection (runAs) to sandbox file and process operations and changes how process commands are serialized, which could affect runtime behavior/permissions and backward compatibility of process invocation.

Overview
Adds runAs support across sandbox APIs. SandboxFilesApi now supports withRunAs() to set a default user and automatically injects runAs into all file-related query/body payloads.

Updates process execution ergonomics and payload normalization. SandboxProcessesApi.exec/start gain string overloads with SandboxExecOptions, always send a single command string plus runAs (dropping args/useShell from the runtime payload), and the sandbox handle exec now forwards string+options to the process API.

Docs/tests are updated accordingly (README example, new process API unit tests, e2e files tests run as root by default, snapshot lifecycle tests add settle delay/retry), and the package version bumps to 0.89.1.

Reviewed by Cursor Bugbot for commit cecef72. Bugbot is set up for automated code reviews on this repo. Configure here.

@Dingway98 Dingway98 force-pushed the update-sdk-runAs-sandbox branch from efcb92f to cecef72 Compare April 7, 2026 23:34
@Dingway98 Dingway98 merged commit afcf2e8 into main Apr 7, 2026
1 check passed
@Dingway98 Dingway98 deleted the update-sdk-runAs-sandbox branch April 7, 2026 23:41
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.

2 participants