frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Deno Sandbox

https://deno.com/blog/introducing-deno-sandbox
96•johnspurlock•1h ago

Comments

johnspurlock•1h ago
"Over the past year, we’ve seen a shift in what Deno Deploy customers are building: platforms where users generate code with LLMs, and that code runs immediately without review. That code frequently calls LLMs itself, which means it needs API keys and network access.

This isn’t the traditional “run untrusted plugins” problem. It’s deeper: LLM-generated code, calling external APIs with real credentials, without human review. Sandboxing the compute isn’t enough. You need to control network egress and protect secrets from exfiltration.

Deno Sandbox provides both. And when the code is ready, you can deploy it directly to Deno Deploy without rebuilding."

twosdai•1h ago
Like the emdash, whenever I read: "this isn't x it's y" my dumb monkey brain goes "THATS AI" regardless if it's true or not.
lucacasonato•1h ago
I can confirm Ryan is a real human :)
zamadatix•45m ago
Is there a chance you could ask Ryan if he had an LLM write/rewrite large parts of this blog post? I don't mind at all if he did or didn't in itself, it's a good and informative post, but I strongly assumed the same while reading the article and if it's truly not LLM writing then it would serve as a super useful indicator about how often I'm wrongly making that assumption.
ttoinou•1h ago
What happens if we use Claude Pro or Max plans on them ? It’ll always be a different IP connecting and we might get banned from Anthropic as they think we’re different users

Why limit the lifetime on 30 mins ?

lucacasonato•1h ago
We'll increase the lifetime in the next weeks - just some tech internally that needs to be adjusted first.
emschwartz•54m ago
> In Deno Sandbox, secrets never enter the environment. Code sees only a placeholder

> The real key materializes only when the sandbox makes an outbound request to an approved host. If prompt-injected code tries to exfiltrate that placeholder to evil.com? Useless.

That seems clever.

perfmode•53m ago
I was just about to say the same thing. Cool technique.
motrm•46m ago
Reminds me a little of Fly's Tokenizer - https://github.com/superfly/tokenizer

It's a little HTTP proxy that your application can route requests through, and the proxy is what handles adding the API keys or whatnot to the request to the service, rather than your application, something like this for example:

Application -> tokenizer -> Stripe

The secrets for the third party service should in theory then be safe should there be some leak or compromise of the application since it doesn't know the actual secrets itself.

Cool idea!

tptacek•38m ago
It's exactly the tokenizer, but we shoplifted the idea too; it belongs to the world!

(The credential thing I'm actually proud of is non-exfiltratable machine-bound Macaroons).

Remember that the security promises of this scheme depend on tight control over not only what hosts you'll send requests to, but what parts of the requests themselves.

simonw•46m ago
Yeah, this is a really neat idea: https://deno.com/blog/introducing-deno-sandbox#secrets-that-...

  await using sandbox = await Sandbox.create({
    secrets: {
      OPENAI_API_KEY: {
        hosts: ["api.openai.com"],
        value: process.env.OPENAI_API_KEY,
      },
    },
  });
  
  await sandbox.sh`echo $OPENAI_API_KEY`;
  // DENO_SECRET_PLACEHOLDER_b14043a2f578cba75ebe04791e8e2c7d4002fd0c1f825e19...
It doesn't prevent bad code from USING those secrets to do nasty things, but it does at least make it impossible for them to steal the secret permanently.

Kind of like how XSS attacks can't read httpOnly cookies but they can generally still cause fetch() requests that can take actions using those cookies.

Tepix•41m ago
It must be performing a man-in-the-middle for HTTPS requests. That makes it more difficult to do things like certificate pinning.
verdverm•41m ago
Dagger has a similar feature: https://docs.dagger.io/getting-started/types/secret/

Same idea with more languages on OCI. I believe they have something even better in the works, that bundles a bunch of things you want in an "env" and lets you pass that around as a single "pointer"

I use this here, which eventually becomes the sandbox my agent operates in: https://github.com/hofstadter-io/hof/blob/_next/.veg/contain...

linolevan•38m ago
It’s pretty neat.

Had some previous discussion that may be interesting on https://news.ycombinator.com/item?id=46595393

rfoo•30m ago
I like this, but the project mentioned in the launch post

> via an outbound proxy similar to coder/httpjail

looks like AI slop ware :( I hope they didn't actually run it.

e12e•52m ago
Looks promising. Any plans for a version that runs locally/self-host able?

Looks like the main innovation here is linking outbound traffic to a host with dynamic variables - could that be added to deno itself?

ianberdin•48m ago
Firecrackervm with proxy?
simonw•43m ago
Note that you don't need to use Deno or JavaScript at all to use this product. Here's their Python client SDK: https://pypi.org/project/deno-sandbox/

  from deno_sandbox import DenoDeploy
  
  sdk = DenoDeploy()
  
  with sdk.sandbox.create() as sb:
      # Run a shell command
      process = sb.spawn("echo", args=["Hello from the sandbox!"])
      process.wait()
  
      # Write and read files
      sb.fs.write_text_file("/tmp/example.txt", "Hello, World!")
      content = sb.fs.read_text_file("/tmp/example.txt")
      print(content)
Looks like the API protocol itself uses websockets: https://tools.simonwillison.net/zip-wheel-explorer?package=d...
Tepix•43m ago
If you can create a deno sandbox from a deno sandbox, you could create an almost unkillable service that jumps from one sandbox to the next. Very handy for malicious purposes. ;-)

Just an idea…

runarberg•35m ago
Isn’t that basically how zip-bombs work?
nihakue•41m ago
See also Sprites (https://news.ycombinator.com/item?id=46557825) which I've been using and really enjoying. There are some key architecture differences between the two, but very similar surface area. It'll be interesting to see if ephemeral + snapshots can be as convenient as stateful with cloning/forking (which hasn't actually dropped yet, although the fly team say it's coming).

Will give these a try. These are exciting times, it's never been a better time to build side projects :)

snehesht•28m ago
50/200 Gb free plus $0.5 / Gb out egress data seems expensive when scaling out.
ATechGuy•13m ago
> allowNet: ["api.openai.com", "*.anthropic.com"],

How to know what domains to allow? The agent behavior is not predefined.

mrpandas•4m ago
Where's the real value for devs in something like this? Hasn't everyone already built this for themselves in the past 2 years? I'm not trying to sound cheeky or poo poo the product, just surprised if this is a thing. I can never read what's useful by gut anymore, I guess.

superfly/tokenizer: HTTP proxy that injects 3rd party credentials into requests

https://github.com/superfly/tokenizer
1•tosh•1m ago•0 comments

Electric Dreams – Tamiko Thiel on the Connection Machine

https://www.thetonearm.com/electric-dreams-made-real-tamiko-thiel-on-the-connection-machine/
1•rbanffy•1m ago•0 comments

Show HN: No more static meeting links

https://atimeforeveryone.xyz
1•Mrakermo•2m ago•0 comments

Keep business structure and IoT data in one system

https://www.blynk.io/blog/making-iot-fit-your-business-structure-with-custom-databases-from-blynk
2•hholen•2m ago•0 comments

5 Fast-growing tech jobs 2026

https://mashable.com/article/top-tech-jobs-ai-2026
1•gitpullups•2m ago•0 comments

OSMC 2025 – Easy logging refinement with FlowG [video]

https://www.youtube.com/watch?v=zrvc6hPmNYI
1•linkdd•3m ago•0 comments

Melinda French Gates reacts to new details about Bill Gates in the Epstein files

https://www.npr.org/2026/02/03/nx-s1-5697080/melinda-french-gates-reacts-to-ex-husband-bill-gates...
1•neaden•3m ago•0 comments

I couldn't afford a $300 headshot, so I built this

https://www.ai-headshot-generator.art/
1•taoji1994•3m ago•1 comments

Show HN: Prominara – The SEO tool for the AI search era

https://prominara.com
1•nseara•4m ago•0 comments

Show HN: Helply – AI support agents with guaranteed results

https://helply.com
1•jscheel•6m ago•0 comments

Lightweight tools vs. enterprise RMMs: what works for small teams?

1•brintha•7m ago•0 comments

ClickHouse Release 26.1

https://presentations.clickhouse.com/2026-release-26.1/
2•marksomnian•8m ago•0 comments

Show HN: A Python time and space complexity reference

https://pythoncomplexity.com/
1•heikkitoivonen•8m ago•0 comments

Kilo CLI 1.0

https://blog.kilo.ai/p/kilo-cli
2•tosh•10m ago•0 comments

One machine can go pretty far if you build things properly (2022)

https://rachelbythebay.com/w/2022/01/27/scale/
3•birdculture•12m ago•0 comments

1993: Global Network Navigator and the first web designer

https://cybercultural.com/p/1993-global-network-navigator/
1•freediver•12m ago•0 comments

UniKernels: Functional Operating System Design [video]

https://www.youtube.com/watch?v=UEIHfXLMtwA
3•romes•12m ago•0 comments

Balancing your dataset? Mind the privacy leaks

https://desfontain.es/blog/smote-and-mirrors.html
1•p4bl0•14m ago•0 comments

Ask HN: What modern front end technologies are worth paying attention to?

1•bqc•15m ago•0 comments

Laws of Succession

https://entropicthoughts.com/laws-of-succession
1•ibobev•15m ago•0 comments

Show HN: Slidev and marimo – Interactive Python in Markdown slides

https://lucharo.github.io/slidev-marimo/
1•lucharo•15m ago•0 comments

From Htmx to Django LiveView

https://en.andros.dev/blog/94d14a9e/from-htmx-to-django-liveview/
1•ibobev•16m ago•0 comments

Mark Join

https://buttondown.com/jaffray/archive/mark-join/
1•ibobev•16m ago•0 comments

I fine-tuned Llama-8B to understand my slacking patterns

https://www.laksh.us/blog/signal-ai-coach
1•LakshyaC•16m ago•0 comments

OpenSSH connections with post-quantum key exchange through WireGuard tunnel

https://group.miletic.net/en/blog/2026-01-31-openssh-connections-with-post-quantum-key-exchange-t...
1•vedranm•16m ago•0 comments

ExplainOnce is a clarity protocol for structured, permanent instructions

https://explainonce.org/
2•OddSnippet•17m ago•1 comments

Show HN: I built an automated decision layer for form requests

https://formrule.com
1•lukapg•17m ago•0 comments

1k samples sent for testing after possible biological lab found: Las Vegas

https://abcnews.go.com/US/fbi-investigating-biological-lab-operating-inside-las-vegas/story?id=12...
1•vinnyglennon•18m ago•0 comments

Ask HN: Is this printer ok to buy?

1•everyone•18m ago•0 comments

Western Digital doubles the performance of hard drives with dual-actuator

https://www.tomshardware.com/pc-components/hdds/western-digital-doubles-the-performance-of-hard-d...
1•rbanffy•18m ago•0 comments