Data locations#
In Compose, PostgreSQL persists in postgres-data. Encrypted objects and the selfhost operational key live in instance-data, mounted at /app/data. Without Docker, defaults are relative data/ paths when running Maven inside backend/. Messages contain ciphertext, nonce and tag, alongside visible channel, sender, time and thread metadata. Objects contain encrypted bytes; original names, MIME and per-file keys are inside encrypted messages.
Consistent backup#
Preserve database and objects together. Legacy saas mode must configure a 32-byte Base64 WEBHOOK_ENCRYPTION_KEY consistently across replicas. Selfhost can generate an operational key file in the persistent volume. Losing it prevents opening stored integration credentials and enabled federation signing-key material; it does not recover or decrypt users' channel keys.
User and custody recovery#
User backups are encrypted with independent recovery passwords. Organizational custody exports depend on the organization's separate private keys, held outside the backend. Neither mechanism makes deleted or missing encrypted objects reappear. Retention of infrastructure backups and exported/plaintext local copies requires a separate operational policy. Corporate-copy expiration does not clean these stores automatically.