Docs

Security and data

What is encrypted, what the federation server sees, sign-in and devices, the cloud password and push notifications.

Trust model

Comon is a messenger for organizations that keep the server themselves. The federation server is a trusted party:

  • the federation server can read stored messages. Comon has no end-to-end encryption between people (like "secret chats");
  • on the other hand, data goes nowhere but the federation server: federations are not connected to each other, and you cannot write to another one.

If you need the server owner to be unable to read conversations, Comon does not fit that today.

Connection to the server

  • The app connects to the federation over TLS and opens a separate Noise protocol session with the server's key on top of it.
  • On the first connection the app checks that a federation really runs at the address and remembers its key. If the server is swapped later, the app does not connect.
  • Each device gets its own key. The private part is kept in the system's secure storage (Keychain, Android Keystore and their equivalents), not in the app's database.

Sign-in

Sign-in goes through your organization's sign-in service (OIDC): the app opens its page in the system browser or in the system's own sign-in session, never in an embedded web view. Comon never sees your password for that service.

Cloud password

The cloud password is a second sign-in step on a new device, in case the account in the sign-in service is taken over. It does not encrypt messages.

  • From 10 to 128 characters, spaces allowed.
  • The server keeps only a strong hash of it (PBKDF2-SHA256, 600,000 iterations).
  • After every five wrong attempts in a row, sign-in is locked: for a minute, then twice as long each time, but no more than a day.
  • A forgotten password is reset by the federation owner on the server.

Devices

Settings › Devices shows every device signed in: name, platform, app version and when it was last active. You can sign out any other device, or all of them at once. Signing out on one device does not touch the others.

Data on the device

  • The app's database and media cache are encrypted (SQLite with the ChaCha20 cipher, keys in the system's secure storage).
  • If the key is unavailable, the app does not wipe the data; it waits until the storage becomes available.
  • Leaving a federation deletes its data and sign-in key from the device.

What the federation server sees

SeesDoes not see
Messages, files, profiles, chat membersYour password for the organization's sign-in service
Device sign-in times and namesDevices' private keys
Who writes to whomYour cloud password (only its hash)

Moderators do not see all of this: only what is attached to a report. See Moderation.

Push notifications

Notifications on a phone and in a browser go through the push relay, a separate service that hands them to Apple, Google or the browser.

  • The notification text is encrypted with the device's key. The relay, Apple and Google see only an encrypted blob, the time and the size.
  • The federation does not store Apple and Google tokens; it has only opaque relay identifiers. The relay, in turn, does not know the keys the text is encrypted with.
  • Without the relay the app still receives messages while it is open; only background notifications stop.

Details for administrators are in Push notifications.

Speech recognition

Voice messages are transcribed by the recognizer the federation owner chose. If it runs outside the federation, the app says where the sound goes. More in Voice messages and round videos.

Error reports

The app can send crash reports only if the build names its own report server (Sentry); the "Send Error Reports" switch is in Settings › Help. You can send the log by hand with "Report a problem" in the same place.

On this page