我们的“在生产环境中测试”系列第 6 天: 介绍 InstaBox Secrets。 向智能体提供 API 密钥的传统方式是使用环境变量。这已经不再安全。 智能体会读取不可信的网页、安装第三方软件包,并运行并非自己编写的代码,因此沙箱内的任何东西都可能泄露。 所以我们反过来做。 在 InstaBox 上,真实密钥永远不会进入沙箱。密钥通过出站代理处理。沙箱里只保存一个占位符。 当它发送 HTTPS 请求时,代理会将请求头中的占位符替换为真实密钥,但仅限你允许的主机。 无论沙箱以何种方式遭到入侵,你的密钥都安然无恙。 现在,你的基础设施比以往任何时候都更需要安全保障。 来 http://instabox.sh 和我们一起构建吧 ☁️
看原文
Day 6 of our 'Test in Prod' Series: Introducing InstaBox Secrets. The traditional way to give an agent an API key is an env var. That's no longer safe. Agents read untrusted web pages, install third-party packages, and run code they didn't write, so anything in the sandbox can be leaked. So we flipped it. On InstaBox, the real key never enters the sandbox. Secrets go through an outbound proxy. The sandbox only holds a placeholder. When it sends an HTTPS request, the proxy replaces the placeholder with the real key in the request header, but only for hosts you allow. No matter how the sandbox gets compromised, your key stays safe. Now more than ever, your infra needs to be secure. Come build with us at http://instabox.sh ☁️