Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Security
  3. Vault & encryption

Vault & encryption

AES-256 encryption at rest for configs, tokens and keys.

Security

Every configuration file holding a secret (database passwords, API tokens, Git tokens, SMTP credentials, backup settings) is encrypted at rest with AES-256. A copy of /etc/cipi alone is useless without the key.

What is encrypted#

PieceDetail
Master keyGenerated at install, /etc/cipi/.vault_key, root-only (400)
Encrypted filesserver.json, apps.json, databases.json, backup.json, smtp.json, api.json, alert channels, Git tokens
Cipheropenssl enc -aes-256-cbc -salt -pbkdf2
Public projectionapps-public.json holds only non-secret fields (domains, PHP, branch) for the panel API, so the key stays root-only

Moving servers#

Step 1 of 4Export (sync)

When you export apps with cipi sync, their secrets are decrypted with this server's vault key.

Backups use their own key (cipi backup key show); sync archives use your passphrase. Keys never travel inside the data they protect.

Lose the vault key and the encrypted configs can't be read. Back it up with your server credentials (cipi credentials export lists the backup key; copy .vault_key to your password manager).

Questions#

QuestionAnswer
Do I need to do anything?No, encryption is automatic. Do back up /etc/cipi/.vault_key in your password manager.
Can the panel read the secrets?No. It reads apps-public.json, which holds only non-secret fields; the key stays root-only.
Is this the same key as backups?No. Backups have their own key (cipi backup key show).