What Matrix end-to-end encryption protects and when your team needs it
Olm and Megolm encrypt message content on user devices, not on the server. If your organization is choosing or running a self-hosted Matrix homeserver and asking whether the server operator can read chat, the answer for message bodies is no, provided the room is encrypted and clients handle keys correctly. The protocol is open, and the homeserver (Synapse, Dendrite or another implementation) stores and routes ciphertext for the devices in each room. Olm handles encrypted one-to-one sessions between devices, and Megolm handles group sessions in rooms, so the homeserver holds the encrypted events but not the keys needed to read them.
Decision makers need this understanding before they set encryption defaults, approve bots and bridges, design support processes and agree how compliance access will work. Encryption is not a single switch on the server. New rooms can be created encrypted or unencrypted depending on configuration, and a bot, bridge or support engineer can only read an encrypted room if a device holding the keys is part of that conversation. Each of these choices changes who can read what, so they should be decided together rather than one at a time after rollout.
Confirm with your engineering team which Matrix client versions and homeserver release your users will run, because encryption behavior and key handling depend on both. The homeserver still sees metadata such as who is in a room, when messages are sent and from which accounts, and the protocol remains open for independent review. Read the Synapse documentation for the server side and the encryption topics your security team needs to assess before you approve the design.
How an encrypted message moves from sender to recipient devices
The message starts as plaintext on the sender's device, where the Megolm session encrypts it before it leaves. The Synapse homeserver then stores and routes only ciphertext plus routing metadata such as room, sender and timing, so it cannot read the message body. Each recipient device decrypts it locally using keys it received through Olm-encrypted key sharing. Check that every device a user relies on is verified, and remember that the server still sees who talks to whom and when.
Plaintext exists only on endpoints; the homeserver handles ciphertext and routing metadata.
What the server can still see in an encrypted room
End-to-end encryption in Matrix protects message content, not the envelope around it. The homeserver still stores and routes room state, timing and identifiers, so the questions below decide what your privacy, legal and security teams are accepting when they approve encrypted rooms.
Room membership and state
The homeserver sees who joined, left, was invited to or banned from each room, along with room names, topics and avatars when they are stored as state events. Encryption hides message bodies, but the membership graph remains readable to the server. Confirm which state events your client encrypts and whether your homeserver operators can query membership directly from the database.
Timestamps and activity patterns
Each event carries an origin timestamp, so the server can reconstruct when people are active, how often they message and when a room goes quiet. This is often more revealing than content for HR or investigation use cases. Ask your homeserver team how long event rows are retained and who has database access.
Sender, room and device identifiers
Events identify the sender by user ID and the room by room ID, and device lists are published so other clients can encrypt to every device a user has. The server therefore learns which accounts talk to each other and how many devices each account uses. Confirm how your homeserver handles stale devices and whether device cleanup is part of your offboarding process.
Event types and message size
Encrypted events are typed as encrypted messages, so the server can see that a message was sent even though it cannot read it. Ciphertext length tracks plaintext length closely, which can reveal whether a user sent a short reply or a long document. Ask your client team which event types stay in the clear and whether any reaction, read receipt or call event leaks more than you expect.
Media files outside encryption
Encrypted attachments are encrypted on the client before upload, but the media repository still stores the file and its size, and the server can see which room or user uploaded it. If a file is not encrypted by the client, the server can read it directly. Confirm that your client encrypts uploads by default and test how your media retention and deletion settings apply to stored files.
Server-side logs and retention
Reverse proxies, application logs and database backups can record request paths, IP addresses and user agents, even when message content is never logged. Those records often outlive the chat data they describe. Ask your platform team to list every log and backup location, set retention for each, and confirm which of them are covered by your data protection review.
What encryption changes for search, bots and support
For encrypted rooms, the homeserver stores ciphertext for message bodies, so it cannot run content search, keyword filters or content-based spam checks against those messages. Search of encrypted history happens on the client, where the user's own devices hold the Megolm session keys. Moderation of content therefore depends on what users report and on what the server can still inspect, which is mainly metadata such as room membership, timestamps and event types.
- Server-side search: Message text in encrypted rooms is not indexed by Synapse, so users searching from a new device only see what their client can decrypt.
- Client-side search: Searching older history depends on the device having the keys, which connects directly to key backup planning.
- Content filters: Keyword and malware scanning of message bodies does not run on the server for encrypted events.
- Metadata signals: Room creation, membership changes and message volume remain visible to the server and can support rate-based or account-based action.
- Media: Attachments in encrypted rooms are encrypted files, so media scanning and retention rules need their own review.
Confirm with your compliance and moderation leads which content checks they still require, and which of them must move to reporting workflows or to a client or bridge endpoint.
A bot or bridge joining an encrypted room is a separate device with its own keys. It can read messages only after it has joined and received the room keys, and the decryption happens inside the bot or bridge process, not on Synapse. Any service that handles plaintext must be treated as part of the trust boundary and deployed, logged and secured accordingly. How this works for bridges and bots is covered in the sibling topic on end-to-bridge encryption, which this page does not detail.
- Decryption point: Messages are decrypted in the bot or bridge process, so its host, logs and storage hold plaintext while it runs.
- Key handling: The bot or bridge needs device keys and a persistent crypto store, and losing that store can break message access.
- Relay limits: A bridge that forwards to a third-party network sends plaintext to that network, which is outside your encryption boundary.
- Room settings: Bots in rooms that are encrypted by default must still be able to join and verify, so room creation settings affect bot onboarding.
- Authentication: Under MAS, bridge access depends on the MSC4190 requirement, which should be confirmed before the bridge is planned.
Ask each bot or bridge vendor where plaintext is written to disk, how long it is retained, and who can access the host.
Helpdesk staff usually cannot see a user's encrypted history, and they cannot read messages on the user's behalf. Support work shifts toward verifying the account and the device, guiding the user through key recovery, and deciding when a lost device means lost history. Staff should not request recovery keys or passphrases from users in ways that would expose them to phishing, so the procedure must be written before the first ticket arrives.
- Account recovery: Resetting a password does not restore access to old encrypted messages unless key backup is in place and the user has the recovery material.
- Device verification: Helpdesk procedures need a way to confirm that a new device belongs to the user before it is trusted.
- Reporting tickets: Users who describe content in a ticket may paste plaintext into the helpdesk system, which becomes a new data store.
- Escalation path: Define which cases go to security or compliance staff, since they may involve reported content that the helpdesk cannot view.
- Staff training: Support agents need a short script covering what they can see, what they must never ask for, and how to record the outcome.
See the sibling topics on key backup and cross-signing for the detailed recovery and verification procedures, and check with your service desk platform team how transcripts are stored.
When a user reports abuse in an encrypted room, the report usually includes the reporter's own view of the messages, which may or may not be shared with administrators, depending on the client and your reporting design. Administrators on the server see the event IDs and metadata, but not the text of encrypted messages. This means an investigation may depend on the reporter's copy, on voluntary disclosure, or on action taken on metadata alone. Define the evidence standard before the first report.
- Server visibility: Administrators can see that an event happened, who sent it and when, but not its content in encrypted rooms.
- Reporter evidence: Reports depend on what the reporter chooses to submit, and the content may be altered or incomplete.
- Account actions: Suspending an account or removing a user from a room are server actions that do not require reading content.
- Record keeping: Keep a written log of the report, the evidence you received and the action taken, separate from the chat itself.
- Legal review: Lawful access requests and regulatory supervision duties may require a different route, which should be confirmed with counsel.
If your organization must review message content for supervision, confirm with your compliance team which approach applies before the policy is published.
Encryption choices and when each fits
This table compares the encryption choices an operator controls on a Matrix server, from default room encryption to key backup and device verification. Read each row for what it changes, who feels the change, and what to confirm before you commit. The main takeaway is that defaults for new rooms and key recovery decide most of the support load, so settle them before users arrive.
| Option | What it does | Who it affects | What to confirm |
|---|---|---|---|
| Encryption on for new rooms | New rooms start encrypted, so messages are sealed with Megolm sessions by default | All users, plus bots and bridges that must join those rooms | Which room types are covered and whether existing unencrypted rooms stay as they are. See the default encryption topic. |
| Opt-in encryption per room | Users or room creators choose encryption when they create a room | Users who may forget to enable it, and admins reviewing room lists | How staff are trained to pick encryption, and whether unencrypted rooms are acceptable for any team. |
| Invite-only rooms | Encryption applies to private rooms while public rooms stay readable to the server and to anyone who joins | Public room users, directory readers and community moderators | Whether public rooms need moderation access, and how bots will read them without keys. |
| All rooms encrypted | Every room type, including public rooms, is encrypted by default | Moderators, search features, bridges and any bot that reads public content | Which moderation and search functions still work, and which bots need end-to-bridge support. |
| Server-side key backup | Room keys are stored encrypted on the server so a user can restore history on a new device | Users who lose or replace devices, and the help desk handling recovery | Who can reset recovery material, and how the help desk verifies identity before a reset. |
| No key backup | Message history is tied to the devices that received the keys | Users who change devices and need older messages | Whether users accept unreadable history after device loss and how this is explained at onboarding. |
| Cross-signing and device verification | Users verify their own devices and each other, which builds trust in the keys the server presents | Every user, and security staff who check whether a contact is trusted | Whether staff have a verification routine and whether it is required before sensitive rooms are used. |
Rolling out encryption on a self-hosted homeserver
This sequence takes encryption from a version check to a tested, documented rollout on your own Matrix homeserver. Each step closes with a check, so the team knows which controls work before users depend on them. The result is a pilot-tested configuration and help desk procedures for users who lose access to their keys.
Confirm homeserver and client versions
The platform owner checks the Synapse version, the database and Python versions it requires, and whether the authentication setup (Synapse alone or Matrix Authentication Service) is current for the features you plan to use. The team also lists the Element and other client builds your users run and confirms each supports the encryption features you need, including cross-signing and key backup. Confirm these details against the release notes for your exact versions rather than relying on memory. Done means a written version matrix that the owner signs off, with any gaps logged as blockers.
Decide room encryption defaults
The governance owner, with the security and compliance leads, decides whether new rooms are encrypted by default, which room types the default applies to, and whether public rooms are exempt. Record the decision alongside its reasons, because it determines how bots, bridges and search behave later in the sequence. Confirm the Synapse configuration key for room defaults in the configuration manual for your version. Done means an approved default policy and a list of room types that stay unencrypted, if any.
Enable key backup and verification guidance
The platform team turns on server-side key backup support in the client setup and writes short guidance for verification with cross-signing, including the recovery key or passphrase choice. Test the flow on a staging account by creating a backup, signing in on a second device, and restoring message history. Done means a staging test where a second device recovers keys from the backup without help from an administrator, and a short user guide that the help desk has reviewed.
Test the rollout with a pilot group
Select a small group of users across different roles and device types. They use encrypted rooms for normal work for a set period agreed in advance, and the team collects reports on verification confusion, lost history, missing keys and client problems. Track each issue by client version so fixes can target the right builds. Done means the pilot group has no open blocking issues, and the owner has confirmed that the verification and recovery steps match the written guidance.
Test bots and bridges in an encrypted room
The integration owner creates a test room with encryption on and invites each bot and bridge that will be used in production. Confirm which bridges and bots can read and send messages in encrypted rooms, where decryption happens, and whether the bot needs an extra protocol feature for your authentication setup. Check that bots keep working after a device or session change. Done means a documented pass or fail result for every integration, with unsupported ones either blocked from encrypted rooms or redesigned.
Document help desk recovery steps
The help desk lead writes the steps for users who lose a device, cannot find their recovery key, or see messages shown as unable to decrypt. The procedure covers what staff may verify, what they must never ask for, and when to escalate to the platform team. A staff member outside the project team walks through the steps using a test account. Done means a tested runbook approved by security, with an escalation path and an agreed record of each recovery request.
Security and operational considerations for encrypted Matrix chat
Encryption in Matrix moves much of the security work from the server to the people and devices holding keys. The cards below cover the failure modes that show up most often when those keys are lost, unverified, stale, exposed or logged, and the operator decisions that prevent them. Specific controls depend on the chosen client and homeserver, so confirm each one against the software you deploy.
Key loss and unreadable history
If a user loses every device and holds no recovery material, the messages encrypted to those device keys cannot be decrypted again, and the server cannot recover them. Decide before rollout how users restore history: server-side key backup protected by a recovery key or passphrase, or a documented help desk process. Ask your client vendor exactly how its recovery flow behaves when a user resets their keys, because that behavior sets the scope of any loss.
Unverified devices and trust
Encryption protects content from the server, but it does not prove that the device or person on the other end is who they claim to be. Cross-signing and device verification are the mechanisms for that proof. Plan who verifies whom, how staff learn the steps, and what your clients show when a device is unverified, since users who ignore those warnings undermine the whole model.
Device list hygiene
Every logged-in device holds keys for the rooms it has joined, so old phones, abandoned web sessions and retired laptops widen the set of places where messages can be read. Set a policy for session lifetime, require that offboarding ends all sessions for a departing user, and review device lists when accounts are disabled. Confirm with your homeserver and admin tooling how sessions are listed and removed in bulk.
Server-side key backup custody
Key backup stores encrypted copies of room keys on the server so that a new device can recover history. The server holds ciphertext, but the security of that copy depends on the recovery key or passphrase, which must be stored with the same care as an administrator credential. Decide where recovery material lives, who can reset it, and whether your backup and restore procedures include it, because a backup that cannot be unlocked protects nothing.
Endpoint compromise
Once an attacker controls a logged-in device, end-to-end encryption no longer separates them from the plaintext, because the client decrypts messages locally. Treat endpoint protection, screen lock, disk encryption and prompt revocation of sessions as part of the chat control set. Ask your client vendor how it stores keys locally, whether it supports managed device policies, and how a compromised session is ended from the admin side.
Logging discipline
Homeserver logs, reverse proxy logs and admin exports record metadata such as who messaged whom and when, even when message bodies are encrypted. Decide what each component logs, how long logs are kept, and who may read them, and keep decrypted content out of server-side tooling unless a documented process requires it. Confirm the logging levels in your Synapse and proxy configuration before go-live, since defaults can change between releases.
Questions teams ask before encrypting Matrix chat
Can the server operator read encrypted Matrix messages?
No. Message content in an encrypted room is encrypted on the sender's device with Megolm session keys, and the homeserver only relays and stores ciphertext. The operator can still see metadata such as who is in a room, when messages are sent, room membership, device lists and file sizes, so encryption does not hide the communication pattern. Confirm this boundary with your security team before you describe the setup to staff or regulators, because it shapes what you can and cannot retrieve on request.
What does an encryption rollout cost, and what drives it?
The cost comes mostly from people time rather than licenses, since Synapse and the Matrix clients are open source. Work falls into planning the room and device policy, configuring the homeserver and clients, rolling out verification and key backup to users, and running a help desk process for lost devices. Costs go up with the number of users and devices, the number of bridges and bots that must join encrypted rooms, regulatory review, and whether staff need training. Ask any partner for a quote built from a written scope that lists each of these items separately.
How long does encryption setup take?
Duration depends on scope more than on the encryption settings themselves, which are small configuration changes. A single homeserver with a defined user group and no bridges is a short configuration and testing exercise. Timelines lengthen when you add identity integration, a formal key backup procedure, bridge or bot decryption, a compliance review, or a staged rollout to many departments. Ask for the schedule to show separate milestones for policy, pilot, verification training and full rollout, and confirm which of those the quote includes.
What does our internal team need to provide?
Your team needs to own the decisions and the operating model: which room types are encrypted by default, who may reset keys, how recovery keys are stored, and who approves exceptions. Engineers need access to the homeserver configuration, the identity provider, the reverse proxy and a test environment. Security or compliance staff should review the threat model and the evidence you plan to keep. Name one accountable owner on the business side, because the most common delay is waiting for a decision nobody has been assigned to make.
Can our own staff run encryption without outside help?
Often yes, if your team already operates Synapse, PostgreSQL and an identity provider, and has someone who can read the upgrade notes carefully. The settings for encryption by default and the verification flows are documented, and the work is mostly policy and training. Outside help is most useful for the parts that are easy to get wrong under pressure: a tested recovery process, a documented threat model for bridges, and a retest after configuration changes. Decide which of these you will build internally and which you will buy, and write that split into the scope before work starts.
How are bots, bridges and support staff affected?
Bots and bridges cannot read an encrypted room unless they hold keys and run a client that can decrypt messages, so they will appear silent in encrypted rooms by default. Support staff who need to help a user with a lost device have no access to message history either, so they depend on the key backup and recovery process. Plan for an explicit decryption path for each bot or bridge, record where plaintext is handled, and tell support staff which requests they can and cannot fulfill. Confirm the current bridge behavior with the bridge project before you promise it to a team.
How does compliance review work without server-side plaintext?
Reviewers cannot pull readable transcripts from the homeserver, so compliance depends on evidence you collect by design. Typical evidence includes the written policy for encrypted rooms, configuration records, retention and erasure settings, access logs for administrative actions, and the procedure for approved decryption requests. If a regulator requires supervision of chat content, you need a deliberate design for it, such as a client-side archive or a commercial in-room auditing product, and you should check that design with your legal and compliance advisers. Independent auditors and certification bodies, not DeployOpen, decide whether your controls are sufficient.
How DeployOpen scopes and supports Matrix encryption rollouts
DeployOpen plans, implements and documents self-hosted Matrix deployments inside your own infrastructure, so the homeserver, its database, its keys and its logs stay under your control. For encryption work, that means the scope is set around decisions only your organization can make: whether new rooms are encrypted by default, which device verification and key recovery process your help desk will run, whether bridges and bots must join encrypted rooms, and how compliance staff will review chat that the server cannot read. We agree that scope in writing before work starts, and the written scope sets the deliverables, the environments covered and the acceptance checks. A quote follows from that scope, so the reader can compare it directly with an internal estimate.
Where your compliance or security team needs evidence, DeployOpen prepares it. That can include configuration records for the encryption-related settings, documented key backup and recovery procedures, test results from verification and recovery drills, and descriptions of how the server handles metadata and retention. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, and you should confirm with your assessor which evidence format they accept before the work begins. Ask us to map the delivered evidence to the questions your assessor is likely to raise, so the gaps show up during scoping rather than during the assessment.
Encryption rollouts rarely stay finished after launch. Client updates change verification flows, Synapse releases change database and configuration requirements, and new users keep arriving without a verified device. DeployOpen can support these changes under an ongoing retainer, covering upgrades, periodic checks of encryption settings and help desk guidance for recovery requests. Ask for the retainer terms in writing, including what is covered, how requests are prioritized and how upgrades are tested before they reach production. The retainer scope should be agreed separately from the initial rollout so that you know, before go-live, who maintains the encryption setup after it ships.

