Skip to content

Encryption at Rest

Ella Core encrypts subscriber credentials and its own secrets before writing them to disk. Encryption is always on, and needs no action.

What is encrypted

  • Subscriber keys (K) and OPc values
  • The operator code (OP)
  • The home network private keys, for SUCI
  • The key that signs logins, the key that joins nodes, and the single sign-on client secret
  • The SEPP CA key and the SEPP identity keys, for roaming
  • BGP peer passwords

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, binary or Docker install, Ella Core 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

Secrets in a backup are 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.

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 but hands over the leadership, and refuses authentications and logins. Established sessions keep forwarding traffic. It unlocks on its own once its key file is back, or after a restart once its HSM is back, and shows as Locked on the Cluster page until then.

Rotating and changing the key

Ella Core encrypts secrets with data keys that it creates and stores in its database, locked by the encryption key.

  • Rotating replaces the data keys. The encryption key stays the same. Older values are re-encrypted in the background, then the old data keys are deleted.
  • Changing the key replaces the encryption key, for example after a node is compromised. It is done one node at a time, without downtime, and also rotates the data keys.