Mastra introduced encrypted secrets for all projects on its platform. Secrets are now stored as encrypted values in its key management service. They are never written as plaintext to disk, container images, logs, or deploy artifacts. Secrets are decrypted and injected into server memory only at startup. Saved secret values can no longer be read back in the dashboard or API. Existing environments will migrate in two steps: review classification, then encrypt in place. A split-token system and audited access control the decryption process. Private-registry install tokens remain an exception and are not baked into images. Unencrypted config variables still pass through as plaintext at build time.
What changed
Secrets were stored as plaintext and accessible in the UI, logs, and deploy artifacts.
What it unlocks
Storing API keys and tokens as encrypted values that are only decrypted at server startup.
What you need to act on it
- a Mastra Platform project
Sources