Skip to content

sandbox@4.12.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 14:17
· 8 commits to main since this release
a61a713

Minor Changes

  • Add detached command execution and CLI commands to inspect logs, wait for completion, and stop a running command. (#391)

  • Add sandbox read <name> <path> (alias cat) and sandbox write <name> <path> to read a sandbox file to stdout and write stdin to a sandbox file, and sandbox copy --recursive to copy whole directories in either direction. Failed copies now exit with a non-zero code. (#380)

  • Add sandbox exec --stdin to pipe local input into a foreground command. Also add detached stdin writes, selected command output, domain lookup, and Linux users and groups. (#392)

  • Add sandbox create fx to open fx in the universal image with its default permissions. Print commands to continue the conversation with fx -c or stop the sandbox after exiting. (#413)

  • Add credentials: { npm: true } to Sandbox.create and --credentials=npm to create, run, and sh, so a sandbox can install your team's private npm packages with Vercel managed credentials injected into the sandbox network policy. --credentials takes a comma-separated list, so later credential types share the same flag. (#453)

  • Add --network-policy-file <FILE> (use - for stdin) to create, run, sh, fork, and config network-policy. It takes the whole network policy as JSON in the SDK's NetworkPolicy shape, so the CLI can express any rule the SDK can, such as a request header limited to GET and HEAD. The SDK exports parseNetworkPolicy, which validates untrusted input with the same rules as Sandbox.create, rejects unknown keys, and never includes values in its errors. @vercel/sandbox-mock re-exports both. (#417)

Patch Changes