Matrix federation in openDesk: when your agency needs to chat across organizations
Matrix federation decides whether openDesk chat users can exchange messages with people whose accounts sit on other Matrix servers, such as staff at another public body running its own homeserver. For openDesk, the decision comes down to one of three positions: open, allowlisted or off. Open lets the server federate with any domain, allowlisted limits federation to the domains you name, and off keeps the server talking only to its own users. Element is the chat client bundled with openDesk, and the Matrix homeserver behind it is Synapse, the server Element develops and the most widely documented Matrix homeserver. The openDesk documentation does not state a federation default, so confirm with ZenDiS or in your deployment configuration which position your release ships with before any agency relies on cross-organization chat.
In Synapse, these positions map to configuration. The federation_domain_whitelist setting restricts federation to the domains you list, and an empty list disables federation, so the allowlist is where most of the policy lives. Confirm how your deployment sets this key, because the answer determines what a peer server can reach. The Synapse configuration manual also recommends that you firewall the federation listener as a separate control, since the allowlist alone does not limit network access. Synapse federates on port 8448 by default, and delegation can serve user IDs from another host on port 443. The ingress and firewall rules your platform team owns therefore decide whether a federated peer can reach you at all, and those rules need to match the policy you choose.
Treat this as a joint decision among security, data protection and the chat owner. Security should judge the exposure of an open or allowlisted listener and the network path to it. Data protection should check what leaves the organization through room membership and message traffic to a peer's server, and whether that flow is covered by your records of processing. The chat owner should confirm which agencies need to be reachable, how often, and who will maintain the allowlist. Record the outcome as a written decision with its domain list. The same choice shapes how custom Matrix IDs are delegated and tested in the sibling topic on using your organization's domain for openDesk Matrix IDs, so changing the answer later will change those steps too.
How a federated message reaches your homeserver
A remote server first works out where your server_name is served, either through delegation or on port 8448, the Synapse default. The request then hits a firewall on the federation listener, the part of the path that faces the internet. The listener runs the federation_domain_whitelist check before passing the request inward to the Synapse main process or a generic worker. Redis relays replication between processes, and PostgreSQL holds the state they share. The trust boundary sits between the listener and the internal namespace, and the Synapse docs recommend the firewall at that point. Confirm with your openDesk team where the listener, firewall, Redis and workers actually run, because the exact topology in your environment must be verified.
Federation traffic path through the listener, whitelist check and Synapse components.
Federation options: open, allowlisted or off, and when each fits
This table compares three federation postures for openDesk chat: open federation with the server's default behavior, an allowlist of named partner domains, and federation turned off. Read each column for who the organization can reach, what the federation listener exposes, and the ongoing work it creates. The main takeaway is that an allowlist keeps partner reach while limiting exposure, and whether openDesk exposes these settings directly must be confirmed with ZenDiS documentation or the deployment setup.
| Attribute | Open federation | Allowlisted federation | Federation off |
|---|---|---|---|
| Reach for users | Users can reach users and rooms on any federating Matrix server that accepts the connection. Widest reach, with the least control over who. | Users reach only the named partner domains. Servers outside the list cannot exchange messages with openDesk users. | Users chat only with accounts on the openDesk homeserver. No cross-organization rooms. |
| Federation listener exposure | The federation listener must accept connections from unknown servers, so network rules and monitoring carry more weight. | The listener is still reachable, but the server rejects unlisted domains. Restrict it to partner addresses where possible. | Federation is disabled in the homeserver. Block the listener at the network edge and test that it is closed. |
| Operational upkeep | Highest. Ongoing work covers abuse handling, room moderation and review of traffic from servers nobody has vetted. | Moderate. Each partner needs a written agreement, a named contact and a configuration change when the list changes. | Lowest. No partner list or federation traffic to review, but any future partner requires a planned change. |
| Typical agency situation | Rarely a fit for a public body that handles sensitive case work. Suits deployments meant to talk with many unknown organizations. | Agencies with a few known partner agencies or ministries, each running a compliant Matrix server under a signed data-sharing agreement. | Agencies that keep chat within their own staff, handle sensitive work internally, or have not yet decided on federation. |
| Settings exposure | Server default with no list set. Confirm with ZenDiS documentation or your deployment setup whether openDesk exposes this directly. | Set in the homeserver configuration. Confirm with ZenDiS documentation or your deployment setup whether openDesk exposes this directly. | An empty list disables federation. Confirm with ZenDiS documentation or your deployment setup how openDesk applies it. |
What federation costs in CPU, memory, database and upkeep
Federation adds work that a closed server never does. Every remote server that shares a room with your users sends events to you, and your server sends events back, so load on the federation and event paths grows with the number of remote rooms and remote servers as well as with local users. In Synapse, this traffic runs through worker processes. The main process and all workers connect to Redis, which relays replication between them, and the generic worker handles client, federation and event traffic. How many generic workers you need depends on how many remote rooms your users join and how active those rooms are. Nothing in the research gives a sizing figure for this, so measure it. Run a test environment that joins rooms on real remote servers, then record CPU, memory and Redis use on the worker processes over a representative period before you size production. Read the Synapse workers documentation before you decide how to split the processes.
The database is the cost that is easiest to underestimate. Synapse recommends PostgreSQL for production, although SQLite is also supported, and Synapse 1.143.0 and later require PostgreSQL 14 or newer. openDesk's production expectations list PostgreSQL 15 among the external services you provide, so use that version as the baseline and confirm it against the openDesk requirements for the release you run. In the test environment, check that the PostgreSQL instance has enough connections and storage for the event volume you measured, and confirm who owns backups and restores for it. The test that matters most is a tested restore of the Synapse database into a separate instance, timed and checked against a sample of federated rooms, before any production federation is switched on.
Upkeep is where federation costs recur. Synapse 1.142.0 and later require Python 3.10 or newer, and Synapse drops support for Python and PostgreSQL versions once they reach upstream end of life. That means a runtime or database upgrade can become mandatory on a date set by upstream, not by your change calendar. Synapse's upgrade notes also warn that rolling back can be difficult because database schema changes between releases may not reverse cleanly, so every upgrade needs a database restore point and a rehearsal in the test environment first. Read the Synapse upgrade notes for each version between your current and target release. Agree in writing who tracks upstream end-of-life dates, who runs the rehearsal and how much rollback risk the business will accept, because a federated server that falls behind also falls behind the steady upgrade cadence that openDesk's own release process assumes.
Security exposure of a federated openDesk chat
Federation turns the Matrix homeserver into a public endpoint that accepts events from other organizations' servers. The controls below cover what is reachable, which domains are trusted, how remote accounts are governed and what you record about them. Each card names one decision or check to make before you open federation.
Public federation listener
Synapse federates on port 8448 by default. Delegation lets a user ID such as @user:example.com (illustrative) be served from another host on port 443, so the federation endpoint may share a public address with other web services. Decide the hostname and port partners will call, and whether the listener sits behind shared infrastructure. The server_name setting fixes how user and room IDs are formed, so settle it before the first partner joins.
Synapse federation docsAllowlist unknown domains
Federation scope is a trust decision, and the federation_domain_whitelist setting in Synapse is where you make it. It limits federation to the domains you list, and an empty list disables federation entirely. Add a partner only after its operator confirms the server name through a channel you trust, and remove the entry as soon as the agreement ends. The allowlist is your main control, and each entry gives another organization's server a path into your rooms, so keep the list short and named.
Firewall the federation listener
The Synapse docs recommend that you firewall the listener in addition to the domain allowlist. Ask your network team to restrict inbound access to the federation port to the source addresses your partners use, where those addresses are stable enough to list. If they are not, record why the listener stays reachable and which controls cover it instead. Use the openDesk security docs to confirm network policy and signed-image practices for the rest of the stack.
openDesk security docsSpam and abuse from remote users
Remote users can reach your people directly, sending invitations and messages into your rooms without holding an account in your openDesk identity system. A partner server with weak controls can become a source of spam, phishing links or unwanted room invites. Before you open rooms to outside users, confirm which rate limit, reporting and moderation options your Synapse version provides. Name one abuse contact at each partner so that problem accounts can be handled quickly.
Sign-in and offboarding stay remote
Remote users are not in your Nubus directory, so openDesk cannot enforce their password, second factor or account removal. openDesk cannot disable a remote account, and their sign-in and offboarding remain with the server that issued their identity. When someone at a partner leaves, your team has no openDesk action to take, so the partner agreement must require them to notify you. Confirm that process before any room with remote members is created.
Log and review federated membership
Record which remote domains join rooms, accept invitations and post messages, along with the local user who invited them. Membership review is a recurring task, so check the record on a schedule for rooms with unexpected partner members and for domains that no longer have an agreement. Ask your operations team what Synapse logs at your chosen level, where those logs go and how long they are kept, because those settings belong to your deployment.
Setting up federation in openDesk step by step
This sequence takes an openDesk chat deployment from its default state to a federation posture the agency can defend. Each step ends with a written decision, a configuration value or a test result, so the security team can verify the outcome without reading the Helm values. Start with the release you actually run, because the settings it exposes decide what you can configure.
Confirm the federation settings your release exposes
Read the release notes and configuration docs for the openDesk version you will deploy, then list which federation settings that release exposes and what each one defaults to. The platform team owns this step, and the security lead reviews the list. Record the release tag beside it, because only the latest minor version receives support, so the list needs checking again at each upgrade. Done when the list is written down and a test render of your environment values includes every federation key you plan to set, with no errors.
Choose the federation posture from the options table
Pick one posture from the options table earlier on this page: federation off, federation limited to named partner domains, or federation open to any server. The choice drives the allowlist, the firewall rules and the partner work that follows, so the CISO or data owner signs it off before any setting changes. Write down the decision, its reason and the kinds of data allowed to cross the boundary. Done when a signed decision record names the posture and no one has enabled open federation by default.
Agree partner domains in a signed document
List every partner organization's Matrix domain, the contact who runs its homeserver, and the kinds of information that may be exchanged with it. The owners of both agencies sign the list, and each partner confirms in writing that the domain is the one it operates. Keep the list in the same change record as the allowlist so that later edits follow the same route. Done when every domain on the signed list has a named contact who has confirmed it.
Set server name and delegation
Set
server_nameso that user and room IDs carry the agency domain, then publish delegation so clients and remote servers find the homeserver on that domain. Becauseserver_namefixes how users and rooms are identified, confirm the value before accounts are created. Follow the sibling topic on settingMATRIX_DOMAINfor the.well-knownfiles and the content security policy changes, since chat clients depend on them too. Done when a test account's ID shows the agency domain and the.well-knownresponses return the expected host when requested from outside your network.Set the federation allowlist or leave it empty
Set
federation_domain_whitelistto the partner domains from the signed list, or leave it empty if the posture is federation off. An empty list disables federation, so this value is the application-level control that must match the posture chosen in the second step. The change takes effect when it is rolled out in the next-but-one step, so stage it now and do not test it yet. Done when the rendered configuration contains exactly the agreed domains, or an empty list where federation is off.Firewall the federation listener to partners
Restrict the federation listener so that only partner networks can reach it, using the firewall, network policy or ingress rules your network team controls. Synapse listens for federation on port
8448by default, so confirm with the platform team which port and path openDesk exposes in your setup before writing any rules. The Synapse configuration documentation recommends firewalling the listener alongside the allowlist. Done when a connection from outside the partner networks is blocked and a connection from a partner network succeeds.Roll out and test each partner
Roll out the configuration, then from an external test account on the agency side, check each partner server's federation test result and exchange a message in a test room in both directions. Run the same check against one domain that is not on the list, which must be refused. The platform team runs the checks, and the partner's administrator joins the first exchange. Done when each partner's federation result passes, the test messages arrive both ways, and the unlisted domain fails.
Document and review the partner list
Record the posture, partner domains, allowlist value, firewall rules and test results in the operations runbook, and name the approver for each change. Review the list with the partner contacts on a schedule the agencies agree in writing, and route every addition or removal through the same signed change record. Done when a reviewer can match the live allowlist and firewall rules to the document without asking the platform team.
Which federation posture fits which agency environment
This agency can keep federation on, but only with the partners it names. The posture is an allowlist: the homeserver accepts traffic from approved domains and refuses every other server. If the homeserver is Synapse, the federation_domain_whitelist setting enforces the list, and an empty list disables federation altogether. Read how Synapse federates before you decide how partner servers will find yours, and confirm which homeserver settings your openDesk release exposes.
- Partner register: Keep one record per partner body with its domain, a named technical contact, the business owner who approved it and the review date.
- Allowlist: Set
federation_domain_whitelistto the approved domains only, then test with one partner before adding the next. - Network filtering: Firewall the federation listener so that only approved partner addresses can reach it, as the Synapse configuration manual recommends.
- Delegation check: Confirm that
.well-knowndelegation and DNS point to the intended host, because partner servers follow that path to reach yours. - Questions first: Settle which bodies are on the list, who may add a partner, which data classes may be shared in rooms with partners and whether external users are allowed.
Before go-live, check that the allowlist, the firewall rule and the delegation records name the same set of partners.
On an isolated network, federation is usually off. If the agency has a partner network reachable from the openDesk segment, federation can be limited to that network and nothing else. The first decision is whether federation is needed at all, because every federation path is a new route in and out of a segment built to stay closed. openDesk expects you to provide production services such as PostgreSQL 15, MariaDB 10, Redis 7, an SMTP relay and a TURN server, so those dependencies already need a defined network path before federation adds more.
- Default off: If federation is not needed, set
federation_domain_whitelistto an empty list, which disables federation in Synapse. - Narrow path: If federation is needed, allow only the partner network's address range to reach the federation listener, which Synapse serves on port 8448 by default.
- Egress rules: Block outbound federation traffic from the segment except to approved partner addresses, and record the owner of each rule.
- Internal naming: Decide how server names and delegation resolve inside the isolated network, because public DNS may not be reachable from there.
- Questions first: Confirm that a partner endpoint exists and is operated, who approves the cross-boundary route, what the accreditation of the segment says about new connections and whether the traffic needs a data transfer review.
Before you enable any route, check it against the network security plan and confirm the change with the team that operates the boundary.
A team that has not chosen an edition should still decide the federation posture first, because the posture follows from the network and the partners, while the edition follows from the support the agency needs. Start with the environment described in the other tabs, then choose the edition that matches the support terms required. ZenDiS recommends openDesk Enterprise Edition for production, and the Community Edition is supported only by the community on openCode with no SLA.
- Edition affects support: Enterprise adds SLA-backed 2nd and 3rd level support and patches, along with closed-source modules. Community has no SLA.
- Confirm federation parity: Ask ZenDiS to confirm in writing whether federation behavior and settings differ between editions for the release you will run.
- Admin tools are separate: Enterprise-only tools for syncing groups and managing rooms are covered in a separate topic, so do not settle them in this decision.
- Upgrade path: Only the latest minor version is supported, and in-place upgrades between majors are not guaranteed, so plan to retest federation settings after each upgrade.
- Questions first: Decide who provides 2nd and 3rd level support, what response time the agency needs during a partner outage, who owns federation changes and whether the agency needs patches inside a window it sets.
Before you choose, ask for the support terms in writing and confirm the federation settings for the release you plan to run.
Limits to confirm in your environment before you federate
Federation changes which servers can reach your users and which network paths must stay open, so several points depend on your openDesk release, cluster and network. The cards below list what public documentation does not settle for your deployment. Each names who can confirm it: ZenDiS, your Kubernetes team or your network owners.
Federation settings in your release
Public Synapse documentation describes the upstream federation settings, but openDesk may expose them differently or not at all. Ask ZenDiS whether your release provides a federation switch, and if so whether it is a Helm value, a config file or an admin tool. Get that answer in writing for your exact version before you plan a change window.
Release management docsDefault federation state
Confirm whether federation is on or off in the deployment you receive, before any user talks to an outside server. Synapse disables federation when federation_domain_whitelist is an empty list, but the upstream docs also advise firewalling the federation listener, so the application setting and the network path both matter. Ask ZenDiS for the shipped default and ask your Kubernetes team which network policies and ingress rules apply.
Synapse configuration manualPartner server versions
Federation links two servers, so the partner's Synapse version and its database and Python versions shape what works between you. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and 1.142.0 and later require Python 3.10 or newer, so an older partner stack may not meet those floors. Ask each partner for its versions before agreeing a list, and test a room with each one in a non-production environment.
Synapse upgrade notesMatching the upstream Synapse release
The Synapse release you read about may differ from the one openDesk runs. Upstream Synapse moved to the element-hq organization on GitHub in December 2023, and its releases page lists v1.163.0, published October 14, 2026, so check dates when you compare. Ask ZenDiS which Synapse version your openDesk release bundles, then read the docs for that version before you rely on any setting.
Synapse GitHub releasesSingle sign-on and mobile clients
Test mobile sign-in on iOS and Android separately from desktop, since mobile apps may discover the homeserver differently. Synapse supports OpenID Connect, SAML2 and CAS, but openDesk's Keycloak-based IdP sits behind its own login, so ask ZenDiS which methods your release configures for chat. Confirm with your identity team that a federated room opens for a signed-in mobile user before you announce federation.
Port 8448 or delegation through 443
Synapse federates on port 8448 by default, and delegation can serve a user ID such as @user:example.com from another host on port 443. Your network owners must confirm which path is open between your ingress and each partner, because a closed port with no delegation stops federation to that partner. Ask your Kubernetes team how the openDesk ingress exposes the federation listener, then test each partner connection before go-live.
Questions buyers ask before federating openDesk chat
What does it cost to federate openDesk chat with other organizations?
Federation adds recurring cost in four places: infrastructure, the database, upkeep and reviews. Federation is a configuration choice on Synapse, so the spend comes from what remote traffic makes your servers carry.
- Infrastructure: remote traffic needs capacity for the Synapse worker processes and the Redis layer that relays replication between them, and that capacity has to be sized and tested.
- Database: remote events grow the PostgreSQL database, which Synapse recommends for production.
- Upkeep: Synapse upgrades, Python and PostgreSQL version changes and firewall changes must happen on a schedule.
- Reviews and drafting: security and data protection review time, plus agreement drafting, applies to each partner.
Ask any quote to split one-time build work from recurring upkeep, and to state who pays for the test environment and who runs each upgrade.
How long does federating openDesk chat with another agency take?
The duration depends on how many partners you federate with, how many sign-off cycles each one needs, how many test runs you schedule and when your release window falls. Each partner adds a domain to check, a written agreement to draft and approve, and a test against your server. Agreement drafting can run alongside technical work, but it cannot close until the security and data protection owners accept the terms. openDesk plans minor releases monthly and major releases annually in Q3, so a go-live close to a release may need a retest against the new version. Ask for a written timeline with milestones for each partner, and confirm which approvals sit on your side.
Who in our organization must own Matrix federation work?
Name one owner each in security, data protection, network and the chat team, and ask each partner for a technical contact and a contract contact. Security owns the exposure of the federation listener and the review of partner servers. Synapse federates on port 8448 by default, and delegation can move user traffic to port 443 on another host, so security and network must agree on which path is exposed. Data protection decides what message content, metadata and user identifiers may leave the organization and records that decision. Network owns the firewall rules and the route to the listener. The chat team owns the Synapse configuration, the upgrade schedule and room policy. Settle these roles before the first design meeting, because each sign-off depends on one of them.
Can our in-house team federate openDesk chat without a partner?
Yes, if the in-house team can run Synapse upgrades and firewall changes on a schedule. The work is mostly routine, but it has fixed points that need a named owner:
- Read the upgrade notes before each Synapse release, because rolling back can be difficult after database schema changes.
- Keep PostgreSQL and Python at the versions each release needs, for example PostgreSQL 14 or newer for Synapse 1.143.0 and later, and Python 3.10 or newer for 1.142.0 and later.
- Keep the federation allow list and firewall rules in step with each partner you add or remove.
A partner can help with the first design, the security review and the initial test runs. Before go-live, confirm that your team can also run those test runs itself.
Can we turn off Matrix federation later, and what changes for rooms?
Yes. Synapse's federation_domain_whitelist setting restricts federation to listed domains, and an empty list disables federation, so the switch is a configuration change. Firewalling the federation listener adds a second control that the Synapse documentation recommends. What happens to existing rooms that include remote members is the part to confirm before you switch, because it depends on your Synapse version, the room membership and how clients handle the change. Test this on a staging copy with a sample room, and check what remote users see and whether they can still read earlier history. Because rolling back a Synapse upgrade can be difficult, treat the switch-off as a planned change with a written test plan and a named owner.
What security risks does federating openDesk chat introduce?
Federation opens a listener that other servers can reach, so the main risks are exposure of that endpoint, traffic from servers you did not choose and message content or metadata leaving the organization. Synapse's federation_domain_whitelist limits federation to named domains, and the Synapse documentation recommends firewalling the federation listener as well. Keep the allow list short, review each partner's domain before adding it, and make sure federation traffic is logged and reviewed. Test the exposed endpoint as part of the security review before go-live, because an allow list does not show what the endpoint accepts. Write down what may be shared and confirm that policy with data protection before any partner joins.
What does a DeployOpen federation engagement usually include?
Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and the quote follows from that written scope. A typical federation engagement covers the following, to be confirmed against your environment:
- Planning the federation policy, the server name and delegation design, and the steps for onboarding each partner.
- Implementing and hardening the Synapse federation settings, the network path and the allow list.
- Testing federation with your partners and testing the exposed endpoint before go-live.
- Backing up the configuration, documenting the runbook and handing it over to your team.
Ongoing upgrades, support and continuous testing are available as retainers, so you can choose whether the steady state stays with your team or moves to a retainer.
Agreements between agencies before federating
Matrix federation needs an agreement layer that the software does not supply. Synapse enforces the list you configure: federation_domain_whitelist limits federation to listed domains, and an empty list disables it. The list is a policy decision, and the written agreement should record it: which partner domains are allowed, who may join shared rooms (for example, named roles in a defined group), and what data classes may be posted there. Add retention and deletion expectations for messages and uploaded media, because neither server can control how a partner's administrators handle their copies. Name an incident contact on each side, and state how a partner is removed from the allowlist and who is told. Confirm with your Matrix administrators what removal does to rooms the partner already shares, since blocking new federation traffic may not end existing memberships.
Federated users keep the identity of their home server, so a user appears as an ID such as @user:partner.example (illustrative). Each agency therefore controls its own accounts. Your openDesk administrators can deactivate a departing employee in Nubus or in the identity provider behind it, but they cannot deactivate that person on the partner's server. The agreement should say that each home server offboards its own users, and that the agency whose employee leaves notifies partner contacts so shared rooms can be cleaned up. Decide who owns that notice, how quickly it must go out, and whether it covers contractors and guest accounts. Check these points with your identity team, since offboarding depends on how users are provisioned and federated in your deployment.
Draft the agreement as a short written document, a few pages long, and have security and data protection sign off before the first federated room is opened. Review it whenever you change the allowlist, upgrade openDesk, or add a partner, because each change can alter what the agreement describes. Keep the clauses general and operational, and take legal advice on which terms are binding in your jurisdiction. An illustrative clause might read: "Either party may remove the other's domain from its allowlist immediately where it suspects a security incident, and will inform the other party's incident contact as soon as practicable." Clauses like this one need legal review before anyone relies on them.
How DeployOpen works on this
DeployOpen starts Matrix federation work with a written decision on which Matrix servers, if any, openDesk chat may reach. We then configure, test and document that decision in your own infrastructure, including the Synapse settings, network controls and the checks that prove them. The result is a handover your operators can run and review without depending on us.
How we scope
- A written scope lists the federation policy, the domains allowed or blocked, and who approves each change.
- We confirm whether the openDesk chat server will federate at all or run closed before any build work starts.
- Engagements are fixed-scope, agreed in writing, and ongoing support is available as a retainer.
How we build
- We fix the server_name first, because user IDs and room identifiers depend on it.
- We apply the federation_domain_whitelist to the agreed list and firewall the federation listener to match.
- We plan any Synapse worker processes and Redis replication only if the agreed federation traffic requires them.
How we hand over
- Handover includes a runbook for adding or removing a federated server, with the change log kept for each approval.
- Upgrade notes cover Synapse database schema changes, the PostgreSQL version floor and the difficulty of rolling back.
- Federation test results are recorded so your security team can review the exact configuration that was approved.
How we support
- Support covers patches and changes to federation settings after go-live, under a retainer if you want ongoing cover.
- Confirm with ZenDiS whether your openDesk edition includes SLA-backed support for chat, since Community support has no SLA.
- Enterprise-only chat admin tools are a separate scope item, so confirm them in writing before federation work starts.

