Matrix for emergency services: why cross-agency messaging needs its own homeservers
If you lead a regional emergency services function, your problem is not whether police, fire and ambulance agencies can message each other. It is whether they can do it without placing their operational chat in one shared tenant that no single agency controls. Matrix addresses this through federation between separate homeservers. Each agency runs its own Synapse or other compatible homeserver, keeps its own user directory and retention settings, and connects to partner agencies over the protocol. Element lists blue light, meaning emergency services working jointly, among the sectors it serves, which tells you the model is recognized for this use case, but it does not tell you that your partner agencies' environments are compatible with yours. That check is yours to run.
Federation is controlled by configuration, not by default. In Synapse, the federation_domain_whitelist setting restricts federation to the domains you list, and an empty list disables federation entirely. For a multi-agency design, the whitelist is the list of partner domains you have agreed in writing, and changing it is a governance decision with an owner, a review date and a record of who asked for the change. Confirm in the Synapse configuration manual how the setting behaves with your chosen homeserver version, and plan to firewall the federation listener as the documentation recommends, so the policy is enforced at the network layer as well as in the application.
Three areas stop being defaults and become design decisions. Identity determines which agency staff can sign in and how a dismissed officer loses access across all partners, which usually means choosing an identity provider and an authentication path before any rooms are created. Federation policy determines which agencies can see each other's rooms and users. Moderation determines who can remove a message, deactivate an account or quarantine a room that belongs to another agency's incident. Each needs a named owner in every agency and a tested procedure. Ask each partner what their identity provider supports, who holds moderation rights on a shared room, and how an urgent federation cut-off would be executed out of hours.
Which requirements shape a Matrix build for emergency services
This table maps each requirement that may apply to a multi-agency Matrix deployment to its source and to what it means for the build. Agency-specific data classification decides which rows apply, so confirm that first. Read each row as a question to answer with your compliance lead before the architecture is fixed.
| Requirement | What it asks for | Build impact for Matrix |
|---|---|---|
| CJIS Security Policy v6.1 (encryption and scanning) | For criminal justice information, FIPS 140-3 certified modules or FIPS 197 AES with 256-bit keys in transit and at rest outside physically secure locations, plus vulnerability scanning at least monthly | Confirm which chat, media and database content counts as CJI. Plan TLS, database and media encryption, and key handling to meet the standard, and include monthly scanning of the homeserver, MAS and database hosts in operations |
| FedRAMP scope limit | FedRAMP covers cloud services that handle federal information on behalf of an agency; systems used only for one agency's operations on cloud infrastructure and not offered as a shared service are out of scope | A Matrix homeserver run only by one agency in its own cloud account may fall outside FedRAMP scope, but a shared multi-agency service or a hosted offering may not. Confirm the hosting model with the agency's authorizing official before deciding where the homeserver runs |
| NIST SP 800-53 Rev. 5 baselines | Low, moderate and high baselines select 149, 287 and 370 controls and enhancements respectively in SP 800-53B, using the Release 5.2.0 catalog | Use the baseline the agency selects as a control reference, mapping each control to a Synapse, MAS, database or network setting and naming the owner and evidence for it. Confirm the baseline with the agency rather than assuming one |
| ADA Title II web and mobile accessibility | State and local government web content and mobile apps, including those provided through contracts or licenses, must meet WCAG 2.1 Level A and AA from 26 April 2027 for entities serving 50,000 or more people, and from 26 April 2028 for smaller entities and special districts | Any Element client, web app or custom integration the agency provides or licenses needs WCAG 2.1 AA testing. Ask each client vendor for its accessibility conformance evidence and plan testing into the rollout schedule for the relevant compliance date |
| NIS2 exclusion for public security and law enforcement | NIS2 does not apply to entities working in national security, public security, defense or law enforcement, though it covers central government entities and lists public administration as a sector of high criticality | Most police and emergency dispatch bodies may fall outside NIS2, but fire and ambulance services or civilian partner organizations may not. Confirm each partner's status under national transposition law, since federation links them and their obligations may differ |
How agency homeservers federate with trusted partners only
The diagram starts with each agency's own homeserver, which keeps its own server_name and identity provider. Federation runs only through the federation listener, which is firewalled so that only listed partner domains can reach it, and delegation serves user IDs on port 443. The boundary around each agency marks where its data and sign-in stay under its control. Before go-live, check that the federation_domain_whitelist matches the agreed partner list and that the listener is blocked at the firewall for every other source.
Agency homeservers federate only through a firewalled listener and listed domains.
Synapse and MAS settings that matter for multi-agency messaging
Multi-agency messaging depends on a few settings that are hard to change once users and rooms exist: how the server name is set, which domains may federate, which database and process layout carry dispatch traffic, and how staff sign in. The cards below cover one setting or decision each, with the check to run before go-live.
Server name and delegation
The server_name setting fixes how user IDs such as @user:example.com and room IDs are identified, so it cannot be treated as a label for testing. Federation uses port 8448 by default, and delegation lets the identifiers be served from another host on port 443. For an agency, confirm the domain it will own for the next decade, decide whether each agency runs its own homeserver under a shared naming plan, and test delegation from outside the network before any staff are onboarded.
Federation domain whitelist
The federation_domain_whitelist setting limits federation to the domains you list, and an empty list disables federation entirely. Emergency services often need a short, named set of partner agencies, so treat the list as an agreed document owned by the governance group, not an engineering default. The docs also recommend firewalling the federation listener, so check that the network rule and the whitelist match.
PostgreSQL as the production database
The Synapse documentation recommends PostgreSQL for production, with SQLite also supported. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and the upgrade notes warn that rolling back can be difficult because of schema changes. Confirm the PostgreSQL version your platform team supports before choosing a Synapse release, and plan database backups and restore tests as part of the first build.
Synapse upgrade notesRedis-backed workers for dispatch peaks
Synapse scales with worker processes, and the main process and all workers connect to Redis, which relays replication between them. The generic worker handles client, federation and event traffic. Dispatch peaks, such as a major incident, put the heaviest load on exactly these paths, so size the worker pool and Redis before an incident, and rehearse a load test that mimics a shift change and a surge of room creation.
Synapse workers docsMAS with upstream OIDC providers
Matrix Authentication Service acts as the OAuth 2.0 and OpenID provider for Matrix and delegates sign-in to upstream OpenID Connect providers such as Keycloak, Microsoft Entra ID, Google and Authentik. For agencies with an existing directory, this keeps one login for staff and gives the security team one place to enforce multi-factor authentication and offboarding. Confirm which identity provider each agency will use before the upstream connection is designed.
MAS upstream providersThe SAML gap and the bridge
MAS does not support SAML. Many public safety agencies still run SAML-based identity federation, so the team needs a bridge such as Dex, which the MAS docs suggest for SAML or LDAP. Each bridge adds a component to patch, monitor and recover. Ask the identity team whether an OIDC front end is already available, because that choice decides whether the bridge is a short-term step or a permanent part of the design.
MAS SSO setupRollout sequence for a multi-agency Matrix deployment
This sequence moves a multi-agency Matrix deployment from governance agreement to a tested dispatch-style exercise, so each agency's homeserver, identity model and federation link is proven before live operational traffic depends on it. Durations depend on the number of agencies and the scope agreed in writing before work starts.
Agree federation partners and governance
The agencies named in the scope agree which organizations may federate, who approves a new partner, who owns each homeserver and who can change the federation list. The lead agency or a steering group signs off the list and the change process in writing. The step is complete when every agency has a named owner, the initial partner list is signed off, and the change process for adding or removing a domain is documented. Confirm the governance model with each agency's legal and information security leads before any server is named.
Confirm identity model and SSO per agency
Each agency states which identity provider holds its staff accounts and which protocol it supports. Matrix Authentication Service works with OpenID Connect providers and does not support SAML directly, so agencies on SAML need a bridge such as Dex or a different identity route. Record how account lifecycle, deprovisioning and group-based access are handled for each agency. The step is complete when each agency's identity provider and protocol are recorded, test sign-in works for one account per agency, and deprovisioning has been tested end to end.
Build a single-agency homeserver with backups
The team deploys one agency's homeserver with PostgreSQL as the database, sets the server name before any user or room exists, and configures reverse proxy, email and backups in infrastructure the agency controls. Backup and restore are tested on a copy, not assumed. Because rolling back Synapse can be difficult after schema changes, the team also records the upgrade and rollback plan before the first release is installed. The step is complete when a user can sign in, send messages, and a restore from backup has been demonstrated on a separate host.
Test federation with one partner
Two homeservers are connected in a non-production network. The team sets federation_domain_whitelist to the single partner domain, firewalls the federation listener as the Synapse documentation recommends, and verifies delegation and the port in use. Test rooms are created, membership is exchanged, and blocked domains are confirmed to be refused. The step is complete when messages and room membership flow in both directions, a non-listed domain is rejected, and the firewall rules have been checked from outside the network.
Add moderation and admin roles
The agencies define which people hold server administrator, room moderator and abuse-handling roles, and the team configures those roles through the admin tools that ship with Synapse, MAS and ESS. Reporting paths, spam handling and an audit process for admin actions are written down and assigned to named staff. The step is complete when each role is assigned to tested accounts, a moderator can act on a test report, and admin actions appear in the logs the agencies have chosen to keep.
Run a dispatch-style exercise
Participating agencies run a scripted exercise that mirrors a multi-agency incident: rooms are opened for each unit, cross-agency messages are sent, a moderator handles a test problem, and one homeserver is taken offline to test the recovery procedure. Timings, failures and unclear steps are logged during the exercise. The step is complete when the exercise has been reviewed, every failure has a named fix and owner, and the agencies agree in writing whether the deployment may move to live use.
Keeping a dispatch-critical homeserver available and upgradable
A dispatch-critical Synapse homeserver needs two things decided before go-live: how it scales under load, and how it gets upgraded without landing in an incident. Synapse scales with 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. For a service where a shift change or major incident can multiply message volume in minutes, ask the implementation partner to size workers against a measured peak from your current tools, and to test failover of the Redis and PostgreSQL tiers, not just the homeserver process. Confirm whether your edition (open-source Synapse, Element's Synapse Pro, or ESS) carries the support terms you need for this tier.
Upgrades carry the most risk to recovery. The Synapse upgrade notes warn that rolling back can be difficult because database schema changes between releases may not reverse cleanly. Treat every upgrade as a one-way step: take a fresh PostgreSQL backup, rehearse the upgrade on a copy of production, and keep a tested restore path rather than a rollback plan. Synapse also drops support for Python and PostgreSQL versions once they reach upstream end of life, and recent releases raised the floor (PostgreSQL 14 or newer for 1.143.0 and later, Python 3.10 or newer for 1.142.0 and later). Build an annual platform calendar that schedules OS, Python and PostgreSQL changes ahead of those floors. Check the latest Synapse release against the Synapse releases page when you plan, since the listed version changes over time.
Set upgrade windows that never overlap an active incident, major exercise or known peak period. Agree the window with the agencies that depend on the server, publish it to their control rooms, and define a freeze rule that blocks changes when a joint incident is open. Ask the partner to write down the go and no-go criteria, the person who can call a stop, and the point at which the team restores from backup instead of pushing forward. Each agency should confirm who receives downtime notices and who can accept a degraded service during the window.
SSO and moderation controls by agency role
Dispatch operators need fast sign-in on shared consoles and very little power to change anything beyond the rooms they work in. Their usual path is OpenID Connect: the homeserver delegates authentication to Matrix Authentication Service (MAS), which uses the agency's upstream provider, such as Keycloak, Microsoft Entra ID or Authentik. The agency's directory then decides who may sign in and what happens when someone leaves.
- Sign-in path: Operators authenticate through MAS to the upstream OIDC provider, with multi-factor authentication enforced where the agency already manages it.
- Session length: Agree session and device lifetimes with the identity team, since shared shift consoles and unattended screens change the risk. Confirm which session controls your MAS version exposes.
- Room roles: Grant standard power levels in operational rooms only, so operators can post and read without changing room settings or permissions.
- Group mapping: Map directory groups to room access, so a change in the agency directory changes Matrix access without a separate manual step.
- Abuse reports: Operators report spam, harassment or unsuitable content with the client's report function, and reports go to the agency's admin queue. Confirm how your client build routes these reports.
Check that disabling an account in the agency directory ends its Matrix sessions within a window the agency has agreed in writing.
Administrators control accounts, rooms, media and federation settings, so they hold the widest set of actions and need the most review. Their sign-in should use the same OIDC path as operators, but with a separate privileged group at the upstream provider and no shared administrator accounts. The exact admin actions depend on the Synapse and MAS versions in use, so confirm them with the vendor before any procedure is written.
- Sign-in path: Administrators sign in through MAS using a privileged directory group, and every admin action should trace back to a named person.
- User lifecycle: Deactivate accounts when staff leave, and confirm how deactivation interacts with active MAS sessions and registered devices in your version.
- Room moderation: Remove members, change power levels and close rooms that hold material the agency must stop circulating, using the room tools your server exposes.
- Media moderation: Quarantining or removing uploaded files runs through the media admin API. Plan this explicitly and confirm the approach with Element or the Synapse maintainers before it becomes part of an operating procedure.
- Federation controls: Limit federation_domain_whitelist to agencies with a signed agreement, and record every change with its reason and approver.
Check that each admin action has a named owner, a logged approval and a tested rollback path before the first live incident.
Liaisons join from another agency, so their identity sits outside your directory. Your federation policy decides whether their homeserver can reach yours at all, and their sign-in depends on whether their agency runs OIDC or SAML. MAS does not support SAML directly. Its documentation recommends a bridge such as Dex for SAML or LDAP, while Synapse has its own saml2_config option. Choose one path deliberately before promising a sign-in method to a partner.
- Sign-in path: Partners whose agency runs OIDC sign in through MAS upstream identity providers. Partners on SAML need a bridge such as Dex in front of MAS, planned and tested in advance.
- Federation scope: Allow only the partner domains in federation_domain_whitelist, and firewall the federation listener as the configuration manual recommends.
- Guest permissions: Place liaisons in invite-only rooms with reduced power levels, so they cannot create rooms or change settings on your side.
- Reports about partner users: Agree in writing who receives reports about each agency's users, the response expectation and the escalation route to the partner agency.
- Bridges: Bridges to third-party networks relay content outside the federation boundary, so each one needs separate approval and vendor confirmation.
Check that removing a partner domain from the whitelist cuts off that agency's access, and that the partner agreement states who may be moderated and by whom.
Compliance considerations for police, fire and ambulance messaging
Emergency services sit under several overlapping rules, and which ones apply depends on the data exchanged, the hosting model and the agency's legal status. The cards below cover the items that most often shape a self-hosted Matrix design, so the agency can decide early which obligations to map and which authority to ask. DeployOpen prepares controls and evidence, but auditors, agencies and regulators issue the determinations.
CJI encryption and scanning
Where criminal justice information (CJI) is exchanged through Matrix, the FBI CJIS Security Policy sets requirements for encryption in transit and at rest outside physically secure locations. Version 6.1 requires FIPS 140-3 certified modules or FIPS 197 AES with at least 256-bit keys, up from 128-bit, and vulnerability scanning at least monthly. Confirm with the agency's CJIS Systems Officer which modules and key lengths apply to your TLS, database and media storage before choosing components.
CJIS bulletinFedRAMP scope for hosting
FedRAMP covers cloud products and services that create, collect, process, store or maintain federal information on behalf of an agency. A Matrix stack run only for one agency's own operations on cloud infrastructure, and not offered as a shared service, is generally out of that scope. Ask counsel to confirm the classification in writing, and record who operates the homeserver, whether other agencies use it, and whether a vendor offers it as a service.
FedRAMP scopeNIST SP 800-53 control mapping
NIST SP 800-53 Rev. 5 is the federal control catalog, and SP 800-53B selects low, moderate and high baselines. Agencies generally map their Matrix components to these controls when building the authorization to operate (ATO) package, which makes the control inventory a shared reference across the homeserver, identity provider, database and logging. Confirm the baseline your authorizing official requires before mapping, because the baseline sets which controls are in scope.
SP 800-53 Rev. 5WCAG 2.1 for public entities
Title II of the ADA requires state and local government web content and mobile apps, including those provided through contracts, to meet WCAG 2.1 Level A and AA. Entities serving 50,000 or more people must comply from 26 April 2027, and smaller entities and special districts from 26 April 2028. Any Matrix client, web interface or custom portal the agency publishes should be tested against these criteria, and the requirement should be written into the scope of work.
ADA Title II ruleNIS2 exemption for law enforcement
NIS2 does not apply to entities working in national security, public security, defense or law enforcement. Police and similar bodies usually fall under that carve-out, but fire and ambulance services may fall under other national rules, and some Member States extend NIS2 to local public administration. Ask the national competent authority which category the agency falls into before treating NIS2 controls as a requirement, and document the answer in the design file.
NIS2 textQuestions emergency services teams ask before a Matrix build
What drives the cost of a Matrix build for an emergency services network?
Cost follows the scope agreed in writing, and four factors move it most: the number of agencies and tenants, how many identity providers must be connected, how many federation partners must be onboarded and tested, and which compliance baselines apply to the chat data. Some costs are one-time, such as design, build, integration and migration of existing rooms or accounts. Others recur, such as hosting, storage, backups, upgrades and support. Ask any partner for a quote that separates these items and names who pays for each, including your own staff time for decisions and testing. DeployOpen does not publish prices; a quote follows from the written scope.
How long does a Matrix deployment for multiple agencies take?
Duration depends less on the software than on approvals and dependencies: how quickly the agencies agree on a server name, federation rules and retention policy, how long your identity provider integration takes, and how many environments you need for testing. Each agency added to the federation list adds coordination and test effort. Confirm the timeline in the written scope, with milestones for design sign-off, a staging build, identity testing, a pilot group and cutover. No general duration is stated here because it depends on your environment and decisions.
What must our agency provide before a Matrix project starts?
Plan to supply several things before the build begins:
Can our in-house IT team run a self-hosted Matrix server?
Yes, if the team has Linux, PostgreSQL, reverse proxy and identity skills and someone owns upgrades. Synapse upgrade notes warn that rolling back can be difficult because of database schema changes, and that support for Python and PostgreSQL versions ends at upstream end of life, so an operator must read every release note and schedule upgrades. Ask whether the team can cover on-call, backups tested by restore, and security patching across a federated estate. A retainer for upgrades and continuous testing is an option if internal capacity is thin.
Does CJIS apply to chat messages sent between police agencies?
It can apply if the messages contain criminal justice information (CJI), so confirm with your CJIS Systems Agency and your CJIS Information Security Officer before the design is fixed. The FBI CJIS Security Policy sets minimum requirements for CJI. Version 6.1 took effect on 26 June 2026 and requires FIPS 140-3 certified modules or FIPS 197 AES with at least 256-bit keys for CJI in transit and at rest outside physically secure locations, with vulnerability scanning at least monthly. Those rules shape hosting, encryption, key management and logging choices. Matrix itself does not decide compliance; your controls and evidence do.
How do we approve federation with another agency's Matrix server?
Federation should be approved as a governance decision, then enforced in configuration. In Synapse, the federation_domain_whitelist setting restricts federation to listed domains, and an empty list disables federation. Agree in writing which agencies are listed, who may request changes, how an agency is removed in an incident, and how the federation listener is firewalled, since the Synapse docs recommend that step. Review the list on a fixed schedule and record each change with an owner and a reason.
Which identity provider integration should we plan for emergency services staff?
Start by confirming which identity provider your agencies already run. Synapse supports OpenID Connect, SAML2 and CAS in its configuration, but Matrix Authentication Service uses upstream OpenID Connect providers and does not support SAML directly, recommending a bridge such as Dex for SAML or LDAP. Decide early whether accounts are provisioned by SCIM or LDAP, how leavers are removed, and how admin roles map to agency groups. Test sign-in with a pilot group before cutover.
What to ask a partner before signing a fixed-scope agreement
Start with federation, because it is the part of a Matrix deployment that changes most after go-live. Ask the partner how a new agency is onboarded and how one is removed, and insist that both steps are written into the agreement. Onboarding should name the domain added to federation_domain_whitelist, who approves it, which firewall rules on the federation listener change, and how the other agencies are notified. Removal should name the same items in reverse, plus what happens to rooms and users from the departing domain. Ask whether the partner will document the current whitelist and firewall state as a deliverable. Since the Synapse configuration manual recommends firewalling the federation listener as well as setting the whitelist, a list that covers only one of the two is incomplete.
Next, ask how scope and deliverables are fixed. Ask for the written list of agencies, homeservers, identity connections, moderation roles and environments (test and production) that the price covers, and what happens when an agency asks for an additional domain partway through. Ask how SSO and moderation are tested before acceptance. A credible answer names the test cases: a login through each identity provider, a denied login for a user removed upstream, a report handled through the admin tools, and a room closed by a moderator in each agency. Confirm that the partner will run these tests in your environment with your identity provider, not only in a lab. Also confirm that the scope is agreed in writing before work starts and that changes to it go through a written change request.
Finally, ask what evidence you will receive for agency compliance reviews and what the retainer covers after go-live. Evidence should include configuration exports, the test records above, backup and restore results, and the upgrade notes reviewed for each Synapse release. Ask whether the partner will prepare this material for reviewers who work under frameworks such as the FBI CJIS Security Policy, but make clear that DeployOpen prepares evidence and that an independent auditor or certification body issues any determination. On the retainer, ask which upgrades, security patches, monitoring, federation changes and user administration are included, the response expectations for a federation fault during an incident, and whether a retest follows each change. Ask for these terms in writing before you sign.
How DeployOpen scopes and delivers Matrix for emergency services
DeployOpen plans, builds, documents and supports self-hosted Matrix inside the infrastructure your agencies control, including the federation, identity and moderation settings that cross-agency emergency messaging depends on. Engagements start with a written scope so each agency's security, records and operations teams know what is delivered before work begins.
How we scope
- Map which agencies must federate, and which domains the federation allowlist will name for each one
- Confirm the identity provider, SSO protocol and account lifecycle each agency already operates
- Agree in writing which controls, logging and evidence your compliance team needs from the platform
How we build
- Deploy the homeserver, database, reverse proxy and federation listener in infrastructure you control
- Configure server name, delegation and federation restrictions, then test connections with each partner agency
- Set up SSO, admin and moderation tooling, and run security testing against the deployed setup before go-live
How we hand over
- Deliver runbooks for backups, restores, upgrades, failover and federation changes, written for your operators
- Provide configuration records, test results and a list of open items agreed with your security team
- Walk your administrators through user lifecycle, room administration and abuse report handling
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer, with scope agreed in writing
- Plan Synapse upgrades from the upgrade notes for each release, including database and platform floors
- Retest after changes to federation partners, identity providers or moderation settings

