Gemini Managed Agents 推出 Credentials API,沙盒内代码无法读取密钥原文
跑 agent 沙盒的人注意了,Google 这个 Credentials API 能让密钥不发进沙盒,按域名注入,env、CLI、MCP 都能用。
Philipp Schmid 介绍了 Gemini Managed Agents 的 Credentials API。
传统做法把 API 密钥放进普通环境变量,沙盒里的任意依赖都能读取并可能外泄。Credentials API 只在请求发往受信任域名时在线注入密钥,沙盒代码接触不到原始 token。
该机制支持环境变量、CLI 和 MCP Server 三种方式。
Passing API keys or secrets as normal env lets any dependency in your agent's sandbox read and potentially leak them. The Credentials API for Gemini Managed Agents keeps secrets secure and injects them on the wire only for trusted domains, so sandboxed code can't access raw tokens. Works for environment variables, CLIs and MCP Server. Learn more 👇 Philipp Schmid @_philschmid x.com/i/article/2104… 🔗 View Quoted Tweet📊 9 ⚡
本条情报归属 AITOP「产品」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「各国 AI 监管法案、合规治理与主权算力政策」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Gemini、MCP/工具、AI安全,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「Philipp Schmid」(@_philschmid),经 AITOP 多维评分管线结构化提炼。