Skip to content

Encryption at Rest

Ella SMSC encrypts message content and its own secrets before writing them to disk.

What is encrypted

Encrypted Not encrypted
Message content, text and binary, SIM data download commands and answers included Phone numbers, times and delivery status: Ella SMSC searches and routes on them
The keys that sign logins and join nodes, and the single sign-on secrets Passwords and tokens: stored as hashes, never readable

The encryption key

One key protects everything, on every node of a cluster. It lives in one of two places:

  • A key file. On a snap, Ella SMSC creates it next to the database. On Kubernetes, it comes from a Secret you create.
  • An HSM. The key never leaves the device. See Use an HSM.

Backups

Message content in a backup is encrypted, and the backup never holds the key. Without the key, a backup cannot be restored: keep a copy of it, apart from the backups. Phone numbers, users and settings in a backup are not encrypted. See Back Up and Restore.

Locked nodes

A node that cannot use the key when it starts, because its HSM is unplugged or its key file is wrong, is locked. It stays in the cluster and keeps its copy of the data, but refuses messages and logins. It unlocks on its own once the key is back.

A running node keeps its keys in memory: a key file or HSM that is briefly unavailable does not stop it.

Rotating and changing the key

  • Rotating creates new keys. Older data is re-encrypted with them in the background, then the old keys are deleted.
  • Changing the key, for example from a key file to an HSM, is done one node at a time, without downtime. It also rotates.