Mastra Platform推出加密机密
Mastra宣布为所有Mastra Platform项目提供加密机密功能,涵盖LLM API密钥、令牌和敏感环境变量。机密以加密的msec值存储,仅在应用启动时解密并注入运行中服务器的内存,并在控制台和API中设为只写;现有环境将在审核变量分类后原地加密。Mastra称平台不会存储明文机密,也不会将其明文写入磁盘、容器镜像、日志、部署产物或托管服务商变量存储,但现有报告未提供独立验证。
该功能直接针对报告中模型访问凭证及其他敏感变量可能暴露的问题,同时改变Mastra Platform用户保存、读取、迁移和轮换机密的方式。
To keep our platform and users safe from future incidents, we're introducing encrypted secrets for all projects to protect your LLM API keys, tokens, and other sensitive environment variables. Plaintext secret values are never stored. With this change, secrets stay stored in our platform's key management service and are never written as plaintext to disk, container images, logs, or deploy artifacts, and, importantly, never left in a hosting provider's variable store.
Your browser does not support the video tag.An OPENAI_API_KEY saved as a secret in the Mastra platform dashboard is encrypted into an msec value holding an encrypted key and an encrypted secret, then decrypted and passed to the running app at startup.
Stolen inference API keys have become one of the fastest ways for attackers to monetize a breach. In October 2026, Wiz Research tracked a "Black October" stretch of security incidents across at least nine AI developer platforms, with attackers hunting stored environment variables for model access. Our own upstream service provider Railway was one of the targets, with attackers going after router and frontier lab API keys stored on their servers.