Flow.Documentation

Encryption: your environment's key and renewing it

4 steps± 3 minVideoVerified 22 Oct 2026
  1. Step 1 · Open the secrets of Development
  2. Step 2 · Renew the key
  3. Step 3 · The environment re-encrypts everything
  4. Step 4 · After the next start the previous key is gone

Passwords, tokens and keys you store in Flow — of connections, API policies, signing and dashboards — are kept encrypted in the database. For that every environment has a key of its own, made and kept by the portal and never shown to anyone. In this guide you see where that key is, renew it, and see how the environment re-encrypts everything without anyone having to set anything again.

Watch the whole guide as a video4 steps in one film
Step 1 / 4

Open the secrets of Development

Under Environments, click Development and choose Secrets and keys. There you find the environment's vault and this environment's key: the key it encrypts stored secrets with.

  1. Click Development
Open the secrets of Development · Click Development
  1. Click Secrets and keys Vault · no AI key yet · own key
Open the secrets of Development · Click Secrets and keys Vault · no AI key yet · own key
Open the secrets of Development · This environment's key: own key.
Step 2 / 4

Renew the key

Renew the key when you suspect it has leaked, or simply at a fixed moment, as you renew passwords. The environment restarts; you do not have to set up a single connection or key again.

  1. Click New key
Renew the key · Click New key
  1. Click Yes, new key
Renew the key · Click Yes, new key
Renew the key · A message: Development restarts with a new key.
Step 3 / 4

The environment re-encrypts everything

On start-up the environment re-encrypts every stored secret with the new key, one by one: if it stops halfway, the next start finishes the job and nothing is lost. Until that is confirmed it still reads the previous key; it then says key being renewed here.

The environment re-encrypts everything · This environment's key: key being renewed, renewed by you, today.
Step 4 / 4

After the next start the previous key is gone

The portal lets go of the previous key only once the environment has reported twice that everything is under the new key — twice, because during a restart the previous version runs next to the new one for a moment. Restart the environment in the Danger zone and look again.

  1. Click Restart
After the next start the previous key is gone · Click Restart
  1. Click Restart
After the next start the previous key is gone · Click Restart
After the next start the previous key is gone · ‘Own key’ again, with who last renewed it and when. You never see the key itself: the portal gives it to the environment only.

This guide was carried out step by step on 22 Oct 2026 by an automated test on Flow (version 3e563176).