Why teams enable encryption by default for Synapse rooms
Teams enable encryption by default on Synapse so that new private conversations are protected without relying on each user to switch encryption on. The control is the encryption_enabled_by_default_for_room_type key in the homeserver configuration. When it applies to a room type, Synapse turns on Matrix end-to-end encryption at the moment a room is created. You choose the scope: all new rooms, or only the invite-only rooms that people use for private conversations. The setting does not change existing rooms. A room created before the change stays as it is, and turning on encryption in an existing room is a separate action taken by someone in that room.
The scope decision is the main policy choice. Covering invite-only rooms targets private conversations and leaves public rooms unencrypted, which suits many organizations because public rooms are often meant to be found and read by many people. Covering all rooms is simpler to explain to auditors and staff, but it applies to every room type your users create. Before you choose, check the accepted values for this key in the Synapse configuration manual, since the exact options are defined by the release you run.
Before you switch the setting on, write down who the policy is meant to serve and who must still read the conversations. Test it on a staging homeserver with a new room of each type, and confirm that the clients your staff use show the encryption state as expected. The effects on bots, bridges and public rooms are covered in the sections that follow, and they should be settled before the change reaches production.
Choosing between all rooms and invite-only rooms
This table compares the three values of encryption_enabled_by_default_for_room_type against the rooms, bots, bridges and public content they affect. Read each row as a question: who joins the room, and what breaks if that room is encrypted. Confirm each value's exact name and behavior in the current Synapse configuration manual before you set it.
| Setting value | Who it affects | Trade-off | Best fit |
|---|---|---|---|
| all | Every new room, including public directory rooms and rooms made for shared content | Public rooms become encrypted, so non-members may not preview history in some clients | Public rooms are not part of your model, or you accept encrypted public rooms |
| invite | Only rooms created as private or invite-only | Public rooms stay readable to anyone, but users must choose encryption for them | Mixed use: private staff rooms encrypted, public rooms open |
| off | No room is encrypted unless the creator enables it | Relies on each user to turn encryption on, so coverage varies | Testing, or when encryption is enforced another way |
| Staff-only homeserver | Private rooms for employees, usually invite-only by design | Little public exposure, so the choice mainly affects bots and bridges | Usually invite or all, after bots and bridges are confirmed |
| Public directory rooms | Rooms listed in the room directory and joinable by anyone | Anyone can join, but encrypted content is harder to moderate server-side | Keep public rooms unencrypted unless you have a moderation plan |
| Bots and bridges | Services that join rooms to read or relay messages | An encrypted room needs the bot or bridge to hold keys and support encryption | Test each bot and bridge in an encrypted room before a wider rollout |
| Shared public content rooms | Rooms for announcements, support or community Q&A | Encryption can block search engines, outside readers and some link previews | Usually off, so content stays discoverable |
Setting the default in homeserver.yaml and verifying it
This sequence changes the Synapse default so new rooms of the chosen type start encrypted, and it proves the change with test rooms before users depend on it. It also records what existing rooms keep and which settings your own environment must confirm.
Back up the current configuration
The administrator who owns the homeserver copies homeserver.yaml, along with any included configuration files and the signing key, to a location outside the running host. Record the Synapse version in use and the current value of any encryption-related setting so the change can be reversed. The step is done when the copy exists, can be opened, and the team has noted the version and the previous state. Confirm the backup location and retention policy with your own operations team, since those requirements vary by organization.
Check server name and existing rooms
Before editing anything, confirm the server_name in homeserver.yaml, because it fixes how user IDs and room IDs are identified and cannot be changed later without creating a new identity. List the rooms that already exist and note how many are public, invite-only and direct, using the admin API or your existing reporting. Record that the default only affects rooms created after the change, so existing unencrypted rooms stay unencrypted. The step is complete when the server name and the current room mix are written down and the team agrees on the scope of the change.
Set encryption_enabled_by_default_for_room_type
The administrator adds encryption_enabled_by_default_for_room_type to homeserver.yaml and sets it to the option the organization has chosen, either all rooms or invite-only rooms. Choosing invite-only limits the change to private rooms, so public rooms remain unencrypted, while all rooms also covers public rooms. Confirm the exact accepted values in the Synapse configuration manual for your release, and check the file's indentation and syntax with a YAML validator. The step is done when the file validates and the chosen value is recorded in the change ticket.
Restart the homeserver and confirm it starts cleanly
The operator restarts the Synapse process using the service manager or container orchestrator your team runs, and watches the startup log for configuration errors. Because the configuration file is read at startup, treat the restart as the reload point and do not assume a live edit took effect. The step is complete when the process reports healthy, the client API responds, and the logs show no configuration warnings tied to the new setting. Confirm the restart procedure and any maintenance window with your own change process.
Create one test room of each type
A tester with a normal user account creates a public room, a private invite-only room and, where the policy covers them, a direct message, using a standard client rather than the admin API. Use the same client the staff will use so that the result reflects real behavior. Record the room name, type and time of creation for each test room. The step is done when all test rooms exist and are listed in the test record.
Confirm encryption state in a client
In the client, the tester opens each test room's settings and checks whether end-to-end encryption is enabled, then sends a short message from a second account to confirm it appears as encrypted. A room that is not encrypted when the policy says it should be indicates the setting did not apply, so return to the configuration and logs. Save screenshots or notes in the test record. The step is complete when each room type matches the expected result for the chosen policy.
Test bots and bridges against encrypted rooms
Because rooms created after the change are encrypted, any bot, bridge or integration that posts into them must be able to handle encrypted events, which depends on its own support and configuration. The team invites or joins each automated account into a test encrypted room and confirms it can read and post, or records that it cannot. Confirm the encryption support of each integration with its vendor or project documentation before rollout. The step is done when every automated account in use has a recorded result.
Record the outcome and plan the rollout
The administrator writes a short record listing the Synapse version, the setting value, the test results and any integrations that need changes, and gives it to the owners of the homeserver and the help desk. The record also states that existing rooms are unchanged, so any plan to encrypt them is a separate decision. The step is complete when the record is approved and stored with the configuration backup. Confirm approval routes and documentation requirements with your governance or compliance team.
How encrypted rooms change bots and bridges
Once new rooms are encrypted, every automated participant has to be planned for, not just users. Bots, bridges, moderation tooling and external guests each need a defined way to read, act on or be admitted to encrypted content. The cards below cover the decisions to make before you change the default.
Bots need keys to read messages
A bot that joins an encrypted room sees only ciphertext unless it holds the room keys and runs a client that can decrypt them. Many bots built for plaintext rooms will silently stop responding after the default changes. Inventory every bot, confirm whether it supports encryption, and decide whether it should stay out of encrypted rooms entirely. Test each bot in a sample encrypted room before rollout.
Bridges need end-to-bridge encryption
A bridge that relays a Matrix room to another network must decrypt messages before it can forward them, so it has to join the room as an encrypted-capable participant. Confirm which bridges in your catalog support this and what keys they store and where. The sibling topic on end-to-bridge encryption covers the mechanics, so review it before enabling the default for any bridged room.
Moderation bots lose plaintext visibility
Spam and abuse bots that scan message bodies cannot inspect encrypted events without keys. Moderation depends more on reports, membership controls and admin actions on rooms than on content scanning. Ask your moderation team which automated checks currently run on message text and which can continue on metadata alone. Document the gap so staff do not assume coverage that no longer exists.
Server notices and admin messages
Server notices and automated announcements sent by the homeserver go to users through rooms the server manages. Confirm how these notices reach users when the rooms they land in are encrypted, and test the delivery path with a real user account. Include notice rooms in your test plan so an important policy message is not sent into a room no one can read as expected.
External guests in encrypted rooms
Users often invite partners, contractors or people from other homeservers into rooms. In an encrypted room, a guest must verify and receive keys before reading history, and some clients handle this poorly. Decide which external participants may join encrypted rooms, and tell staff that invitations from outside the organization may need extra steps before the guest can read messages.
Synapse federation docsWhat happens to public rooms and the room directory
Encryption by default changes what a public room can do, so decide the room visibility policy before you switch the default on. An encrypted public room keeps message content from the server, but it also weakens the features people expect from public spaces. Anyone can still join a public room, and the server cannot read history to help a new member catch up, search it, or produce an archive. Expect some public rooms to lose their value as searchable reference points, and plan for that with the people who run community or support rooms. Confirm how your Synapse version handles room directory publication and room visibility for encrypted rooms, since the behavior you rely on should come from the release notes you are running, not from assumption.
What the server can still see is room metadata, even in an encrypted room. Synapse still stores the room's membership list, creation events, join and leave events, room names and aliases, and timing, and federated servers receive the events they need to take part. Encryption does not hide who is in a room or when they were active, so a public encrypted room can still reveal its existence and rough size. Treat that metadata as the thing your data protection and records reviewers will ask about.
Federation policy belongs in the same decision. The federation_domain_whitelist setting restricts federation to listed domains, and an empty list disables federation entirely. A public encrypted room on a server that federates widely can be joined by users from many organizations, each with their own key management, so decide which domains may take part before you publish rooms. The Synapse documentation also recommends firewalling the federation listener in addition to the whitelist. Set the encryption default, room visibility and federation settings together, and have a named owner review the combined result before go-live.
Security and operational considerations
Encryption by default changes what users, support staff and integrations experience, and some of those effects are easy to miss until a user is locked out of history. The cards below cover the decisions and checks that connect the setting to daily operations, from key handling to configuration control.
Key handling and device verification
Encrypted rooms depend on each user's devices holding the keys for their messages. A user who signs in on a new device may not see earlier history until that device is verified or a key backup is restored. Plan how staff verify devices, and decide which key recovery options your users are allowed to use. Confirm the current verification and key backup behavior of your chosen clients in your own test environment before rollout.
Synapse docsThe default applies only to new rooms
The encryption_enabled_by_default_for_room_type setting affects rooms created after the change. Existing unencrypted rooms stay unencrypted, so you will have a mixed estate of rooms with different protection. Inventory existing rooms, decide whether any should be migrated by users or retired, and tell users which rooms are encrypted so they do not assume every older conversation is protected.
Support and password reset
Losing a password or device can leave a user unable to read encrypted history even after account recovery succeeds. Your help desk needs a written procedure for resets that explains what history can and cannot be recovered, and who can authorize it. Confirm with your identity provider and MAS setup how a password reset interacts with existing device keys before you publish the procedure to staff.
Bots, bridges and integrations
Bots and bridges that read messages must be able to take part in encrypted rooms, or they will stop receiving content once a room is encrypted. Inventory every integration that joins rooms, test each one in an encrypted test room, and confirm its encryption support with its own documentation. Do not assume that an integration working in unencrypted rooms will work after the default changes.
Public and discoverable rooms
The room type setting lets you apply encryption to all rooms or only to invite-only rooms. Public rooms that anyone can find and join are the usual case where encryption changes who can read a conversation as it grows, so decide deliberately whether they should be encrypted. Document the choice for room owners and check that directory and moderation workflows behave as your policy expects.
Change control for homeserver configuration
Changes to this setting take effect on the homeserver configuration file, so an untracked edit can change the protection of every new room. Keep the configuration in version control, require review for changes, and record the Synapse version it was tested against. Check the Synapse configuration manual for the exact setting name and behavior in the release you run, and test any change on a staging homeserver first.
Configuration manualQuestions teams ask before enabling encryption by default
How much effort does turning on encryption by default for Synapse rooms take?
The configuration change itself is small: the encryption_enabled_by_default_for_room_type key in homeserver.yaml controls which new rooms start encrypted, and a restart applies it. The effort sits around that change. It depends on how many bots, bridges and integrations post into rooms, how many public rooms need a different policy, how many clients your users run, and how much user communication and help desk preparation you need. Ask any quote to break out the configuration work, the bot and bridge review, the test plan and the user rollout as separate lines.
Can an internal team turn on encryption by default without a partner?
Often yes, if the team already runs Synapse in production, reads the upgrade notes for its version, and has someone who owns the bots and bridges in use. The risk comes from the parts that are easy to miss: a bot that cannot read encrypted events will silently stop working in newly encrypted rooms, and a bridge may need its own encryption support before it can join. A partner is most useful when the team lacks a test environment, has no one who has reviewed bridge encryption before, or needs the change documented for an assessment. Whichever route you choose, the decision should be written down with its owner.
What do we need to give the implementation team?
Plan for four inputs before work starts:
- Administrative access to the Synapse host, its configuration files and the database, with a staging copy of the homeserver if possible.
- A list of bots, bridges, integrations and service accounts that post to or read from rooms, with their owners.
- Test users on each client platform your staff use, including at least one account that can run bots.
- A change window agreed with the business, plus a rollback owner who can restart the homeserver and check the upgrade notes for the running version.
Does enabling the setting change rooms that already exist?
No. The encryption_enabled_by_default_for_room_type setting applies only to rooms created after the change, so existing unencrypted rooms stay unencrypted. Encrypting an existing room is a separate action that a room admin or the team can take, and it cannot be reversed in the same room. Confirm this behavior against the configuration manual for your Synapse version, and decide with the business whether existing rooms, especially public ones, should be left as they are or migrated to new encrypted rooms.
How do bots and bridges need to be reconfigured?
Bots and bridges that read message content must handle encrypted events, or they will not see what users post once a room is encrypted. Review each one before the change. Bots need a device and key handling setup that supports end-to-end encryption, and bridges need end-to-bridge encryption support, which varies by bridge and by how users authenticate. Some setups also depend on the authentication path used with Matrix Authentication Service. Test each integration in an encrypted staging room, record the result, and confirm the exact requirements with the project documentation for the version you run.
What should a partner quote include for this change?
A useful quote lists the scope in writing: which homeserver and version are in scope, whether the change covers all rooms or only invite-only rooms, and which bots, bridges and clients are tested. It should name the staging environment, the test cases for each client and integration, the change window and rollback steps, and the user communication you expect DeployOpen or your team to prepare. Ask which items are one-time work and which recur, such as checking upgrade notes at each Synapse release. Quotes follow from the written scope, so the more precise the inventory, the more precise the quote.
How long does testing usually take before we switch the default?
The duration depends on how many integrations, client platforms and room types you test, and on whether a staging homeserver already exists. Testing should cover a new encrypted room for each client, every bot and bridge in the inventory, public and invite-only rooms separately, and a rollback rehearsal. No fixed duration applies to every environment, so ask your team or a partner to estimate it from your inventory and to show the test cases and their owners. Do not switch the default in production until the integration results are signed off.
Decision path for the default setting
The path starts with who will use the rooms: closed staff rooms, public rooms, or a mix. That answer sets the value of encryption_enabled_by_default_for_room_type (all rooms or invite-only rooms only). Before going live, check each bot and bridge that will join new rooms, since they must support the encrypted room they land in. Then test a new room of each type with a staff account, a bridge or bot, and an outside user. If any check fails, revert the setting to the previous configuration and retest before retrying.
Decision path from room audience to go-live, with a revert fallback.
How DeployOpen scopes encryption changes for Synapse
Changing the default for new rooms is a configuration change with consequences for users, bots and bridges, so DeployOpen starts by reviewing the homeserver before anything is edited. The review covers the Synapse version in use, the homeserver.yaml settings that govern room creation, the encryption_enabled_by_default_for_room_type value currently in force, and how users reach the server, whether through a direct login or through an identity provider configured under oidc_providers, saml2_config or the Matrix Authentication Service. Engineers also confirm which bridges, bots and integrations join rooms today, because those are the components most likely to break when new rooms become encrypted.
Before any change is made, DeployOpen agrees the room policy and the test plan in writing. The policy records which room types are affected (all rooms or invite-only rooms only), how public rooms and existing rooms are handled, and which bots and bridges need a documented path into encrypted rooms. The test plan lists the accounts, clients and integrations used for verification, along with the expected result for each. Scope, deliverables and timelines are fixed in that document, and a quote follows from the written scope. Because the scope depends on the environment, the client's own infrastructure, team and existing integrations determine the effort, and that is what the quote should reflect.
DeployOpen then implements the setting in the client's own infrastructure, runs the agreed tests, and documents the outcome for operators. The documentation records the final configuration, the test results, the known gaps for bridges and bots, and the steps a help desk needs when a user asks about an unreadable room. Ongoing support, upgrades and continuous testing are available as a retainer, which suits organizations that expect to revisit the policy as Synapse releases change. Ask any vendor for a written scope, a named list of deliverables and a retest plan before agreeing to a quote.

