Introducing Deno Sandbox

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Deno launched a hosted code-sandbox service with a proxy that keeps API secrets out of sandboxed code, reducing what a prompt-injected agent can steal.

Read this as

The Deno team launched Deno Sandbox, a paid service that runs your code on their computers in isolated virtual machines. You don't need to use the Deno programming language, a Python library called deno-sandbox lets you create a sandbox, run shell commands, and read and write files. A sandbox can have up to 4GB of RAM, 2 vCPUs, 10GB of storage, and sessions last at most 30 minutes. Its cleverest trick: API keys are replaced with placeholders and swapped in by a proxy, so code inside the sandbox never sees your actual secret.

Deno Deploy's new Sandbox product competes in the hosted code-execution market, relevant to anyone running AI agents that write and run code. Pricing is usage-based, CPU time, GB-hours of memory, and storage, with sessions capped at 30 minutes. The standout security feature is secret proxying: API keys are injected as placeholders and only substituted for whitelisted domains, limiting exfiltration by malicious code. Fly offers a similar open-source pattern called tokenizer.

Deno Sandbox is a hosted product on the Deno Deploy SaaS platform, not the Deno runtime itself, with JavaScript and Python SDKs (deno-sandbox on PyPI) and an undocumented WebSocket-based API. Sandboxes get 4GB RAM, 2 vCPUs, 10GB ephemeral storage, persistent volumes, snapshots for fast custom image boots, and domain-scoped network allowlists. Secrets are delivered as DENO_SECRET_PLACEHOLDER tokens that a proxy substitutes only for requests to hosts like api.openai.com, so sandbox code never holds the real value. Sessions cap at 30 minutes and bill on CPU time, memory GB-hours and volume storage.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Deno Sandbox Deno Deploy deno-sandbox tokenizer Fly Hacker News

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading