Rotate the encryption key
Give Studio a new encryption key while it still reads the old one, save every stored secret again under the new key, and only then remove the old one.
Goal
Studio on a new encryption key, every secret it stores saved again under that key, and the old key gone from .env.
Before you start
Studio encrypts every secret it stores with TALON_ENCRYPTION_KEY, which the installer wrote into .env. Rotate it when it may have leaked, when someone who had it leaves, or on a schedule. The order matters: a step out of turn leaves a secret Studio can no longer read.
Make a new key, and keep the old one. Generate it:
openssl rand -hex 32In
.env, setTALON_ENCRYPTION_KEYto the new key, and addTALON_ENCRYPTION_KEY_PREVIOUSwith the old one. Thendocker compose up -d. Studio writes with the new key and still reads with the old: Connect → SIEM still says Active, and Settings → MCP Connected.
Paste each secret again. Nothing re-encrypts on its own, and a secret left blank stays as it was stored, under the old key. On Connect → SIEM, open your SIEM's settings: Secrets are never shown. Leave a secret blank to keep it. Paste the token into Auth token and press Save changes. On Settings → MCP, press Edit on each server, paste its token into Bearer token, which reads •••••••• saved — leave blank to keep, and press Save changes: MCP server updated. Do the same for every other secret you listed.

Paste your Talon key again. Studio stores your Talon key encrypted too, and a key it cannot decrypt sends it to the key screen. On License, paste it and press Activate License: Community key added, and the page reads Community Edition, licensed to your account's address. Now it is stored under the new key.
Remove the old key. Take
TALON_ENCRYPTION_KEY_PREVIOUSout of.envand rundocker compose up -d. Check each place you pasted a secret: the SIEM Active, each MCP server Connected, and the licence as it was.
Know what a missed secret looks like. A secret you did not paste again can no longer be read. The SIEM card turns Error: Unable to decrypt v2 value with TALON_ENCRYPTION_KEY or TALON_ENCRYPTION_KEY_PREVIOUS: Unsupported state or unable to authenticate data, and an MCP server Failed. Put the old key back in
TALON_ENCRYPTION_KEY_PREVIOUS,docker compose up -d, paste that secret again, and remove the old key once more.

You should now see
.env with one TALON_ENCRYPTION_KEY, the new one, and no TALON_ENCRYPTION_KEY_PREVIOUS. The SIEM Active, every MCP server Connected, and the licence page showing your key. Take a fresh backup now: it is the first one the new key opens.
Quick check
Go deeper
- Backup & Restore, for the whole rotation, including detections that send alerts to SOC by webhook.