Simon Willison 介绍沙箱服务器的域名白名单代理与凭证替换机制
智能体跑代码最怕乱联网、密钥泄露。Simon Willison 这条讲了两个实用做法:白名单代理管住出网域名,凭证替换让代码调 API 却摸不到真密钥。写智能体的开发者可以直接照抄这套安全模式。
Simon Willison 分享了三个沙箱服务器的一个可选功能:HTTP/HTTPS 白名单代理。开启后,智能体运行的代码只能访问白名单中的主机,网络出口被严格收窄。
配套的凭证替换机制让智能体可以发起需要认证的 API 调用,但真实密钥不会交给智能体本身,由代理在转发时替换为有效凭证。两者结合,等于给智能体的网络访问加了出口管控和密钥隔离两层防护。
对要把智能体接入生产环境的开发者来说,这类沙箱安全设计值得直接借鉴,避免代码执行环境拿到不受限的网络权限和原始密钥。
Each of the three sandbox servers includes an optional HTTP/HTTPS allow-list proxy, so you can control exactly which hosts your agent's code can communicate with - plus a credential replacement mechanism to make authenticated API calls without sharing a secret with the agent📊 1 ⚡
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include sandbox, agents, allow-list proxy.
Source attribution: curated from Simon Willison (@simonw).